Simple script to find youtube videos in a facebook group and create youtube-playlists.
- Clone this repo
- Setup python env
* Create virtual env(optional)
*
pip install -r requirements.txt
- Create youtube app * https://console.cloud.google.com/ * Enable youtube api for your app * Generate client_secrets.json file and save it in cloned folder
- Create facebook app * Add fb_client_id and fb_secret to main.py * Go to https://developers.facebook.com/tools/explorer/ and choose your generated app, click Get Token -> Get User Access Token and add user_managed_groups permission * Copy and paste the generated access token and save it in token.txt in cloned folder
- Find out your groups id (hint, it's in the url) and add it to main.py
- Choose a great base name for your playlists and add it to main.py
- ???
As a default the script only checks 31 days back in time.
Playlist are generated as private.
Already posted video ids are stored in a local file.
https://www.youtube.com/channel/UC70PY_CQN5bR4W0UTdd5Mhw/playlists