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.
- Either fork or download the app and open the folder in the cli.
- Make sure you have the Docker app running on your computer, you can download docker from here.
- run this command to start the multicontainer application
docker-compose up
.
Note : For easy access sqlite db is in source .
- Follow link
http://127.0.0.1:8000/admin/
Note : For easy access i create a user withusername : root
andpassword : 123
. - Go
http://127.0.0.1:8000/admin/core/rss/
- 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 . - Every hour on minutes 0, news be updated .
If you want get news that moment:
- 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 withusername : root
andpassword : 123
- Use JWT access token for
http://127.0.0.1:8000/
with POST method. - News are updated and you can get from
http://127.0.0.1:8000/news/
.
Note : For next page you can followhttp://127.0.0.1:8000/news/?page=2