https://github.com/dhedegaard/youtube
Aggregates youtube channels, from the youtube JSON api.
https://github.com/dhedegaard/youtube
django docker python youtube
Last synced: 3 months ago
JSON representation
Aggregates youtube channels, from the youtube JSON api.
- Host: GitHub
- URL: https://github.com/dhedegaard/youtube
- Owner: dhedegaard
- License: lgpl-2.1
- Created: 2014-11-05T21:33:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:28:18.000Z (about 3 years ago)
- Last Synced: 2024-04-17T06:13:31.959Z (about 2 years ago)
- Topics: django, docker, python, youtube
- Language: Python
- Homepage: https://ut.dhedegaard.dk/
- Size: 316 KB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Youtube
[](https://travis-ci.org/dhedegaard/youtube)
[](https://coveralls.io/r/dhedegaard/youtube?branch=master)
[](https://requires.io/github/dhedegaard/youtube/requirements/?branch=master)
[](https://www.codacy.com/app/dhedegaard/youtube?utm_source=github.com&utm_medium=referral&utm_content=dhedegaard/youtube&utm_campaign=Badge_Grade)
[](https://lgtm.com/projects/g/dhedegaard/youtube/alerts/)
[](https://lgtm.com/projects/g/dhedegaard/youtube/context:python)
A simple Django application for aggregating youtube channels.
A running example is available here:
## How to get it running in development
1. Make sure you have Python 3.6+ installed.
1. Make a new virtual environment (optional):\
`$ virtualenv venv && source venv/bin/activate`
1. Install the dependencies from `requirements.txt` and `requirements-dev.txt` by:\
`$ pip install -r requirements.txt -r requirements-dev.txt`
1. Go into `settings.py` and set the `YOUTUBE_API_KEY` to something valid.
- Go to:
- Enable the Youtube Data API
- Generate an API key (more info: )
1. Run migrations:\
`$ python manage.py migrate`
1. Create a user:\
`$ python manage.py createsuperuser`
1. Run the devserver:\
`$ python manage.py runserver`
1. Go to
1. Login and start adding youtube channels.
1. Run the `update_channels` job periodically, to fetch new youtube videos:\
`$ python manage.py update_channels`
## For production
The usual:
- Disable `DEBUG` in settings.
- Run using gunicorn, uWSGI or similar.
- Replace the default sqlite database with postgres or similar.
- Add the `update_channels` job to your crontab.