Skip to main content

os-scrapy-random-useragent

Build Status codecov PyPI - Python Version PyPI

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.

Metadata

Release files for os-scrapy-random-useragent 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for os-scrapy-random-useragent 0.0.1
File Size Uploaded Provenance
os_scrapy_random_useragent-0.0.1.tar.gz 8.7 kB Without provenance Details

Release files / os_scrapy_random_useragent-0.0.1.tar.gz

Download URL os_scrapy_random_useragent-0.0.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9dd179b467112df534d8b730e7959eba32e1eb807eba739d1e4dbc97d1b95bce
BLAKE2b-256 checksum
How to use checksums
060fccac29e08b4db45d79b84e1f8e64a4a571422ebdb9201bee63a1143bc788
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

Security for os-scrapy-random-useragent 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page