摘要:
from lxml import etreeimport requestsimport csvfp = open('E:/doubanbook.csv','wt',newline='',encoding='utf-8')writer = csv.writer(fp)writer.writerow(( 阅读全文
摘要:
import requestsimport refrom bs4 import BeautifulSoupfrom lxml import etreeimport timeheaders = { 'User-Agent':'Mozilla/5.0 (compatible; MSIE 9.0; Win 阅读全文