How akshat2711/academia_scrapper_api_fast works
Academia Fast Scraper API exposes student-data scraping through FastAPI, with an Academia session-based flow and an SRM portal flow. The main workflow authenticates, fetches portal pages, parses student and academic data, and returns a structured response; retries and timetable-derived attendance provide recovery paths. README documents the broader SRM scraper capabilities, while the sampled app excerpt shows a native SRM scraper route. Some retry and fallback wiring is documented but not visible in the sampled app code; those links cite the README.
Main entry points: app.py FastAPI routes · studentinfo_scrap.py Academia client · native_srm_scraper.py Native SRM scraper · studentportal_result.py SRM result scraper
Components 11
API orchestration
- FastAPI routes
app.py
Academia scraping
- Academia client
studentinfo_scrap.py - Login classifier
tools/handle_login_error_codes.py - Academia portal
SRM portal scraping
- Native SRM scraper
tools/native_srm_scraper.py - SRM result scraper
tools/studentportal_result.py - SRM student portal
Recovery and parsing
- Academia HTML parser
utils/parser.py - Fetch retry
tools/retry_fetch_failed_login.py - Attendance fallback
tools/fallback_mock_attendance_data.py
Other components
- API client
Connections 13
- API client → FastAPI routes: submits request
Readme.md - FastAPI routes → Academia client: creates client
app.py - Academia client → Academia portal: authenticates and fetches
studentinfo_scrap.py - Academia client → Login classifier: classifies login
studentinfo_scrap.py - Academia client → Academia HTML parser: parses pages
studentinfo_scrap.py - FastAPI routes → Fetch retry: coordinates retries
Readme.md - Fetch retry → Academia client: re-authenticates and fetches
tools/retry_fetch_failed_login.py - FastAPI routes → Attendance fallback: builds fallback
Readme.md - Attendance fallback → Academia HTML parser: uses timetable data
- FastAPI routes → Native SRM scraper: routes portal scrape
app.py - Native SRM scraper → SRM student portal: logs in and fetches
tools/native_srm_scraper.py - FastAPI routes → SRM result scraper: routes result scrape
Readme.md - SRM result scraper → SRM student portal: solves CAPTCHA and fetches
tools/studentportal_result.py