Skip to main content

fetch-sitemap

Retrieves all URL's of a given sitemap.xml URL and fetches each page one by one. Useful for (load) testing the entire site for error responses.

Sample Output

Note: The default concurrency limit is 10, so 10 URLs are fetched at once. Depending on your server's worker count, this might already be enough to DoS it. Try --concurrency-limit=2 and increase if you feel comfortable.

usage: fetch-sitemap 
    [-h] 
    [--basic-auth BASIC_AUTH] 
    [-l LIMIT] 
    [-c CONCURRENCY_LIMIT] 
    [-t REQUEST_TIMEOUT] 
    [--report-path REPORT_PATH] 
    sitemap_url

Fetch a given sitemap and retrieve all URLs in it.

positional arguments:
  sitemap_url           URL of the sitemap to fetch

options:
  -h, --help            show this help message and exit
  --basic-auth BASIC_AUTH
                        Basic auth information. Use: 'username:password'.
  -l LIMIT, --limit LIMIT
                        Maximum number of URLs to fetch from the given sitemap.xml. Default: All
  -c CONCURRENCY_LIMIT, --concurrency-limit CONCURRENCY_LIMIT
                        Max number of concurrent requests. Default: 10
  -t REQUEST_TIMEOUT, --request-timeout REQUEST_TIMEOUT
                        Timeout for fetching a URL in seconds. Default: 30
  --random              Append a random string like ?12334232343 to each URL to bypass frontend cache. Default: False
  --report-path REPORT_PATH
                        Store results in a CSV file. Example: ./report.csv
  -o OUTPUT, --output-dir OUTPUT
                        Store all fetched sitemap documents in this folder.

Metadata

Release files for fetch-sitemap 7

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

Source distribution (sdist)

Source distribution for fetch-sitemap 7
File Size Uploaded Provenance Actions
fetch-sitemap-7.tar.gz 498.6 kB Without provenance Details for fetch-sitemap-7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fetch-sitemap 7
File Interpreter ABI Platform Actions
fetch_sitemap-7-py3-none-any.whl Python 3 none any Details for fetch_sitemap-7-py3-none-any.whl

Total release size: 505.5 kB

Release files / fetch-sitemap-7.tar.gz

Download URL fetch-sitemap-7.tar.gz
Size 498.6 kB
Tags Source
SHA-256 checksum
How to use checksums
369f472ae1779160ce71ac8e86387b756b32ee607113c8d3845ebd243343b4cf
BLAKE2b-256 checksum
How to use checksums
fa3b9857ac05cf828115e1c8350df11ddffbc02df2e961759f067d1c936cbc8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / fetch_sitemap-7-py3-none-any.whl

Download URL fetch_sitemap-7-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f5d2ca1b5b3291f3177b7dbc57875906f9e3b2ebb48393c4970dcd285f63785
BLAKE2b-256 checksum
How to use checksums
53a0da1677f36dbcdd3f6e063174c03a52a2c287fd08d230b49b88a306c4d702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for fetch-sitemap 7

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.

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