我试图抓取this page并获取每篇文章标题的URL,它是一个'h3‘'a’元素,例如,第一个结果是一个链接,带有文本"Functional annotation of a full-length with collection“,它链接到this page。
我搜索返回的所有内容都是'[]‘
我的代码如下:
import requests
from bs4 import BeautifulSoup
req = requests.get('https://www.lens.org/lens/scholar/search/results?q="edith%20cowan"')
soup = BeautifulSoup(req.content, "html5lib")
article_links = soup.select('h3 a')
print(article_links)我哪里错了?
https://stackoverflow.com/questions/51391618
复制相似问题