Article/Xin Ye photo from the Internet

Issue in 2014

Copy the code

Pull request in 2019

https://github.com/scrapy/scrapyd/pull/326 pull request #326
Copy the code

The trial

1. Installation:

pip install -U git+https://github.com/my8100/scrapyd.git@add_basic_auth`
Copy the code

PR has been merged:

pip install -U git+https://github.com/scrapy/scrapyd.git
Copy the code

2. Update the configuration file scrapyd.conf. For details about other configuration items, see the official documents

[scrapyd]
username = yourusername
password = yourpassword
Copy the code

3. Start: 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]: 200Copy the code

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

pip install -U git+https://github.com/my8100/scrapydweb.git
Copy the code

\

\

Hot recommended in Python create WeChat robot in Python robot to monitor WeChat group chat in Python for cameras and real-time control face open source project | beautification LeetCode warehouse is recommended in Python Python Chinese community’s several kind of public service, announced notice | Python Chinese Community award for articles \

\

Click to become a registered member of the community ** “Watching” **