python scrapy爬取笔趣阁小说存储到mysql
scrapy 爬取笔趣阁小说首先创建scrapy startproject Novel项目然后创建爬虫 scrapy genspider Downnovel www.qu.la利用xpath对笔趣阁进行分析后Downnovel.py如下start_url可以换成想要爬取的书urlimport scrapyfrom Novel.items import NovelItemimport refrom copy import deepcopyimport urllibimport cop
原创
2020-12-02 23:28:08 ·
1953 阅读 ·
0 评论