我可以给你一段代码来实现这个功能:import requestsfrom bs4 import BeautifulSoupurl = 'https://www.zhihu.com/' response = requests.get(url) soup = BeautifulSoup(response.text, 'html.parser') for tag in soup.find_all('a'): if 'data-za-detail-view-element_name' in tag.attrs: print(tag['data-za-detail-view-
帮我生成一个 Python 爬虫code,浏览知乎上的浏览量
最新推荐文章于 2024-08-23 16:53:34 发布