How roodmann/python-project-83 works
Page Analyzer is a Flask web application for registering URLs and inspecting their pages. The main workflow validates and normalizes a submitted URL, stores it, fetches it on request, parses its HTML metadata, and persists the check for later display. Listing and detail views read stored URL/check data. The README also describes HTML structure, metadata, and time-limited loading analysis; the shown parser extracts only H1, title, and description, so broader documented analysis is not represented as implemented. Relationships follow the sampled app and database code.
Main entry points: app.py Flask routes · database.py Database access · templates HTML views · url_validator.py URL validation
Components 9
Web interface
- Flask routes
page_analyzer/app.py - HTML views
page_analyzer/templates
URL analysis
- URL validation
page_analyzer/url_validator.py - Page fetch
page_analyzer/app.py - Metadata parser
page_analyzer/parser.py
Persistence
- Database access
page_analyzer/database.py - PostgreSQL
database.sql
Other components
- User
- Target website
Connections 7
- User → Flask routes: submits requests
page_analyzer/app.py - Flask routes → HTML views: renders views
page_analyzer/app.py - Flask routes → URL validation: validates URLs
page_analyzer/app.py - Flask routes → Database access: reads and writes
page_analyzer/app.py - Flask routes → Target website: fetches page
page_analyzer/app.py - Flask routes → Metadata parser: parses response
page_analyzer/app.py - Database access → PostgreSQL: queries
page_analyzer/database.py