fetch-sitemap
Retrieves all URLs of a given sitemap.xml URL and fetches each page one by one. Useful for (load) testing the entire site for error responses.
Note: The default concurrency limit is 5, so five 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] [--random] [--report-path REPORT_PATH]
[-o OUTPUT] [-v]
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' (default: None)
-l, --limit LIMIT Maximum number of URLs to fetch from the given sitemap.xml
(default: None)
-c, --concurrency-limit CONCURRENCY_LIMIT
Max number of concurrent requests (default: 5)
-t, --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) (default:
None)
-o, --output-dir OUTPUT
Store all fetched sitemap documents in this folder (default: None)
-v, --version Show program's version number and exit
🤺 Local Development
poetry install
poetry run fetch-sitemap -h
poetry run ./tests.sh
Release files for fetch-sitemap 14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fetch_sitemap-14.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fetch_sitemap-14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / fetch_sitemap-14.tar.gz
| Download URL | fetch_sitemap-14.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f53493a3ed67ed675548ca27fe7e73c8e2561a8cc56102c6fc38011ade28c822
|
|
BLAKE2b-256 checksum How to use checksums |
634867c1c6b1afe4116ef9ce0c286b9bf4dc7126e0fc3e2beb6a1c946954e1b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.4.0
|
Release files / fetch_sitemap-14-py3-none-any.whl
| Download URL | fetch_sitemap-14-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3470c62de1016cd1a05318939c103627707292e7e41d0021de4387c65ac6738
|
|
BLAKE2b-256 checksum How to use checksums |
68f3eeb65fb0bf851a259636742553d8cc4d7fe23c0451a04e6da8d6c5846af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.4.0
|