Sign inSign up

dhedegaard/youtube

By dhedegaard

•Updated over 5 years ago

Aggregates youtube channels, from the youtube JSON api.

Image
0

1.2K

dhedegaard/youtube repository overview

⁠Youtube

Build Status Coverage Status Requirements Status Codacy Badge Total alerts Language grade: Python

A simple Django application for aggregating youtube channels.

A running example is available here: https://ut.dhedegaard.dk/⁠

⁠How to get it running in development

  1. Make sure you have Python 3.6+ installed.
  2. Make a new virtual environment (optional):
    $ virtualenv venv && source venv/bin/activate
  3. Install the dependencies from requirements.txt and requirements-dev.txt by:
    $ pip install -r requirements.txt -r requirements-dev.txt
  4. Go into settings.py and set the YOUTUBE_API_KEY to something valid.
  5. Run migrations:
    $ python manage.py migrate
  6. Create a user:
    $ python manage.py createsuperuser
  7. Run the devserver:
    $ python manage.py runserver
  8. Go to http://127.0.0.1:8000/⁠
  9. Login and start adding youtube channels.
  10. 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.

Tag summary

Content type

Image

Digest

Size

335.7 MB

Last updated

over 5 years ago

docker pull dhedegaard/youtube