pull info from last.fm to populate an artist page on PTH
- Add similar artists
- Add missing artist bio
- Add missing artist image
- Add missing cover art for all albums in artist's discography (!)
- All images, new or existing, are rehosted on ptpimg if on a bad host
There are still bugs to be found. Please add any you come across to Issues.
-
clone the github repo
-
install pylast and contextlib2
$ pip install --user pylast contextlib2
-
make a last.fm API account (you'll need the auth keys for the config)
-
If you are a PTP member you can make a ptpimg account to take advantage of the rehosting feature.
-
copy and fill out the config file (remember to quote all strings!)
$ cp config.py.template config.py
Example Usage: $ ./apotheosis 1234
Runs script on artist with id=1234
Here's a browser script that will add an 'Apotheosis' link at the top of the artist's page.
Clicking the link will copy the command to run the script on that artist just like in the above usage example.