How rishabhzn200/google_news_api_data_flask works
News Data is a Flask-backed news extraction service: a user or scheduled Google Apps Script supplies a company name, the Flask result route invokes the extraction workflow, and fetched articles are normalized and written page-by-page to a configured Google Spreadsheet. The main runtime stages and core modules are evidenced in the excerpts; Apps Script scheduling and its spreadsheet-driven company list are documented in the README, but Code.gs was not sampled, so those links are documented rather than source-verified.
Main entry points: flaskmain.py Flask routes · mainfile.py News workflow · newsapi.py News API client · gspreadapi.py Spreadsheet client
Components 11
Entry points
- Apps Script trigger
Code.gs
Extraction workflow
- News workflow
mainfile.py - Article normalization
articles.py
External services
- News API client
newsapi.py - Spreadsheet client
gspreadapi.py
Web interface
- Flask routes
flaskmain.py - Result template
templates/result.html - Search form
templates/index.html
Other components
- Company search
- News API
- Google Spreadsheet
Connections 10
- Company search → Flask routes: submits search
Readme.txt - Apps Script trigger → Flask routes: calls API
Readme.txt - Flask routes → Search form: renders form
flaskmain.py - Flask routes → News workflow: invokes workflow
flaskmain.py - Flask routes → Result template: streams results
flaskmain.py - News workflow → News API client: requests pages
mainfile.py - News API client → News API: fetches articles
newsapi.py - News workflow → Article normalization: normalizes results
mainfile.py - News workflow → Spreadsheet client: writes pages
mainfile.py - Spreadsheet client → Google Spreadsheet: updates worksheet
gspreadapi.py