当前位置:网站首页>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边栏推荐
猜你喜欢

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

C language memcpy library functions and the role of memmove

JS reverse question 100 - question 1

About the collation of shader keyword

It is recommended to wear air conduction earphones, which do not need to wear in ear

图形管线基础(一)

技术分享 | 使用postman发送请求

Mongodb quick start

Mongo SSL configuration practice

Everything you don't know about time complexity is here
随机推荐
SSAO by computer shader (II)
OJ 1253 ordering problem
Mongo SSL configuration practice
Fermat's theorem
Leetcode brush questions diary sword finger offer II 047. Binary tree pruning
HDU-1159-CommonSubsequence(LCS最长公共子序列)
JS逆向100题——第1题
网络——网络层
Leetcode brush question diary sword finger offer II 048. serialization and deserialization binary tree
OJ 1131 beautiful number
[C note] data type and storage
Redis implementation of distributed lock and analysis of the main process of redismission distributed lock
Code neatness (2)
SSAO by computer shader (III)
搭建PHP7私有仓库
网络——数据链路层
单项链表的创建、遍历以及按要求查找结点
@PostConstruct注解及用处示例
Question brushing record - linked list
Everything you don't know about time complexity is here