首页上一页 1 下一页尾页 3 条记录 1/1页
scrapy PSpider(scrapy.Spider): name = (): urls = [ ] url urls: scrapy.Request(= url= .parse) (response): page = response.url.split()[-] filename = %page (filename) f: f.write(response.body) .log(% filename) scrapy.crawler CrawlerProcess scrapy.utils.project get_project_settings __name__ == : process = CrawlerProcess(get_project_settings()) process.crawl()