KnightAnchor /
CLI-NewsFinder
A simple Python-based command-line tool that lets users search for real-time news articles on any topic using the newsapi.org .
Loading repository data…
komalbhati069-ops / repository
Command-line tool that builds a weekly PDF news report for any topic from newsdata.io headlines, with sentiment chart, keyword tags, and per-article AI summaries when available.
A small command-line tool that pulls recent headlines on a topic you choose and renders them into a tidy weekly PDF report. It reads live headlines from the newsdata.io news API (https://newsdata.io) — grab a free API key to run it.
The report opens with a sentiment breakdown chart and a top-keywords list, then lays out one card per article with its source, publish date, description, and keyword tags. When your plan returns them, each card also shows a sentiment badge and an AI summary line.
nextPage cursor.python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
export NEWSDATA_API_KEY=your_key_here
python main.py "renewable energy"
python main.py "bitcoin" --language en --max-articles 20 --output crypto.pdf
Options:
--language ISO language code, e.g. en, es, fr
--country country code, e.g. us, gb, in
--category e.g. business, technology, sports
--max-articles how many articles to include (default 30)
--output output PDF path
$ export NEWSDATA_API_KEY=pub_xxxxxxxx
$ python main.py "climate policy" --language en
Fetched 30 articles for 'climate policy'.
Wrote climate-policy-weekly-report.pdf (30 articles).
The resulting PDF has a header with the topic and generation time, a sentiment pie chart, a top-keywords summary, and an article card for each headline.
Some newsdata.io response fields — per-article sentiment, ai_summary,
ai_tag — are only populated on paid plans. The report renders them whenever
they are present, and shows a clearly labeled sample chart when sentiment is
absent, so the layout never looks broken on a free key.
A couple of request options also require a paid plan and are therefore opt-in:
ENABLE_FULL_CONTENT=1 requests full article text (full_content).NEWSDATA_TIMEFRAME=24 limits results to the last N hours (timeframe).If a paid option is set while using a free key, the request is automatically retried without it so you still get results.
On the free tier the API returns the most recent matching articles rather than an arbitrary historical date range (date-range queries need a paid plan), so the "weekly" report reflects the latest available headlines at the time you run it.
MIT
Selected from shared topics, language and repository description—not editorial ratings.
KnightAnchor /
A simple Python-based command-line tool that lets users search for real-time news articles on any topic using the newsapi.org .
joeltikoo /
Python command-line tool that fetches recent news articles based on a search query using NewsAPI and summarizes the article content using extractive summarization. You can also save the summaries to a text file.
tashviwadhwa /
Command-line tool that ranks news sources by volume, recency, and topic coverage from newsdata.io and writes Plotly leaderboard charts.
jaydayal-ai /
Command-line tool that downloads news article images from the newsdata.io API and assembles a daily collage PNG plus an HTML gallery.
payaltandon-xyz /
Command-line tool that downloads news article images from the newsdata.io API and builds a daily collage PNG plus a browsable HTML gallery.
ambujpandit761-eng /
Command-line tool that tracks competitor brand mentions in the news via newsdata.io and prints a digest with source breakdown and keyword frequency.