🔤 English | 🀄 ️ simplified Chinese | 🔙 my8100 / files
Issue in 2014
Pull request in 2019
The trial
- Installation:
pip install -U git+https://github.com/my8100/scrapyd.git@add_basic_auth
- Updating the Configuration Filescrapyd.confFor details about other configuration items, seeThe official documentation
[scrapyd]
username = yourusername
password = yourpassword
Copy the code
- Activation:
scrapyd
In [1]: import requests In [2]: requests. Get ('http://127.0.0.1:6800/').status_code Out[2]: 401 In [3]: Requests. The get (' http://127.0.0.1:6800/ ', auth = (' admin 'and' admin ')). Status_code Out [3] : [4] In 401: Requests. Get ('http://127.0.0.1:6800/', auth=('yourusername', 'yourpassword')).status_code Out[4]: 200
Copy the code
- Thanks to Scrapyd’s latest GitHub submission has beenThe Jobs page was refactored, if you are usingScrapydWebScrapydWeb:
pip install -U git+https://github.com/my8100/scrapydweb.git
Return to the top
🔙 my8100 / files