/Django-RSS

Django Rss get news from rss urls

Primary LanguagePythonMIT LicenseMIT

Django-RSS

Django RSS gather news from a list of RSS urls which are stored in database. This will be run every hour to gather new news.

Setup

  1. Either fork or download the app and open the folder in the cli.
  2. Make sure you have the Docker app running on your computer, you can download docker from here.
  3. run this command to start the multicontainer application docker-compose up.
    Note : For easy access sqlite db is in source .

How to use

  1. Follow link http://127.0.0.1:8000/admin/
    Note : For easy access i create a user with username : root and password : 123 .
  2. Go http://127.0.0.1:8000/admin/core/rss/
  3. Put some rss urls for example https://www1.cbn.com/rss-cbn-articles-cbnnews.xml.
    Note : Some urls need VPN if you're from Iran .
  4. Every hour on minutes 0, news be updated .

Get news and update that moment

If you want get news that moment:

  1. Follow http://127.0.0.1:8000/api/token/ and post username and password and get access token.
    Note : For easy access i create a user with username : root and password : 123
  2. Use JWT access token for http://127.0.0.1:8000/ with POST method.
  3. News are updated and you can get from http://127.0.0.1:8000/news/.
    Note : For next page you can follow http://127.0.0.1:8000/news/?page=2

Technologies