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.
- 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.
-
Install the required dependencies by running:
pip install -r requirements.txt
-
Run the Flask application:
python app.py
-
Open your web browser and navigate to
http://localhost:5000
to view the app.
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.
- Flask
- requests
- BeautifulSoup (bs4)
This project uses data from inshorts, and its purpose is for educational and learning purposes only.
- Implement user authentication.
- Add database to store user preferences.
- Enhance the user interface.
- Improve error handling and logging.
Contributions are welcome! Feel free to open issues or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.