python 爬虫实战(一)爬取豆瓣图书top250
import requestsfrom lxml import etreewith open('booktop250.txt','w',encoding='utf-8') as f: for i in range(0,226,25): url = 'https://book.douban.com/top250?start={}'.format(i) d