-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10755eb
commit 31f02c4
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
# SpotifyGeneratePlaylist | ||
A simple script that take your liked videos on Youtube, and generates a Spotify playlist based on the song in your liked videos. | ||
|
||
## Table of Contents | ||
* [Technologies](#technologies) | ||
* [Setup](#setup) | ||
* [Youtube](#video) | ||
* [ToDo](#ToDo) | ||
|
||
## Technologies | ||
* [Youtube Data API v3] | ||
* [Spotify Web API] | ||
* [Requests Library v 2.22.0] | ||
|
||
## LocalSetup | ||
1) Install All Dependencies | ||
`pip3 install -r requirements.txt` | ||
|
||
2) Collect You Spotify User ID and Oauth Token From Spotfiy and ddd it to secrets.py file | ||
* To Collect your User ID, Log into Spotify then go here: [Account Overview] and its your **Username**, just like its displayed in the image below | ||
 | ||
* To Collect your Oauth Token, Visit this url here: [Get Oauth] and click the **Get Token** button, just like its displayed in the image below | ||
 | ||
|
||
3) Enable Oauth For Youtube and add you client id into client_secrets.py file | ||
Ok this part is tricky but its worth it! Just follow the guide here [Set Up Youtube Oauth] | ||
|
||
4) Run the File | ||
`python3 create_playlist.py` | ||
|
||
## ToDo | ||
* Unit Test File | ||
* Add More Error Handling | ||
|
||
[Youtube Data API v3]: <https://developers.google.com/youtube/v3> | ||
[Spotify Web API]: <https://developer.spotify.com/documentation/web-api/> | ||
[Requests Library v 2.22.0]: <https://requests.readthedocs.io/en/master/> | ||
[Account Overview]: <https://www.spotify.com/us/account/overview/> | ||
[Get Oauth]: <https://developer.spotify.com/console/post-playlists/> | ||
[Set Up Youtube Oauth]: <https://developers.google.com/youtube/v3/getting-started/> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.