How aftercoma/api_proxy works
Projek_api collects proxy records from an external listing, stores them in SQLite, and serves them through Flask JSON endpoints; its root route also renders a page. The scraper initializes the table before inserting parsed rows. The API independently queries the same database for all proxies or one random proxy. The README provides no additional capability details, so this map is based on the sampled source; the database display script is omitted as a peripheral inspection utility.
Main entry points: api.py Flask routes · scrap.py Scraper and parser · proxies.db Proxy database · db.py Schema setup
Components 7
Proxy collection
- Scraper and parser
scrap.py
SQLite storage
- Schema setup
database/db.py - Proxy database
proxies.db
Web API
- Flask routes
api.py - Home page
templates/index.html
Other components
- Proxy listing
- API client
Connections 8
- Scraper and parser → Proxy listing: fetches listing
scrap.py - Scraper and parser → Schema setup: initializes schema
scrap.py - Schema setup → Proxy database: creates table
database/db.py - Scraper and parser → Proxy database: inserts proxies
scrap.py - Flask routes → Proxy database: queries proxies
api.py - Flask routes → Home page: renders page
api.py - API client → Flask routes: requests routes
api.py - Flask routes → API client: returns JSON
api.py