06 2022 档案
摘要:最新版本直接pip install scrapy 会把其他支持的组件一起下载 #创建工程 scrapy startproject xxxPro #进入目录 cd xxxPro #指定起始链接,并创建一个子目录spiderName scrapy genspider spiderName www.xxx
阅读全文
摘要:多线程 import requests from concurrent.futures import ThreadPoolExecutor from lxml import html etree = html.etree def get_list(url): etree = html.etree l
阅读全文