A Flask-based web application that scrapes and displays news articles from top news websites and updated every hour. The UI is built with HTML, CSS, and Bootstrap 5 for a modern, responsive experience.
- Scrapes news from multiple sources (Bangla & English)
- Categories: National, World News, Sports, Science & Technology, Others
- Pagination (20 articles per page)
- Search bar with fuzzy matching for news titles
- News items include title, published date, source URL, upload date, and image
- Navigation bar for categories
- Hero section with background image and business name
- Footer with social media and portfolio links
- "About this site" section
- Python 3
- Flask
- SQLite
- BeautifulSoup, curl_cffi (for scraping)
- Bootstrap 5, Bootstrap Icons
- Clone the repository
git clone https://github.com/mominurr/24HoursNewsHub.git cd 24HoursNewsHub
- Install dependencies
pip install -r requirements.txt
- Scrape news and populate the database
python news_scraper.py
- Run the Flask app
python app.py
- Open your browser Visit http://127.0.0.1:5000
- Update
news_scraper.py
to add more sources or categories. - Edit
templates/index.html
andstatic/css/style.css
for UI changes. - Update footer links in
index.html
for your own social/portfolio URLs.
This project is licensed under the MIT License – see the LICENSE file for details.
Contributions are welcome! Feel free to fork the repo and submit a pull request.
For any inquiries or collaborations:
- Portfolio: mominur.dev
- GitHub: github.com/mominurr
- LinkedIn: linkedin.com/in/mominur--rahman
- Email: mominurr518@gmail.com
🚀 Star this repo ⭐ if you find it useful!