A bot that gets music posted in r/listentothis and upload these in many playlists by date on YouTube.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the bot and how to install them
Python 3 (up to 3.6)
The pip
package management tool
PRAW. It is a python package that allows for simple access to reddit’s API. See docs here
pip install praw
Get the client_id
and client_secret
here
And put them in reddit_client.json
The Google APIs Client Library for Python:
pip install --upgrade google-api-python-client
The google-auth-oauthlib and google-auth-httplib2 libraries for user authorization.
pip install --upgrade google-auth-oauthlib google-auth-httplib2
Get the OAuth 2.0 doing this this
Then, go to here, clik on Credentials and download the client_secret.json in OAuth 2.0 ID Client section.
You only have to run the main.py file:
python3 main.py
- API Reddit - The web we get the music.
- PRAW A Python Reddit API Wrapper.
- API YouTube v3 - Used to upload the playlist.