{"id":17983490,"url":"https://github.com/techjacker/sitemapgenerator","last_synced_at":"2025-06-14T07:02:29.059Z","repository":{"id":52705620,"uuid":"62089224","full_name":"techjacker/sitemapgenerator","owner":"techjacker","description":"Creates an XML sitemap of a domain","archived":false,"fork":false,"pushed_at":"2021-04-20T17:09:51.000Z","size":25,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T04:40:23.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techjacker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-27T21:22:22.000Z","updated_at":"2020-01-18T06:18:20.000Z","dependencies_parsed_at":"2022-08-22T08:00:14.856Z","dependency_job_id":null,"html_url":"https://github.com/techjacker/sitemapgenerator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fsitemapgenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fsitemapgenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fsitemapgenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Fsitemapgenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techjacker","download_url":"https://codeload.github.com/techjacker/sitemapgenerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107828,"owners_count":20884797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T18:17:23.868Z","updated_at":"2025-04-04T02:12:56.008Z","avatar_url":"https://github.com/techjacker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sitemapgenerator\n\nCreates an XML sitemap of a domain.\n\nPython3+.\n\n## Install\n```\npip install sitemapgenerator\n```\n\n\n## Usage\n\n```Shell\nusage: sitemapgenerator [-h] [-f FILE] [-t THROTTLE] [-l LIMIT] [-q] domain\n\nGenerate an XML sitemap for a domain\n\npositional arguments:\n  domain                domain to crawl\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -f FILE, --file FILE  write the xml to a file\n  -t THROTTLE, --throttle THROTTLE\n                        max time in secs to wait between requesting URLs\n  -l LIMIT, --limit LIMIT\n                        max number of URLs to crawl\n  -q, --quiet\n```\n\n\n\n## Example Usage\n```Shell\n$ sitemapgenerator -f site.xml -l 1 devopsreactions.tumblr.com\n\ncrawling homepage\ncrawling /post/146054449345/ops-report-three-out-of-five-app-servers#notes\ncrawled 2 URLs\nwrote sitemap to /tmp/site.xml\n```\n\n\n-----------------------------------------------------------\n\n## Development\n\n### Setup\n\n#### Set up virtualenv\n```\npyenv install 3.5.0\npyenv local 3.5.0\npyvenv env\nsource env/bin/activate\n```\n\n#### Install requirements\n```\npip install -r requirements.txt\n```\n\n#### Update requirements\n```\npip install -r requirements-to-freeze.txt --upgrade\npip freeze \u003e requirements.txt\n```\n\n-----------------------------------------------------------\n\n## Tests\n\n```\npy.test tests -q\n```\n\n\n#### Anaconda Settings\n\nAdd the following to your project settings\n\n```\n\"settings\":\n  {\n    \"test_virtualenv\": \"~/path_to_project/env\",\n    \"test_command\": \"py.test\"\n  }\n```\n\n\n-----------------------------------------------------------\n\n## TODO\n\n- add more tests\n- normalize URLs to remove dupes\n\t- hashes from end of URLs (eg /some/url/#respond)\n\t- tailing slashes on URLs\n- add option to create sitemap of:\n  - external URLs\n  - non HTML URLs on same domain\n- refactor code\n  - create separate data class which crawler inherits from/accesses\n  - create single getter method for ```Crawler``` class links and remove extra get_* methods\n- add concurrency (eventlet/gevent)\n- add progress bar to CLI\n- add support for Python 2\n  - add tox tests for different python versions\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Fsitemapgenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechjacker%2Fsitemapgenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Fsitemapgenerator/lists"}