python爬虫学习 爬取豆瓣top250图书信息,并写入excel
入门爬虫,爬取豆瓣top250,并保存到excelimport pandas as pdimport requestsfrom bs4 import BeautifulSoup# 请求html页面函数(headers代理信息可更改)def get_html(url): headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
原创
2020-08-13 17:53:16 ·
1173 阅读 ·
0 评论