Skip to content

Instantly share code, notes, and snippets.

la5942 / Track
Last active April 13, 2023 16:09
Convert milliseconds to timedelta object (duration)
la5942 / gist:a6cfd00f7a543d1efdfc
Last active August 7, 2017 05:52
Python Scraping

itunes have a rss feed of their top songs, I would use this to get the daily top 100. This is the feed you want and this is the generator

{"feed":{"author":{"name":{"label":"iTunes Store"}, "uri":{"label":""}}, "entry":{"im:name":{"label":"Wrecking Ball"}, "im:image":[
{"label":"", "attributes":{"height":"55"}}, 
{"label":"", "attributes":{"height":"60"}}, 
{"label":"", "attributes":{"height":"170"}}], "im:collection":{"im:name":{"label":"Wrecking Ball - Single"}, "link":{"attributes":{"rel":"alternate", "type":"text/html", "href":"https: