cewing/training.python_web — pull request #33 by austinhappel (2013-01-28 01:00:37+00:00)
Title: Week03

Hey Cris, here's my week03 assignment. I did a hell of a lot more work than I thought I would, but I like the result.

I wanted a way to find interesting DJ mixes on mixcloud.com, s I made a simple website using the Pyramid framework that allows you to find a last.fm user's top artists, then queries mixcloud.com for related mixes. You can also just do an artist search, which finds mixcloud mixes related to that query, and also offers up related artists via the last.fm api.

If you want to run it yourself, you'll need a last.fm api key. The readme.md file describes the installation process. Otherwise, I have it running on my bluebox VM here:

http://67.214.217.209:8080/user/austinhappel

Arguably all of this could have been done on with javascript on the front end. Only problem with that is the api key is easily accessible, although this is probably not a big deal since it's being sent by python over http anyway.

**Note on performance**: The site seems to load slow, my guess is this caused by the ~7 api requests needed to get all of the data (1 request to last.fm, 6 searches to mixcloud.com). I tried to think of clever queries to get around this to no avail.