Zenika / POEI-Python-Rss

0 stars 0 forks source link

Welcome to POEI-Python-Rss 👋

The final goal of this project is to retrieve RSS feeds and display the contained articles in a flask web application with a Swagger interface for a user who subscribed to it.

Progression

Usage

Make sure you have python and therefore pip installed.

Download all the python packages required.
You can do it from the requirements.txt file with pip:

pip install -r requirements.txt --use-pep517 --user

The --use-pep517 is required by sgmllib (a dependency of feedparser) and the --user is required by flask.

Tell Flask witch python app you want to use :

export FLASK_APP=app.py

Run the flask web application with:

flask run

We need a database.db file.
One is already in the project file to avoid you to generate it yourself, but you can edit the Rssfeeds file to add, replace or delete some Rss feed url and the app will then ask if you want to generate a new database.db file from the actual RssFeeds file.

Do you want to create a new database.db from actual RssFeeds file ? (Y/N)

The generation can take a few minutes.

Then go on your favorite internet Browser to the url :
http://127.0.0.1:5000/

Author

👤 Jason Sycz

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!