/reddit-videos-youtube-poster

This program scrapes reddit.com/r/videos and posts any top Youtube videos to a Youtube playlist

Primary LanguagePython

Youtube playlist

Getting Started

Virtual Env

$ virtualenv venv -p /usr/bin/python3
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python runner.py

Cron Job

Add the following to crontab -e

@hourly cd <project_dir> && exec runner.sh

Sqlite

Install

Ubuntu/Debian

sudo apt install -y sqlite3

Usage

$ sqlite3 -column -header
> .open posts.db
> .tables
> SELECT * FROM top_of_rvideos;
> SELECT * FROM top_of_rvideos_new;
> .exit