当前位置:网站首页>Scratch command
Scratch command
2022-07-28 06:49:00 【Phantom seven illusions】
One 、 Global command
1-startproject
Create a new Scrapy project :
scrapy startproject <project_name> [project_dir]for example :scrapy startproject Crawler51job
【 Be careful 】 The project name cannot start with a number
2-genspider
In the current folder or current project , Create a new crawler file
scrapy genspider [-t template] <name> <domain>for example :scrapy genspider -t basic spider51job 51job.com
other template See the help document for parameters
3-runspider
Run a crawler file
scrapy runspider <spider_file.py>for example ;scrapy runspider test51job.py
4-fetch
Get the specified URL, And it can show the process of acquisition
scrapy fetch <url>for example :scrapy fetch https://www.baidu.com
5-view
Open the specified... In the browser URL
scrapy view <url>scrapy view https://www.baidu.com6-version
Print out Scrapy Version number
scrapy version [-v]scrapy version -vTwo 、 Project Command
1-crawl
Run the crawler project
scrapy crawl <spider>for example :scrapy crawl spider51job [--nolog]
2-bench
Test local hardware performance
scrapy bench3-list
List all crawler files under the current project
scrapy list边栏推荐
猜你喜欢

Lancher deployment practice

RayMarching realizes volume light rendering

JS逆向100题——第1题

MySQL index optimization
![[dynamic planning -- the best period for buying and selling stocks series 3]](/img/9f/f6c07264f5ffaa0fdfcc724c713e83.png)
[dynamic planning -- the best period for buying and selling stocks series 3]

中国剩余定理 个人理解

rancher部署实战

Leetcode skimming diary sword finger offer II 050. sum of downward path nodes

技术分享 | 接口测试常用代理工具

How to calculate the size of structure, segment and Consortium (common body)
随机推荐
Ten thousand words summarize and realize the commonly used sorting and performance comparison
[C language] dynamic memory management
Code tidiness (I)
SSAO By Computer Shader(三)
中国剩余定理 个人理解
OJ 1131 beautiful number
Prometheus monitoring Nacos
图形管线基础(二)
订单交易简析
mysql索引优化
[dynamic planning -- the best period series for buying and selling stocks]
rancher部署实战
水瓶效果制作
ZOJ Problem 1005 jugs
AQS之semaphore源码分析
File operation in C language
Source code analysis of countdownlatch of AQS
网络——传输层(详细版)
SSAO by computer shader (III)
OJ 1451 digital games