当前位置:网站首页>scrapy 命令
scrapy 命令
2022-07-28 05:25:00 【幻影七幻】
一、全局命令
1-startproject
创建一个新的Scrapy项目:
scrapy startproject <project_name> [project_dir]例如:scrapy startproject Crawler51job
【注意】项目名称不能以数字开头
2-genspider
在当前文件夹或者当前项目,创建一个新的爬虫文件
scrapy genspider [-t template] <name> <domain>例如:scrapy genspider -t basic spider51job 51job.com
其他template参数见帮助文档
3-runspider
运行一个爬虫文件
scrapy runspider <spider_file.py>例如;scrapy runspider test51job.py
4-fetch
获取指定的URL,并且能够显示出获取的过程
scrapy fetch <url>例如:scrapy fetch https://www.baidu.com
5-view
在浏览器中打开指定的URL
scrapy view <url>scrapy view https://www.baidu.com6-version
打印出Scrapy版本号
scrapy version [-v]scrapy version -v二、项目命令
1-crawl
运行爬虫项目
scrapy crawl <spider>例如:scrapy crawl spider51job [--nolog]
2-bench
测试本地硬件性能
scrapy bench3-list
列出当前项目下的所有爬虫文件
scrapy list边栏推荐
- 论文神器 VS Code + LaTex + LaTex Workshop
- 【学习笔记】进程创建
- IP地址的五大分类
- Talking about fluke optical cable certification? What is CFP? What is OFP?
- Bag of tricks training convolution network skills
- qt设置加载界面的几种方法
- What are the common English questions in the postgraduate interview?
- Low power design -power switch
- Use and safe shutdown of qthread thread in QT
- Cautious speculation about fusion on Apple silicon
猜你喜欢

Matlab simulation of radar imaging 4 - range resolution analysis

Pytorch learning note 4 - automatic calculation of gradient descent autograd

听说你也在实习|当我采访了几个大三实习生之后。

EMC experiment practical case ESD electrostatic experiment

qt实现将相关信息输出到日志文件

MATLAB signal processing

A NOVEL DEEP PARALLEL TIME-SERIES RELATION NETWORK FOR FAULT DIAGNOSIS

PyTorch 学习笔记 3 —— DATASETS & DATALOADERS & TRANSFORMS

雷达成像 Matlab 仿真 1 —— LFM信号及其频谱

Vs code basic configuration and beautification
随机推荐
Machine learning note 5 - logistic regression
QT parse string into JSON data and parse
Perl introductory learning (XI) file operation
MySQL delete tables without deleting databases
Cautious speculation about fusion on Apple silicon
雷达成像 Matlab 仿真 4 —— 距离分辨率分析
【YOLOv5】环境搭建:Win11 + mx450
小程序:生命周期
What happens when MySQL tables change from compressed tables to ordinary tables
JSON笔记
雷达成像 Matlab 仿真 3 —— 多目标检测
相对路径和绝对路径
qt实现将相关信息输出到日志文件
Pytorch learning note 4 - automatic calculation of gradient descent autograd
set_ false_ path
Trouble encountered in cable testing -- a case study of a manufacturer?
【学习笔记】线程创建
雷达成像 Matlab 仿真 2 —— 脉冲压缩与加窗
How to calibrate dsx2-8000? Calibration process?
ICC2(三)Clock Tree Synthesis