sitemap-tracker 2.13.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sitemap-tracker might be problematic. Click here for more details.

Files changed (66) hide show
  1. sitemap_tracker-2.13.1/LICENSE +191 -0
  2. sitemap_tracker-2.13.1/PKG-INFO +328 -0
  3. sitemap_tracker-2.13.1/README.md +288 -0
  4. sitemap_tracker-2.13.1/pyproject.toml +87 -0
  5. sitemap_tracker-2.13.1/setup.cfg +4 -0
  6. sitemap_tracker-2.13.1/src/sitemap_tracker/__init__.py +5 -0
  7. sitemap_tracker-2.13.1/src/sitemap_tracker/__main__.py +389 -0
  8. sitemap_tracker-2.13.1/src/sitemap_tracker/app.py +1614 -0
  9. sitemap_tracker-2.13.1/src/sitemap_tracker/app.tcss +72 -0
  10. sitemap_tracker-2.13.1/src/sitemap_tracker/i18n.py +100 -0
  11. sitemap_tracker-2.13.1/src/sitemap_tracker/locale/de.json +404 -0
  12. sitemap_tracker-2.13.1/src/sitemap_tracker/locale/en.json +404 -0
  13. sitemap_tracker-2.13.1/src/sitemap_tracker/models/__init__.py +0 -0
  14. sitemap_tracker-2.13.1/src/sitemap_tracker/models/crawl_result.py +188 -0
  15. sitemap_tracker-2.13.1/src/sitemap_tracker/models/history.py +267 -0
  16. sitemap_tracker-2.13.1/src/sitemap_tracker/models/robots.py +175 -0
  17. sitemap_tracker-2.13.1/src/sitemap_tracker/models/settings.py +203 -0
  18. sitemap_tracker-2.13.1/src/sitemap_tracker/models/sitemap_reader.py +284 -0
  19. sitemap_tracker-2.13.1/src/sitemap_tracker/models/sitemap_writer.py +249 -0
  20. sitemap_tracker-2.13.1/src/sitemap_tracker/models/url_utils.py +135 -0
  21. sitemap_tracker-2.13.1/src/sitemap_tracker/screens/__init__.py +0 -0
  22. sitemap_tracker-2.13.1/src/sitemap_tracker/screens/file_check.py +349 -0
  23. sitemap_tracker-2.13.1/src/sitemap_tracker/screens/history.py +193 -0
  24. sitemap_tracker-2.13.1/src/sitemap_tracker/screens/proxy_warning.py +107 -0
  25. sitemap_tracker-2.13.1/src/sitemap_tracker/screens/scan_summary.py +194 -0
  26. sitemap_tracker-2.13.1/src/sitemap_tracker/screens/settings.py +236 -0
  27. sitemap_tracker-2.13.1/src/sitemap_tracker/screens/source_view.py +284 -0
  28. sitemap_tracker-2.13.1/src/sitemap_tracker/services/__init__.py +0 -0
  29. sitemap_tracker-2.13.1/src/sitemap_tracker/services/crawler.py +908 -0
  30. sitemap_tracker-2.13.1/src/sitemap_tracker/services/file_checker.py +271 -0
  31. sitemap_tracker-2.13.1/src/sitemap_tracker/services/page_analysis.py +225 -0
  32. sitemap_tracker-2.13.1/src/sitemap_tracker/services/preview_service.py +318 -0
  33. sitemap_tracker-2.13.1/src/sitemap_tracker/services/proxy_detect.py +119 -0
  34. sitemap_tracker-2.13.1/src/sitemap_tracker/services/rate_limit.py +56 -0
  35. sitemap_tracker-2.13.1/src/sitemap_tracker/services/reporter.py +192 -0
  36. sitemap_tracker-2.13.1/src/sitemap_tracker/services/site_score.py +99 -0
  37. sitemap_tracker-2.13.1/src/sitemap_tracker/services/source_fetcher.py +180 -0
  38. sitemap_tracker-2.13.1/src/sitemap_tracker/services/zwischenablage.py +66 -0
  39. sitemap_tracker-2.13.1/src/sitemap_tracker/widgets/__init__.py +0 -0
  40. sitemap_tracker-2.13.1/src/sitemap_tracker/widgets/crawl_header.py +148 -0
  41. sitemap_tracker-2.13.1/src/sitemap_tracker/widgets/page_tree.py +357 -0
  42. sitemap_tracker-2.13.1/src/sitemap_tracker/widgets/preview_panel.py +335 -0
  43. sitemap_tracker-2.13.1/src/sitemap_tracker/widgets/stats_panel.py +322 -0
  44. sitemap_tracker-2.13.1/src/sitemap_tracker/widgets/url_table.py +797 -0
  45. sitemap_tracker-2.13.1/src/sitemap_tracker.egg-info/PKG-INFO +328 -0
  46. sitemap_tracker-2.13.1/src/sitemap_tracker.egg-info/SOURCES.txt +64 -0
  47. sitemap_tracker-2.13.1/src/sitemap_tracker.egg-info/dependency_links.txt +1 -0
  48. sitemap_tracker-2.13.1/src/sitemap_tracker.egg-info/entry_points.txt +2 -0
  49. sitemap_tracker-2.13.1/src/sitemap_tracker.egg-info/requires.txt +20 -0
  50. sitemap_tracker-2.13.1/src/sitemap_tracker.egg-info/top_level.txt +1 -0
  51. sitemap_tracker-2.13.1/tests/test_alle_weitergeleitet.py +131 -0
  52. sitemap_tracker-2.13.1/tests/test_crash_log.py +83 -0
  53. sitemap_tracker-2.13.1/tests/test_crawl_cancel.py +116 -0
  54. sitemap_tracker-2.13.1/tests/test_crawl_rate_limit.py +96 -0
  55. sitemap_tracker-2.13.1/tests/test_file_check.py +454 -0
  56. sitemap_tracker-2.13.1/tests/test_i18n.py +75 -0
  57. sitemap_tracker-2.13.1/tests/test_page_analysis.py +135 -0
  58. sitemap_tracker-2.13.1/tests/test_preview_half_blocks.py +39 -0
  59. sitemap_tracker-2.13.1/tests/test_programmstart.py +77 -0
  60. sitemap_tracker-2.13.1/tests/test_rate_limit.py +80 -0
  61. sitemap_tracker-2.13.1/tests/test_reporter.py +65 -0
  62. sitemap_tracker-2.13.1/tests/test_robots.py +67 -0
  63. sitemap_tracker-2.13.1/tests/test_safe_defaults.py +90 -0
  64. sitemap_tracker-2.13.1/tests/test_settings_roundtrip.py +63 -0
  65. sitemap_tracker-2.13.1/tests/test_sitemap_writer.py +169 -0
  66. sitemap_tracker-2.13.1/tests/test_ui.py +239 -0
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2026 Michael Blaess
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
@@ -0,0 +1,328 @@
1
+ Metadata-Version: 2.4
2
+ Name: sitemap-tracker
3
+ Version: 2.13.1
4
+ Summary: Sitemap Tracker - crawls websites, generates sitemap.xml, tracks dead links and SEO issues in a TUI
5
+ Author: Michael Blaess
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/michaelblaess/sitemap-tracker
8
+ Project-URL: Repository, https://github.com/michaelblaess/sitemap-tracker
9
+ Project-URL: Issues, https://github.com/michaelblaess/sitemap-tracker/issues
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
17
+ Requires-Python: >=3.12
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: textual>=0.85.0
21
+ Requires-Dist: playwright>=1.40.0
22
+ Requires-Dist: httpx>=0.27.0
23
+ Requires-Dist: beautifulsoup4>=4.12.0
24
+ Requires-Dist: lxml>=5.0.0
25
+ Requires-Dist: textual-image[textual]>=0.12.0
26
+ Requires-Dist: textual-fspicker>=0.4.0
27
+ Requires-Dist: Pillow>=10.0
28
+ Requires-Dist: textual-themes[textual]>=0.15.1
29
+ Requires-Dist: textual-widgets>=0.32.1
30
+ Requires-Dist: textual-slider>=0.2.0
31
+ Provides-Extra: dev
32
+ Requires-Dist: pytest>=8.0; extra == "dev"
33
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
34
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
35
+ Requires-Dist: pytest-xdist>=3.5; extra == "dev"
36
+ Requires-Dist: mypy>=1.8; extra == "dev"
37
+ Requires-Dist: poethepoet>=0.29; extra == "dev"
38
+ Requires-Dist: ruff>=0.3; extra == "dev"
39
+ Dynamic: license-file
40
+
41
+ # Sitemap Tracker
42
+
43
+ <p align="center">
44
+ <img src="https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/64b53c6892d70fe877c894961ef815f55d0858ad/docs/flags/gb.svg" height="13" alt=""> <b>English</b> ·
45
+ <img src="https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/64b53c6892d70fe877c894961ef815f55d0858ad/docs/flags/de.svg" height="13" alt=""> <a href="https://github.com/michaelblaess/sitemap-tracker/blob/64b53c6892d70fe877c894961ef815f55d0858ad/README.de.md">Deutsch</a>
46
+ </p>
47
+
48
+ ---
49
+
50
+ <p align="center">
51
+ <img src="https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/64b53c6892d70fe877c894961ef815f55d0858ad/docs/banner.jpg" alt="sitemap-tracker - a website as a node graph beside an XML sitemap with change badges" width="100%">
52
+ </p>
53
+
54
+ [![Stars](https://img.shields.io/github/stars/michaelblaess/sitemap-tracker?logo=github&logoColor=white&color=fbbf24)](https://github.com/michaelblaess/sitemap-tracker/stargazers)
55
+ [![Forks](https://img.shields.io/github/forks/michaelblaess/sitemap-tracker?logo=github&logoColor=white&color=34d399)](https://github.com/michaelblaess/sitemap-tracker/network/members)
56
+ [![Issues](https://img.shields.io/github/issues/michaelblaess/sitemap-tracker?logo=github&logoColor=white&color=f87171)](https://github.com/michaelblaess/sitemap-tracker/issues)
57
+ [![Pull Requests](https://img.shields.io/github/issues-pr/michaelblaess/sitemap-tracker?logo=github&logoColor=white&color=a78bfa)](https://github.com/michaelblaess/sitemap-tracker/pulls)
58
+
59
+ [![Last Commit](https://img.shields.io/github/last-commit/michaelblaess/sitemap-tracker?logo=git&logoColor=white&color=3b82f6)](https://github.com/michaelblaess/sitemap-tracker/commits/main)
60
+ [![License](https://img.shields.io/badge/license-Apache_2.0-3b82f6)](https://github.com/michaelblaess/sitemap-tracker/blob/64b53c6892d70fe877c894961ef815f55d0858ad/LICENSE)
61
+ [![Python](https://img.shields.io/badge/python-3.10+-3b82f6?logo=python&logoColor=white)](https://www.python.org/)
62
+
63
+ Crawls websites and generates standard-compliant `sitemap.xml` files. Uses [Playwright](https://playwright.dev/) for JavaScript rendering or [httpx](https://www.python-httpx.org/) for fast HTTP crawling.
64
+
65
+ ## Screenshots
66
+
67
+ ### Main View
68
+ ![Main View](https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/64b53c6892d70fe877c894961ef815f55d0858ad/docs/screenshots/01-main.png)
69
+
70
+ ### Sitemap Tree
71
+ ![Sitemap Tree](https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/64b53c6892d70fe877c894961ef815f55d0858ad/docs/screenshots/02-sitemap.png)
72
+
73
+ ### Crawl History
74
+ ![Crawl History](https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/64b53c6892d70fe877c894961ef815f55d0858ad/docs/screenshots/03-history.png)
75
+
76
+ ## Installation
77
+
78
+ ### One-Liner (Standalone, no Python required)
79
+
80
+ **Linux / macOS:**
81
+ ```bash
82
+ curl -fsSL https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/main/install.sh | bash
83
+ ```
84
+
85
+ **Windows (PowerShell):**
86
+ ```powershell
87
+ irm https://raw.githubusercontent.com/michaelblaess/sitemap-tracker/main/install.ps1 | iex
88
+ ```
89
+
90
+ > **Intel Macs:** the installer finds no package there. Release binaries are
91
+ > built for Apple Silicon (arm64) only, and Rosetta cannot help - it translates
92
+ > x86 to arm, not the other way round. Run from source instead: clone the
93
+ > repository, then `./bootstrap.sh` once and `./run.sh` to start. That route
94
+ > needs [uv](https://docs.astral.sh/uv/), which fetches the Python matching
95
+ > your processor.
96
+
97
+ ## Usage
98
+
99
+ ```bash
100
+ # Simple crawl (httpx mode, fast)
101
+ sitemap-tracker https://example.com
102
+
103
+ # With JavaScript rendering (Playwright)
104
+ sitemap-tracker https://example.com --render
105
+
106
+ # Save sitemap directly
107
+ sitemap-tracker https://example.com --output sitemap.xml
108
+
109
+ # Limit crawl depth
110
+ sitemap-tracker https://example.com --max-depth 5
111
+
112
+ # More concurrency
113
+ sitemap-tracker https://example.com --concurrency 16
114
+
115
+ # Ignore robots.txt
116
+ sitemap-tracker https://example.com --ignore-robots
117
+
118
+ # With cookies (e.g. for login)
119
+ sitemap-tracker https://example.com --cookie session=abc123
120
+ ```
121
+
122
+ ## CLI Parameters
123
+
124
+ | Parameter | Description | Default |
125
+ |---|---|---|
126
+ | `URL` | Start URL of the website | - |
127
+ | `--output`, `-o` | Output path for sitemap.xml | `sitemap_<host>_<timestamp>.xml` |
128
+ | `--max-depth`, `-d` | Maximum crawl depth | 10 |
129
+ | `--concurrency`, `-c` | Parallel requests | 8 |
130
+ | `--rate-limit` | Max requests per minute (0 = no limit) | 60 |
131
+ | `--timeout`, `-t` | Timeout per page (seconds) | 30 |
132
+ | `--render` | Render JavaScript with Playwright | off |
133
+ | `--no-headless` | Browser visible (debugging) | off |
134
+ | `--ignore-robots` | Ignore robots.txt | off |
135
+ | `--user-agent` | Custom User-Agent | Chrome 131 |
136
+ | `--cookie` | Set cookie (NAME=VALUE, multiple) | - |
137
+
138
+ ## Keyboard Shortcuts (TUI)
139
+
140
+ | Key | Function |
141
+ |---|---|
142
+ | `c` | Start crawl (URL dialog) |
143
+ | `x` | Cancel crawl / JSON error report |
144
+ | `m` | Save sitemap (save-as dialog) |
145
+ | `s` | Settings |
146
+ | `g` | Export form report (JSON) |
147
+ | `j` | JIRA table to clipboard |
148
+ | `e` | Show errors only |
149
+ | `f` | Sitemap diff |
150
+ | `d` | Copy URL details |
151
+ | `l` | Toggle log |
152
+ | `h` | History |
153
+ | `z` | Crawl summary (score, findings) |
154
+ | `v` | Show the broken link in the referring page source (4xx/5xx rows) |
155
+ | `?` | HTTP status code reference |
156
+ | `i` | Info dialog |
157
+ | `q` | Quit |
158
+
159
+ Copying / exporting the log runs via right-click on the log panel.
160
+ Hovering a shortcut in the footer reveals a full tooltip explaining what it does.
161
+ URLs in the log, header and detail panel are clickable without holding Ctrl.
162
+
163
+ ## Features
164
+
165
+ - **Dual mode**: httpx (fast, HTML only) or Playwright (JavaScript rendering)
166
+ - **robots.txt**: Respected by default, `--ignore-robots` to disable
167
+ - **Auto-split**: With >50,000 URLs, an automatic sitemap index with partial sitemaps
168
+ - **Priority**: Automatically based on crawl depth (home page = 1.0)
169
+ - **lastmod**: From HTTP Last-Modified header
170
+ - **URL normalization**: Duplicates avoided through normalization
171
+ - **Redirect-target resolution (same-host aliases)**: A sitemap normally lists only crawled HTTP-200 HTML pages — pure redirects (301/302) are left out, because they have no content of their own. But there is one special case: when a redirect points to a page **on the same host that is not otherwise listed** (an internal *alias*, e.g. `/old-path` → `/new-path` where `/new-path` is only reachable via the redirect), that resolved target would fall through the cracks and never end up in the sitemap. The writer therefore writes the **resolved target** into the sitemap instead of silently dropping the redirect. Three rules keep this safe and standard-compliant:
172
+ 1. **Already covered → skipped.** If the redirect resolves to a page that is already listed as a 200 page, it is dropped — scanning it again would just duplicate the existing page.
173
+ 2. **Same target → one entry.** Several redirects pointing at the same target collapse into a single sitemap entry.
174
+ 3. **Same host only.** Only targets on the **exact same host** are added. A `sitemap.xml` may, per the [sitemaps.org standard](https://www.sitemaps.org/protocol.html#location), only contain URLs from the host it lives on — so redirects to **sibling subdomains** (e.g. `www.waerme.enviam.de` redirecting to `www.enviam.de` or `www.solar.enviam.de`) or to foreign domains are **excluded**. They belong in the sitemap of *their own* site, not this one. If you want those pages scanned, crawl that host directly.
175
+
176
+ Note: the resolved target's *final* HTTP status is not re-fetched (the crawler only stored the original 301), so a broken same-host alias target shows up as an error in the downstream scan — which is exactly what you want to see.
177
+ - **Form detection**: `<form>` tags are detected, marked in the table and exportable as JSON
178
+ - **Dead-link source viewer**: For every 4xx/5xx page, jump to the referring page's HTML and see the exact line that contains the broken link — Pygments-highlighted, the match line painted in a warm gold band. From there: open the source in your browser, copy a paste-ready snippet (broken URL + ±3 lines of context + line number) to the clipboard, or save the full HTML as evidence
179
+ - **Results context menu**: Right-click on any results row for the five bulk actions (toggle errors-only filter, save sitemap as XML, save error report as JSON, copy JIRA table, generate forms report). 4xx/5xx rows additionally get a one-click jump into the broken-link source viewer
180
+ - **JIRA table in two formats** (Settings -> Export): **Markdown** for Jira Cloud (converts to a real table when pasted into a comment) and **Wiki markup** for older Jira Server/Data Center instances
181
+ - **Live TUI**: Progress, statistics and URL details in real time — results table and page tree split across two tabs
182
+ - **Sortable results**: Click any column header (Status, HTTP, Depth, Links, Form, Time, Size, Date, URL) to sort — second click reverses. Active column gets a ▲/▼ marker. Hovering the "Links" header shows a tooltip clarifying it counts the internal links found on the page
183
+ - **Crawl summary**: When a crawl finishes, a modal shows a site score (0-100 %, share of error-free pages, with an A-F grade) and a findings table (pages crawled / error-free / with errors, HTTP status breakdown, internal links found, **URLs in the sitemap and how many of those are resolved redirect targets** — see "Redirect-target resolution" above). A "Save sitemap" button sits right next to "Close". Re-open it any time with `z`
184
+ - **HTTP status code reference**: Press `?` for a quick lookup table of all common HTTP status codes, grouped by class (2xx/3xx/4xx/5xx) with meaning and explanation - handy to tell a 301 from a 307
185
+ - **Proxy/SSO detection**: Before crawling, the start URL is probed once. If it is redirected to a foreign domain (typical of a proxy, an auth gateway such as Zscaler, or an SSO login like E.ON/Microsoft), a warning modal explains the situation and the crawl is aborted - instead of silently returning just the seed URLs. Redirects within the same registrable domain (e.g. alias 301s to a sibling subdomain) do not trigger it
186
+ - **Date & size columns**: Last-Modified date and page size are shown directly in the results table, side by side with the URL. **Note on size:** the "Size" value is the HTML document size (the delivered source). While crawling, resources such as images, CSS, JS and fonts are **not** loaded, so they do not count towards it - the real total page weight (as a browser reports it) is higher. Hovering the "Size" header explains this
187
+ - **Clickable links**: URLs in the log, crawl header and detail panel open in your default browser on a single click (no Ctrl required); local result files (sitemap.xml, JSON reports) open in the OS default app
188
+ - **Page tree**: Hierarchical view of all crawled URLs with HTTP status, dead-link and not-in-sitemap markers — embedded as a tab, siblings sorted alphabetically; the table's filter applies to the tree as well (matching nodes plus their ancestors stay visible)
189
+ - **URL dialog**: `c` opens a dialog (pre-filled with the last URL) to enter or change the target URL — no restart needed
190
+ - **Crawl header**: All crawl statistics — mode, robots.txt, concurrency, status codes, progress — grouped in one collapsible header
191
+ - **Page details**: Selecting a URL shows grouped panels — page info, issues, tech stack, SEO/meta data and HTTP headers
192
+ - **Footer tooltips**: Every shortcut shows a hover-tooltip explaining what it does — even the cryptic ones like JIRA table, sitemap diff or form report
193
+ - **Issue detection**: Flags common problems per page — HTTP errors, missing/overlong title & description, missing H1/viewport/canonical, `noindex`, slow load, large page
194
+ - **Tech-stack detection**: Detects the CMS, JS/CSS frameworks and server software of each page
195
+ - **Page preview**: Optional in-terminal screenshot of the selected page (TGP/Sixel with half-block fallback) — toggle in settings. Before the shot it accepts the cookie consent, waits for the network to settle and triggers lazy-loaded images, so hero images render instead of being cut off. A live phase indicator (loading page, accepting consent, loading images, capturing) explains why it can take 2-3 seconds
196
+ - **Save-as dialog**: `m` opens a file dialog to choose where to write the `sitemap.xml`, pre-filled with a suggested name and remembering the last folder used
197
+ - **Resizable panels**: Splitters to freely resize the URL table, log and stats panels
198
+ - **Log panel**: Right-click context menu — copy, export to file, or hide
199
+ - **Settings dialog**: Language, robots.txt, Playwright, page preview, concurrency, timeout and crawl depth — persisted across runs
200
+ - **Filter with history**: Filter the URL table by URL/status; recent filter terms in a dropdown
201
+ - **Crawl history**: Past crawls with date, URL, parameters and final stats (crawled / 2xx / errors); date in the UI's locale (DE: `dd.MM.yyyy`, EN: ISO). After picking a URL from the history, the footer `c` (crawl) key blinks to signal you are ready to start
202
+
203
+ ## Browser Strategy
204
+
205
+ 1. **System Chrome** preferred (faster startup, less memory)
206
+ 2. **Bundled Chromium** as fallback (included in standalone installation)
207
+
208
+ ## Privacy
209
+
210
+ **Important**: Crawling a website may be perceived as unusual traffic by the operator. Please note:
211
+
212
+ - Inform the website operator **before** crawling, especially for large websites
213
+ - Respect `robots.txt` (enabled by default)
214
+ - Keep the rate limit on (see below)
215
+ - This tool is intended for **your own websites** and **authorized analyses**
216
+
217
+ ### Load on the target system
218
+
219
+ A crawl follows links down to the configured depth, so the number of pages is **not known
220
+ upfront** - unlike a scan of a fixed sitemap. With `--render` every page additionally goes
221
+ through a real Chromium, which bypasses the server's caches and creates several times the load
222
+ of an ordinary visitor. On a large site this quickly adds up to hundreds of requests per minute
223
+ and can noticeably degrade a production system.
224
+
225
+ The crawler is therefore **rate-limited out of the box**: 60 requests per minute. Change it
226
+ under *Settings -> Crawl* or on the command line:
227
+
228
+ ```bash
229
+ sitemap-tracker https://www.example.com --rate-limit 20 # gentler
230
+ sitemap-tracker https://www.example.com --rate-limit 0 # no limit - be careful
231
+ ```
232
+
233
+ Note that `--concurrency` is **not** a rate limit: it caps how many requests run at the same
234
+ time, not how many go out per minute. And with `--render`, only the page requests are throttled
235
+ - whatever the browser pulls in afterwards (scripts, fonts, images) is not counted, so the real
236
+ load is higher than the configured number.
237
+
238
+ ## Use at your own risk
239
+
240
+ This program retrieves web pages automatically and thereby places load on the target systems.
241
+ Depending on its settings, that load can exceed the load of an ordinary visitor many times over
242
+ and can impair the availability of the target system.
243
+
244
+ By using it, you declare that:
245
+
246
+ 1. You will use this program only against systems for which you hold explicit authorisation from
247
+ their operator.
248
+ 2. You bear sole responsibility for its use, for the settings you choose and for all
249
+ consequences arising from them.
250
+ 3. Before running it against a production system, you will verify that the configured limits are
251
+ appropriate for that system.
252
+
253
+ The software is provided free of charge and without warranty of any kind ("as is"), as set out in
254
+ section 7 of the Apache License 2.0. The liability of the author (Michael Blaess) for damages
255
+ arising from its use is excluded to the extent permitted by applicable law. Liability for intent
256
+ and gross negligence, for injury to life, body or health, and under mandatory product liability
257
+ law remains unaffected.
258
+
259
+ On first start the program asks you to confirm this notice.
260
+
261
+ ## When something goes wrong
262
+
263
+ If the program crashes, the report is written to disk instead of only to the
264
+ terminal - two files next to the settings, both linked from the storage tab in
265
+ the settings once they exist:
266
+
267
+ | File | What for |
268
+ | --- | --- |
269
+ | `last-crash.txt` | Python errors including the traceback. Written **before** the error dialog runs - if that dialog dies during its own re-layout, the report would otherwise be lost. |
270
+ | `fault.log` | Everything below that: native access violations, stack overflow, fatal interpreter errors. Such crashes bypass Python's error handling entirely. |
271
+
272
+ Both files are **appended to**, not replaced - a second crash does not hide the
273
+ first one.
274
+
275
+ `fault.log` also gets a start and an end line per run, which makes the file
276
+ readable at a glance:
277
+
278
+ | What the file contains | What it means |
279
+ | --- | --- |
280
+ | start, traceback, end | Python error, the program saw it |
281
+ | start, end | exited cleanly |
282
+ | start, then nothing | process was killed - **not** a Python error |
283
+
284
+ A killed process and a crash look identical in the terminal. Only the missing
285
+ end line tells them apart.
286
+
287
+ On Windows, prefer starting the program via `run.ps1`: the script restores the
288
+ terminal even when the program crashes hard and can no longer do so itself.
289
+ Otherwise mouse tracking stays on and every mouse move spills control
290
+ characters into your prompt.
291
+
292
+ ## Development
293
+
294
+ ### Setup
295
+
296
+ ```bash
297
+ git clone https://github.com/michaelblaess/sitemap-tracker.git
298
+ cd sitemap-tracker
299
+
300
+ # Windows
301
+ .\bootstrap.ps1
302
+
303
+ # Linux/macOS
304
+ ./bootstrap.sh
305
+ ```
306
+
307
+ ### Local Start
308
+
309
+ ```bash
310
+ # Windows
311
+ .\run.ps1 https://example.com
312
+
313
+ # Linux/macOS
314
+ ./run.sh https://example.com
315
+ ```
316
+
317
+ ### Creating a Release
318
+
319
+ ```bash
320
+ git tag vX.Y.Z
321
+ git push origin vX.Y.Z
322
+ ```
323
+
324
+ GitHub Actions automatically builds executables for Windows, Linux and macOS.
325
+
326
+ ## License
327
+
328
+ Apache License 2.0 - see [LICENSE](https://github.com/michaelblaess/sitemap-tracker/blob/64b53c6892d70fe877c894961ef815f55d0858ad/LICENSE)