os-scrapy-random-useragent 0.0.1

Last updated:

0 purchases

os-scrapy-random-useragent 0.0.1 Image
os-scrapy-random-useragent 0.0.1 Images
Add to Cart

Description:

osscrapyrandomuseragent 0.0.1

os-scrapy-random-useragent




This project provide a Downloader Middleware to change 'User-Agent' of request headers.
Install
pip install os-scrapy-random-useragent

Usage
Settings


enable downloader middleware in settings.py file:
this middleware will override default Scrapy User-Agent
DOWNLOADER_MIDDLEWARES = {
"os_scrapy_random_useragent.RandomUserAgentMiddleware": 543,
}



config useragents:


by file:
USER_AGENTS = "./your-useragets-file"



by string:
USER_AGENTS = "Your-Useragent-String"



by list:
USER_AGENTS = ["User-Agent-01", "User-Agent-02"]





Unit Tests
tox

License
MIT licensed.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.