TheR1D /
shell_gpt
A command-line productivity tool powered by AI large language models like GPT-5, will help you accomplish your tasks faster and more efficiently.
Loading repository data…
joeltikoo / repository
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.
A simple 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.
Built for my CS50P final project.
summa NLP librarypytestInstall the dependencies from requirements.txt:
pip install -r requirements.txt
Contents of requirements.txt:
requests
python-dotenv
summa
pytest
Sign up at https://newsapi.org/ to get your free API key.
.env FileCreate a .env file in the root directory:
NEWS_API_KEY=your_api_key_here
python project.py <search_query>
Example:
python project.py technology
For multi-word search queries, enclose them in single quotes ('<search_query>') or double quotes ("<search_query>")
Example:
python project.py "artificial intelligence"
You'll be prompted to enter the number of articles you want to fetch and whether you want to save the results.
To run tests for the summarization, word count, and capitalization logic:
pytest test_project.py
fetch_news(api_key, query, max_articles=5)summarize_text(text, ratio=0.6)summa library. Filters unwanted outputs (like the default error).word_count(text)capitalize_title(title)save_summary(title, summary, path="summaries.txt").txt file with formatting.project.py # Main script
test_project.py # Unit tests for helper functions
.env # Stores your API key (not checked into version control)
requirements.txt # Dependencies
summaries.txt # Optional output file where summaries are saved
1. AI IS CHANGING THE WORLD
OVERSIMPLIFIED:
Artificial Intelligence continues to revolutionize global industries...
45 words
Would you like to save this in a text file? (y/n): y
Flask or an app-like GUI using tkinterFeel free to recommend more features or optimizations or better tests!
MIT License. Feel free to fork, modify, and use it in your own projects.
Selected from shared topics, language and repository description—not editorial ratings.
TheR1D /
A command-line productivity tool powered by AI large language models like GPT-5, will help you accomplish your tasks faster and more efficiently.
prompt-toolkit /
Library for building powerful interactive command line applications in Python
kellyjonbrazil /
CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
pemistahl /
A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases
donnemartin /
A supercharged Git/GitHub command line interface (CLI). An official integration for GitHub and GitHub Enterprise: https://github.com/works-with/category/desktop-tools
adbar /
Python & Command-line tool to gather text and metadata on the Web: Crawling, scraping, extraction, output as CSV, JSON, HTML, MD, TXT, XML