1. 程式人生 > 實用技巧 >如何在Wing IDE中除錯scrapy

如何在Wing IDE中除錯scrapy

2019獨角獸企業重金招聘Python工程師標準>>> hot3.png

如何在Wing IDE中除錯scrapy


用scrapy startproject YourProjectName 建立專案後,在專案根目錄新增一個main.py檔案,作為專案啟動檔案容:

from scrapy.cmdline import execute
execute()

然後單擊main.py右鍵-->File Attribute-->Debug->Run Arugments 輸 問題三 入命令引數

scrapy中如何使用代理伺服器


在main.py的File Attribute--Environment- Add to Project values

中新增 http_proxy=127.0.0.1:8081 (使用sougou瀏覽器做代理)

轉載於:https://my.oschina.net/cppblog/blog/11175