当前位置:网站首页>Scratch uses runner Py run or debug crawler
Scratch uses runner Py run or debug crawler
2022-07-03 22:42:00 【Keep a low profile】
Before we run scrapy Reptiles , Always execute on the command line
scrapy crawl Spider name
This kind of operation is no problem , But I can't use run 、debug
So the new method comes 
Find a directory , Add one runner.py
from scrapy.cmdline import execute
if __name__ == '__main__':
execute('scrapy crawl test_m'.split())
In this way, you can right-click to run it
边栏推荐
- Morning flowers and evening flowers
- Blue Bridge Cup -- Mason prime
- [sg function]split game (2020 Jiangxi university student programming competition)
- Team collaborative combat penetration tool CS artifact cobalt strike
- Exness: the Central Bank of England will raise interest rates again in March, and inflation is coming
- [sg function] lightoj Partitioning Game
- Leetcode: a single element in an ordered array
- Ten minutes will take you in-depth understanding of multithreading. Multithreading on lock optimization (I)
- Sort merge sort
- Can you draw with turtle?
猜你喜欢

Blue Bridge Cup -- Mason prime

Take you to master the formatter of visual studio code
![Buuctf, web:[geek challenge 2019] buyflag](/img/02/d3add04f8145621bff35d46b82ba53.jpg)
Buuctf, web:[geek challenge 2019] buyflag

Exclusive download! Alibaba cloud native brings 10 + technical experts to bring "new possibilities of cloud native and cloud future"

Preliminary analysis of smart microwave radar module

MLX90614 driver, function introduction and PEC verification

Can you draw with turtle?

Go Technology Daily (2022-02-13) - Summary of experience in database storage selection

Bluebridge cup Guoxin Changtian single chip microcomputer -- hardware environment (I)

320. Energy Necklace (ring, interval DP)
随机推荐
Yyds dry goods inventory Prometheus alarm Art
Learning notes of raspberry pie 4B - IO communication (SPI)
. Net ADO splicing SQL statement with parameters
Rest reference
Yyds dry goods inventory Spring Festival "make" your own fireworks
webAssembly
[sg function] lightoj Partitioning Game
Blue Bridge Cup Guoxin Changtian single chip microcomputer -- led lamp module (V)
Preliminary analysis of smart microwave radar module
How to solve win10 black screen with only mouse arrow
SDNU_ ACM_ ICPC_ 2022_ Winter_ Practice_ 4th [individual]
The difference between SRAM and DRAM
[dynamic programming] Jisuan Ke: Jumping stake (variant of the longest increasing subsequence)
In 2022, 6G development has indeed warmed up
Flutter internationalized Intl
How to solve the problem of computer networking but showing no Internet connection
LeetCode 1646. Get the maximum value in the generated array
Plug - in Oil Monkey
Text replacement demo
[sg function] 2021 Niuke winter vacation training camp 6 h. winter messenger 2