Home > other >  Consult scrapy API, scrapyrt installation verification issues
Consult scrapy API, scrapyrt installation verification issues

Time:04-12

Scrapy API authentication
 & gt;> The from scrapyd_api import ScrapydAPI 
> Scrapyd=ScrapydAPI (' http://localhost:6800 ')
> Print (scrapyd. List_projects ())
Traceback (the most recent call last) :
The File "C: \ Users \ zhou_ \ AppData \ Local \ designed \ Python \ Python39 \ lib \ site - packages \ urllib3 \ connection py", line 169, in _new_conn
Conn=connection. Create_connection (
The File "C: \ Users \ zhou_ \ AppData \ Local \ designed \ Python \ Python39 \ lib \ site - packages \ urllib3 \ util \ connection py", line 96, in create_connection
Raise err
The File "C: \ Users \ zhou_ \ AppData \ Local \ designed \ Python \ Python39 \ lib \ site - packages \ urllib3 \ util \ connection py", line 86, in create_connection
The sock. Connect (sa)
ConnectionRefusedError: [10061] WinError because the target machine actively refused, unable to connect,


This problem has been to try Internet options - LAN Settings - automatic monitoring set, not solve,

Scrapyrt validation
 Traceback (the most recent call last) : 
The File "c: \ users \ zhou_ \ appdata \ local \ designed \ python \ python39 \ lib \ runpy py", line 197, in _run_module_as_main
Return _run_code (code, main_globals, None,
The File "c: \ users \ zhou_ \ appdata \ local \ designed \ python \ python39 \ lib \ runpy py", line 87, in _run_code
The exec (code, run_globals)
The File "C: \ Users \ zhou_ \ AppData \ Local \ designed \ Python \ Python39 \ Scripts \ scrapyrt exe \ __main__ py", line 7, in & lt; module>
The File "c: \ users \ zhou_ \ appdata \ local \ designed \ python \ python39 \ lib \ site - packages \ scrapyrt \ cmdline py", line 88, in the execute
Settings. Set (' PROJECT_SETTINGS 'find_scrapy_project (the arguments. Project))
The File "c: \ users \ zhou_ \ appdata \ local \ designed \ python \ python39 \ lib \ site - packages \ scrapyrt \ cmdline py", line 66, in find_scrapy_project
Raise RuntimeError (' always find a scrapy. CFG file ')
RuntimeError: always find a scrapy. CFG file

  • Related