标签:png 技术 lib sea parser div img search arc
import requests
import bs4
url = "https://search.bilibili.com/all?keyword=%E7%BA%AA%E5%BD%95%E7%89%87"
header={‘User-Agent‘:""}
de = requests.get(url)
de.text
soup = bs4.BeautifulSoup(de.text,"html.parser")
titles = soup.find_all(‘div‘,class_="headline clearfix")
for each in titles:
print(each.a[‘title‘])
标签:png 技术 lib sea parser div img search arc
原文地址:https://www.cnblogs.com/fxc0210/p/12541735.html