from a movie title, sound track artists are given to last.fm similarArtist algo to give YouTube urls, example output is found within the files.
This program will be working while in the terminal, it take a decent amount of time to process, will need to look into why, or maybe figure out how to lower the time of processing, added use of SoupStrainer, however the Youtube links gathering takes time, go get a coffee!
requests, json, bs4, imdb
- Go to last.fm site and fill out information for generating an API key, Create_API_account. You don't really need to place a callback URL or an application homepage -- did not utilize features that required these things.
- Next screen, assumed everything checked out okay by last.fm, the 'API key' and 'Shared secret' will be given.
- Place your 'API key' within the
prototype.py
, line begins withAPI_KEY= ''
, fill between the ' '. Place the 'Registered to' name as theUSER_AGENT = ''
, fill between the ' '. - Save, you are ready to explore!
- THIS IS STILL A WORK-IN-PROCESS-PROGRAM.
- Navigate to your directory which will hold this repository through terminal of choice.
- Depending on your python PATH variable set up, you could be using 'python' or 'python3', figure this out before proceeding the user could also house another variable other than these for python running more info? check out Source 1 and Source 2. Run (prototype.py).
$python imdb_soundtrack_last.fm_exploration.py
--or --
$python3 imdb_soundtrack_last.fm_exploration.py
- You will be prompted to enter a movie name.
Please enter a movie name //
- Program will output at max 20 choices to pick from which are similar to the given movie name (if there is not a closely related movie title to given, the program will give an error message and prompt the user to enter a movie title again).
- You will be prompted to enter a choice number.
Enter CHOICE # as multiple movies with this title have been found //
- Program will present the user with an imdb link to soundtrack listsing and an array of the soundtrack artists (duplicates will not be within this array).
- Processing with the prototype.py functions will begin for each artist.
- The program will output for each of the artsist within the soudtrack listing:
- array of similar artists (current limit is 20 artists)
- dictionary of YouTube urls of top tracks per similar artist (current limit is 5 tracks)