Skip to content

Discover similar artists to given artists within last.fm, receive top 5 track last.fm urls per similar artist.

License

Notifications You must be signed in to change notification settings

potatoe88888/last.fm_similar_artist_exploration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

last.fm_similar_artist_exploration

important note

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.

Python libraries needed

requests, json, bs4

set up -- create last.fm API account

  1. 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.
  2. Next screen, assumed everything checked out okay by last.fm, the 'API key' and 'Shared secret' will be given.
  3. Place your 'API key' within the prototype.py, line begins with API_KEY= '', fill between the ' '. Place the 'Registered to' name as the USER_AGENT = '', fill between the ' '.
  4. Save, you are ready to explore!

running

  1. THIS IS STILL A WORK-IN-PROCESS-PROGRAM.
  2. Navigate to your directory which will hold this repository through terminal of choice.
  3. 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 prototype.py

--or --

$python3 prototype.py
  1. You will be prompted to enter an Artist.
status :: 200
Please enter an artist //
  1. The program will output:
    • status code of the connection, expect 200 returned
    • array of similar artists (current limit is 20 artists)
    • dictionary of last.fm and YouTube urls of top tracks per similar artist (current limit is 5 tracks)

sources

About

Discover similar artists to given artists within last.fm, receive top 5 track last.fm urls per similar artist.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages