import requests
from lxml import etree
def get_text(list_):
if list_:
return list_[0]
return ''
def get_xpath(url):
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36',
}
response
python爬虫 ---爬取网易云歌手信息
最新推荐文章于 2024-06-19 11:50:54 发布