Git Product home page Git Product logo

rss-grabber's Introduction

RSS-grabber

be the first one notified with the latest news.

Technologies used

  • Python 3.9
  • Django 4.0
  • Django Rest Framework 3.13
  • Docker
  • Git
  • Celery
  • Redis
  • Simple JWT
  • Swagger

Installation

1- clone the project:

git clone [email protected]:AliHosseinzadeh2000/RSS-grabber.git

2- rename '.env-sample' to '.env' and provide the required variables.

3- create a python virtual environment:

python -m venv venv

4- activate your venv

  • on linux and mac:
      source venv/bin/activate
    
  • on windows:
      venv/Scripts/activate
    

5- install dependencies:

pip install -r requirements.txt

6- run a redis container on docker:

docker run --name myredis -p 6379:6379 -d redis

7- migrate the database:

python manage.py migrate

8- create a superuser:

python manage.py createsuperuser

9- add your desired RSS (for instance iribnews) in the admin panel

10- run a celery worker in a seprated terminal tab:

celery -b redis://localhost:6379 -A main.tasks worker -E -l INFO -P gevent -Q news

11- run celery beat in another tab:

celery -b redis://localhost:6379 -A main.tasks beat -l INFO

12- run the project:

python manage.py runserver

Endpoints

Endpoints are available at ~:8000/swagger/

rss-grabber's People

Contributors

alihosseinzadeh2000 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.