当前位置:网站首页>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边栏推荐
- [the beginning of self redemption]
- OJ 1018 counting game
- OJ 1089 Spring Festival travel
- Brief analysis of order transaction
- Code neatness (2)
- 软件测试的生命周期(流程)
- 技术分享 | 接口测试常用代理工具
- mongoDB快速入门
- Leetcode brush question diary sword finger offer II 053. Medium order successor in binary search tree
- OJ 1131 beautiful number
猜你喜欢

单元测试框架Jest搭配TypeScript的安装与配置
![[pta-- use queues to solve the problem of monkeys choosing kings]](/img/54/94359fb3557ac07f7786ecf61a5409.png)
[pta-- use queues to solve the problem of monkeys choosing kings]

项目编译NoSuch***Error问题

Prometheus monitoring Nacos

Water drop effect on umbrella

【无标题】

Lancher deployment practice

Mongodb quick start

Project compilation nosuch*** error problem

Skimming records -- sequence traversal of binary tree
随机推荐
explain详解
AQS之ReentrantLock源码解析
OJ 1451 digital games
Question brushing record -- binary tree
测试面试题集锦(一)| 软件测试常见必考问题与流程篇(附答案)
File operation in C language
[dynamic planning -- the best period for buying and selling stocks series 3]
HDU-1159-CommonSubsequence(LCS最长公共子序列)
NIO示例
网络——传输层(详细版)
Redis implementation of distributed lock and analysis of the main process of redismission distributed lock
从普通查询商品到高并发查询商品的优化思路
[C language] custom structure type
Initializingbean interface and examples
Rain Scene Effect (I)
OJ 1129 fraction matrix
About the collation of shader keyword
OJ 1507 deletion problem
Question skimming record - hash table
Everything you don't know about time complexity is here