-
- //安装包下载:
- Archived: Python Extension Packages for Windows - Christoph Gohlke (uci.edu)
-
- // 先下载对应的 twisted 然后 pip install 拖进twisted
-
- //例如: twisted_iocpsupport‑1.0.2‑cp311‑cp311‑win_amd64.whl
- //cp表示python版本号 win表示电脑是多少位的
-
-
-
- //安装 Scripts
-
- cd python //进入python
-
- cd Scripts //进入Scripts
-
- python -m pip install --upgrade pip // 防止报错
-
- pip install scrapy -i https://pypi.douban.com/simple //安装
-
-
-
- //创建页面
-
- cd E:\乱搞 //进入文件夹
-
- scrapy startproject scrapy_baidu //创建页面
scrapy startproject scrapy_baidu //创建页面
cd scrapy_baidu\scrapy_baidu\spiders //进入spiders
scrapy genspider baidu http://www.baidu.com //创建百度请求
scrapy crawl baidu //运行 运行百度的页面