/apotheosis

pull info from last.fm to populate an artist page on PTH

Primary LanguagePython

apotheosis

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.

  1. clone the github repo

  2. install pylast and contextlib2 $ pip install --user pylast contextlib2

  3. make a last.fm API account (you'll need the auth keys for the config)

  4. If you are a PTP member you can make a ptpimg account to take advantage of the rehosting feature.

  5. 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

Copy Apotheosis Command Link

Here's a browser script that will add an 'Apotheosis' link at the top of the artist's page. Apotheosis Command Link

Clicking the link will copy the command to run the script on that artist just like in the above usage example.