+
Skip to content

virajmane/SwipeNews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Scraper Web App

Overview

This is a web application built using Flask that fetches and displays news articles from inshorts. The app allows users to view news articles and record their preferences through left and right swipes.

Note: This project is still incomplete and under development.

Features

  • Fetches news articles from various categories.
  • Displays news articles with images, titles, and content.
  • Allows users to swipe left, right, or up to express their preferences.
  • Records user preferences through AJAX requests to the server.

Screenshots

image Caption for Screenshot 1

image Caption for Screenshot 2

Setup

  1. Install the required dependencies by running:

    pip install -r requirements.txt
  2. Run the Flask application:

    python app.py
  3. Open your web browser and navigate to http://localhost:5000 to view the app.

Project Structure

  • app.py: Flask application file.
  • newsscrapper.py: Module for scraping news from inshorts.
  • templates/: HTML templates for the web app.
  • screenshots/: Folder containing screenshots of the app.

Dependencies

  • Flask
  • requests
  • BeautifulSoup (bs4)

Acknowledgments

This project uses data from inshorts, and its purpose is for educational and learning purposes only.

TODO

  • Implement user authentication.
  • Add database to store user preferences.
  • Enhance the user interface.
  • Improve error handling and logging.

Contributing

Contributions are welcome! Feel free to open issues or pull requests.

License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载