Skip to content

24HoursNewsHub — Real-time Bangla & English news, auto-scraped, refreshed every  hour, and served with Flask web app.

License

Notifications You must be signed in to change notification settings

mominurr/24HoursNewsHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

24HoursNewsHub

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.

Features

  • 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

🚩 Demo

Homepage Screenshot News List Screenshot

Tech Stack

  • Python 3
  • Flask
  • SQLite
  • BeautifulSoup, curl_cffi (for scraping)
  • Bootstrap 5, Bootstrap Icons

Setup & Usage

  1. Clone the repository
    git clone https://github.com/mominurr/24HoursNewsHub.git
    cd 24HoursNewsHub
  2. Install dependencies
    pip install -r requirements.txt
  3. Scrape news and populate the database
    python news_scraper.py
  4. Run the Flask app
    python app.py
  5. Open your browser Visit http://127.0.0.1:5000

Customization

  • Update news_scraper.py to add more sources or categories.
  • Edit templates/index.html and static/css/style.css for UI changes.
  • Update footer links in index.html for your own social/portfolio URLs.

📜 License

This project is licensed under the MIT License – see the LICENSE file for details.

🛠️ Contributions

Contributions are welcome! Feel free to fork the repo and submit a pull request.

📩 Contact

For any inquiries or collaborations:

🚀 Star this repo ⭐ if you find it useful!

About

24HoursNewsHub — Real-time Bangla & English news, auto-scraped, refreshed every  hour, and served with Flask web app.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published