fetch-sitemap-4
توضیحات
Fetch a given sitemap and retrieve all URLs in it.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fetch-sitemap-4 |
| نام | fetch-sitemap |
| نسخه کتابخانه | 4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Martin Mahner <martin@elephant.house> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fetch-sitemap/ |
| مجوز | - |
# 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.

*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.
```
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | importlib-metadata |
| - | rich |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl fetch-sitemap-4:
pip install fetch-sitemap-4.whl
نصب پکیج tar.gz fetch-sitemap-4:
pip install fetch-sitemap-4.tar.gz