{"repo":"EndlessTrax/pyanchor","free":true,"listed":false,"github":"https://github.com/EndlessTrax/pyanchor","clone":"git clone https://github.com/EndlessTrax/pyanchor.git","description":"Find your broken links, so users don't.","language":"Python","stars":66,"topics":["cli","dead-links","anchor-tags","python","python3","link-checker","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"PyAnchor Dead links are an annoyance for websites with an extensive amount of content. A side from the negative impact on SEO, dead links are an annoyance for any user that clicks on one. PyAnchor is primarily for checking the HTTP response on all links on a page. You can integrate it into your development workflow so that users never see a 404 in the first place. Install Requires Python 3.10 and above. It is recommended that you install this package in a virtual or isolated environment. The easiest way to do this is with pipx. Alternatively, you can install it with pip into your virtual environment: MacOS / Linux: Windows: Using the CLI The CLI can be invoked with the pyanchor command. A URL must be provided unless it's the help page. To get the help page: Basic example for a single page: Note: all provided URLs must include a valid HTTP scheme. If you want to check all links on a website, and not just a single page, a sitemap.xml URL may be provided and flagged with --sitemap . Example: By default, successful requests are not printed to the terminal. To see all urls with a 200 response add the --verbose flag. If you wish the output the results to a csv file, instead of to the terminal (default), then you may wish to use the --output-csv flag: But wait, there's more... To integrate PyAnchor into your application, you can import the LinkResults class. LinkResults requires a URL. Example: As you can see the results attribute is a dictionary containing all response codes return","default_branch":null,"files":null,"tree":[],"storefront":"/r/EndlessTrax","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EndlessTrax/pyanchor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}