Free Python Script Audits On-Page SEO Basics: Titles, Meta Tags, H1s and Broken Links
A DEV Community tutorial shows how a roughly 100-line Python script can serve as a free alternative to paid SEO crawlers for basic site audits. The tool crawls every HTML page on a domain and checks title length, meta description presence and length, H1 count, canonical tags, and images missing alt text. It also tests every outgoing link, flagging those that return 4xx or 5xx errors or fail to connect. Results are written to two CSV files that can be opened in spreadsheet software. The author notes that the length thresholds are rules of thumb rather than official search engine requirements, and warns that the script does not throttle requests and may miss content on JavaScript-rendered sites.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in