This project is an end-to-end news aggregation and summarization tool built with Streamlit that crawls webpages to collect and process news articles. Users input a news topic, location, and preferred language through an intuitive interface, triggering a workflow where the application searches for relevant news via DuckDuckGo and then crawls the identified webpages using the Newspaper library to extract full article content. The retrieved text is then tokenized and summarized with the "facebook/bart-large-cnn" transformer model, with optional translation applied via GoogleTranslator. Finally, the processed articles—complete with original and AI-generated images—are compiled into a cohesive news roundup that can be directly published to Hashnode.
view our published news - link
go and check the model link
Note - It is free deployed so you need to wait little more or - better you can run it on your personal pc
QuickNews tackles the challenge of automated news aggregation and publishing through:
- Web crawling and data extraction from reliable news sources
- Intelligent content summarization and structuring
- SEO optimization for better discoverability
- Automated publishing to Hashnode
- Support for multiple languages
- AI-generated imagery for enhanced visual appeal
- Utilizes DuckDuckGo API for fetching recent news articles
- Implements the
newspaper3klibrary for article extraction and parsing - Uses NLTK for natural language processing and text summarization
- Employs extractive summarization techniques to maintain factual accuracy
- Generates SEO-optimized titles and descriptions
- Creates AI-generated illustrations using Pollinations.ai
- Automatically formats content in Markdown
- Handles image processing and optimization
- Publishes directly to Hashnode using their GraphQL API
- Supports multiple languages through Google Translate integration
- 🌐 Multi-source News Aggregation: Fetches news from various reliable sources
- 📝 Smart Summarization: Creates concise, readable summaries while maintaining context
- 🎨 AI Image Generation: Enhances articles with relevant AI-generated illustrations
- 🌍 Multilingual Support: Supports 10+ languages including Hindi, Tamil, Bengali
- 📊 Clean UI: Built with Streamlit for a seamless user experience
- 🚀 One-Click Publishing: Direct integration with Hashnode for automated publishing
- Clone the repository:
git clone https://github.com/yourusername/quicknews.git
cd quicknews- Install dependencies: prefered python version is 3.12.9
pip install -r requirements.txt- Configure API tokens:
- Open
Final_name.py - Update the following values:
- Open
self.api_token = "Your_hashnode_api"
self.publication_id = "Publication_id"- Update image path in
Final_name.py:
st.image("/path/to/your/image-title.jpg", use_container_width=True)- Run the application:
streamlit run main.py- Launch the application using the command above
- Enter your search topic in the "News Topic" field
- (Optional) Specify a location for location-specific news
- Select your preferred display language
- Click "Search News" to fetch and process articles
- Review the generated summaries
- Click "Publish to Hashnode" to publish the compiled article
- Hashnode API Token (for publishing)
- Hashnode Publication ID (for article destination)
Feel free to fork the repository and submit pull requests. For major changes, please open an issue first to discuss the proposed changes.
- Built for Flipr Hackathon 25
- Uses the excellent newspaper3k python library
- Powered by Streamlit for the UI
- Special thanks to Hashnode for their GraphQL API
For any queries regarding the project, feel free to reach out:
- Email: verma.job.145pratee@gmail.com
- LinkedIn: prateek


