Back to articles
Build a Website Tech Stack Scanner in Python (Under 50 Lines)

Build a Website Tech Stack Scanner in Python (Under 50 Lines)

via Dev.to PythonMikeL

Ever wonder what tech stack a website is running? Maybe you're scoping out a competitor, enriching leads, or checking for outdated frameworks with known vulnerabilities. Here's a Python script that does it in under 50 lines. It calls a tech detection API, parses the response, and gives you a clean report. The Full Script import requests import sys API_URL = " https://detectzestack.p.rapidapi.com/analyze " HEADERS = { " X-RapidAPI-Key " : " YOUR_API_KEY " , " X-RapidAPI-Host " : " detectzestack.p.rapidapi.com " } def scan ( url ): resp = requests . get ( API_URL , headers = HEADERS , params = { " url " : url }) resp . raise_for_status () return resp . json () def report ( data ): print ( f " \n { ' = ' * 50 } " ) print ( f " { data [ ' domain ' ] } (HTTP { data [ ' status_code ' ] } ) " ) print ( f " Scanned in { data [ ' detection_time_ms ' ] } ms " ) print ( f " { ' = ' * 50 } " ) # Group by category by_cat = {} for tech in data [ " technologies " ]: cat = tech [ " category " ] by_cat

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
3 views

Related Articles