文章 35
评论 44
浏览 92252
python实现爬取豆瓣豆列中图书的作者,出版社,出版日期,ISBN号

python实现爬取豆瓣豆列中图书的作者,出版社,出版日期,ISBN号

import requests import lxml.etree as etree import time # 可以继续添加其他豆列 urls_all = ["https://www.douban.com/doulist/40421457/?dt_platform=mobile_qq&dt_dapp=1" ] doulist_name = ["涂绘学院"] # headers换成其他的浏览器的headers hearders = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36', } books_all = [] def paqushuju(url): books = [] # 爬取网页中的书名,作者,出版社,出版时间,isbn response = requests.get(url, headers=hearders) html = etree.....

Life Is Like A Boat