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'])