Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
We build a lot of web scrapers using Scrapy and I've been using your package for a while now. It's great for managing our multi-proxy setup.
We have been developing a proxy system that shares the proxy list via a URL. I have been dumping the contents of that URL to a file so that I can read it in via
ROTATING_PROXY_LIST_PATH
but this has become a bit of a pain. It occurred to me that it should be possible to read the proxy list from an URL.The merge request includes a simple change to the
RotatingProxyMiddleware.from_crawler()
method to make that possible.Example: Sharing proxy list at http://127.0.0.1:8800.
In
settings.py
I then have:For context, here's a blog post about the proxy system that we are using in conjunction with
scrapy-rotating-proxies
.Best regards,
Andrew.