Skip to content

rblstr/flock

Repository files navigation

flock

Build Status Coverage Status

Subreddit YouTube playlister

Installation & Requirements

I recommend using pip and virtualenv.

To clone and run flock for the first time, follow these steps:

  1. git clone https://github.com/rblstr/flock.git && cd flock
  2. virtualenv --no-site-packages .
  3. . bin/activate
  4. pip install -r requirements.txt
  5. python flock.py

REST API

"/" - GET

Returns subreddit submission form and YouTube playlist if subreddits have been given.

Arguments:

  • subreddits - REQUIRED - '+' seperated list of subreddits
  • sort - OPTIONAL - What Reddit sort function to use.
    • Default: top
    • Supported: top, hot
  • t - OPTIONAL - Select time range for items.
    • Default: week
    • Supported: day, week, month, year, all
  • limit - OPTIONAL - Set a limit on the maximum number of items in the playlist.
    • Default: 100
    • Supported: Any number in the range 0 < t <= 100