Simple django site acting as a frontend for:
- reddit-scraper: Various scripts for donwloading posts/submissions/comments of a reddit subreddit/post/user using either the reddit or the pushshift API.
- /r/france Forum Libre redirect.
To run the website, you will need some config files.
[django]
SECRET_KEY=secret_key_here
[reddit]
client_id=id_here
client_secret=secret_here
password=password_here
username=username_here
HEROKU_REDIS_ROSE_URL=redis://localhost
# optional, for docker + traefik
DEFAULT_NETWORK=trafik-network
DOMAIN=localhost
If you can't use ini files (i.e. when deploying with heroku), you can use those environment variables:
PRAW_CLIENT_ID
PRAW_CLIENT_SECRET
PRAW_PASSWORD
PRAW_USERNAME
DJANGO_SECRET_KEY
HEROKU_REDIS_ROSE_URL
docker-compose build
docker-compose up -d
docker run -d -p 6379:6379 redis
celery -A reddit_django worker -l info -E
python manage.py runserver