如何在Wing IDE中除錯scrapy
阿新 • • 發佈:2020-10-22
如何在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