```python
import re
import requests
from bs4 import BeautifulSoup
from lxml import etree
url="https://www.toutiao.com/"
header={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"}
res=requests.get(url=url,headers=header)
patt='<div class="feed-card-article-l"><a href="(.*?)" target="_blank" rel="noopener class="title" aria-lable="(.*?)"><h2 title="(.*?)"</h2></a>'
res=re.findall(pattern=patt,string=res.text,flags=re.S)
print(res)
上面为源代码,下面是输出结果
[]
我尝试了几次,都没效果,希望有人能解答一下