一:安装wheel
二:安装twisted
twisted是由python编写的一款基于事件驱动的网络引擎,使用twisted模块将python的异步请求()成为可能且简单易用。twisted介绍
三:创建scrapy文件
使用命令窗口进入目标目录后 使用命令
scrapy startproject project_name
工程目录结构如图
四:启动爬虫程序
scrapy crawl first --nolog #启动时,不输出日志文件 scrapy crawl first #带有日志的输出
如对本文有疑问, 点击进行留言回复!!
VSCode出现ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)错误
从零开始的PYTHON3摸鱼(二)windows如何运行python,编辑器选择
网友评论