Date | Artist | Song |
---|---|---|
6 Apr 2014, 21:57 | Sarah Blasko | Don't Dream It's Over |
6 Apr 2014, 21:53 | Meg Myers | Desire |
6 Apr 2014, 21:50 | Tegan and Sara | Red Belt |
6 Apr 2014, 21:46 | The Grates | Change |
6 Apr 2014, 21:41 | Rilo Kiley | Portions For Foxes |
6 Apr 2014, 21:38 | Yeah Yeah Yeahs | Soft Shock (acoustic) |
6 Apr 2014, 21:34 | Lykke Li | Tonight |
6 Apr 2014, 21:29 | Warpaint | Love Is to Die |
6 Apr 2014, 21:25 | Dog Is Dead | Teenage Daughter |
6 Apr 2014, 21:21 | Elvis Presley | A Little Less Conversation (JXL radio edit remix) |
6 Apr 2014, 21:16 | Radical Face | Welcome Home |
6 Apr 2014, 21:11 | The Hives | Won't Be Long |
6 Apr 2014, 21:06 | Radiohead | Creep |
6 Apr 2014, 21:01 | Love of Lesbian | Club de fans de John Boy |
6 Apr 2014, 20:57 | Dorian | Cualquier otra parte |
6 Apr 2014, 20:52 | Sia | Be Good to Me |
6 Apr 2014, 20:49 | Sia | You've Changed |
6 Apr 2014, 20:46 | Sia | Stop Trying |
6 Apr 2014, 20:42 | Sia | Clap Your Hands |
6 Apr 2014, 20:39 | Sia | The Fight |
6 Apr 2014, 20:36 | Sia | The Girl You Lost to Cocaine |
6 Apr 2014, 20:33 | Sia | You've Changed |
6 Apr 2014, 20:28 | Sia | Breathe Me |
6 Apr 2014, 20:25 | Sia | Kill And Run |
6 Apr 2014, 20:21 | Sia | I'm in Here |
6 Apr 2014, 20:17 | Sia | Clap Your Hands |
6 Apr 2014, 20:12 | Angel Haze | Battle Cry |
6 Apr 2014, 20:08 | Sia | Elastic Heart - From "The Hunger Games: Catching Fire"/Soundtrack |
6 Apr 2014, 20:02 | Sia | Breathe Me |
6 Apr 2014, 19:57 | Sia | Chandelier |
6 Apr 2014, 19:51 | Rise Against | Savior |
6 Apr 2014, 19:47 | Queens of the Stone Age | No One Knows |
6 Apr 2014, 19:43 | Steppenwolf | Born to Be Wild |
6 Apr 2014, 19:39 | Aerosmith | Dude (Looks Like a Lady) |
6 Apr 2014, 19:35 | Red Hot Chili Peppers | By the Way |
6 Apr 2014, 19:32 | Linkin Park | Burn It Down |
6 Apr 2014, 19:27 | Grouplove | Tongue Tied |
6 Apr 2014, 19:21 | Calvin Harris | I Need Your Love |
6 Apr 2014, 19:19 | Icona Pop | I Love It (feat. Charli XCX) |
6 Apr 2014, 19:14 | will.i.am | Scream & Shout - Dirty / Main |
6 Apr 2014, 19:11 | M.I.A. | Paper Planes |
6 Apr 2014, 19:07 | Asaf Avidan & The Mojos | One Day / Reckoning Song (Wankelmut Remix) - Radio Edit |
6 Apr 2014, 19:03 | The Naked and Famous | Hearts Like Ours |
6 Apr 2014, 18:59 | The Naked and Famous | Spies! Spies! Spies! |
6 Apr 2014, 18:53 | The Naked and Famous | Post |
6 Apr 2014, 18:51 | The Naked and Famous | Part One |
6 Apr 2014, 18:49 | The Naked and Famous | Meeting People Sucks |
6 Apr 2014, 18:46 | The Naked and Famous | Serenade |
6 Apr 2014, 18:43 | The Naked and Famous | Kill The Littleblackdots |
6 Apr 2014, 18:39 | The Naked and Famous | Bells |
6 Apr 2014, 18:37 | The Naked and Famous | Part 2 |
6 Apr 2014, 18:34 | The Naked and Famous | Who Are You Talking To? |
6 Apr 2014, 18:31 | The Naked and Famous | Cheek |
6 Apr 2014, 18:27 | The Naked and Famous | Birds |
6 Apr 2014, 18:24 | The Naked and Famous | Dadada |
6 Apr 2014, 18:18 | The Naked and Famous | Girls Like You |
6 Apr 2014, 18:16 | The Naked and Famous | The Ends |
6 Apr 2014, 18:13 | The Naked and Famous | A Wolf in Geek's Clothing |
6 Apr 2014, 18:10 | The Naked and Famous | Jilted Lovers |
6 Apr 2014, 18:06 | The Naked and Famous | Spank |
6 Apr 2014, 18:00 | The Naked and Famous | No Way |
6 Apr 2014, 17:56 | The Naked and Famous | Young Blood |
6 Apr 2014, 17:51 | The Naked and Famous | Eyes |
6 Apr 2014, 17:47 | The Naked and Famous | The Sun |
6 Apr 2014, 17:46 | The Naked and Famous | The Source |
6 Apr 2014, 17:43 | The Naked and Famous | Frayed |
6 Apr 2014, 17:39 | The Naked and Famous | Punching in a Dream |
6 Apr 2014, 17:35 | The Naked and Famous | All of This |
6 Apr 2014, 17:30 | The Naked and Famous | To Move With Purpose |
6 Apr 2014, 17:25 | The Naked and Famous | We Are Leaving |
6 Apr 2014, 17:21 | The Naked and Famous | What We Want |
6 Apr 2014, 17:17 | The Naked and Famous | I Kill Giants |
6 Apr 2014, 17:14 | The Naked and Famous | Golden Girl |
6 Apr 2014, 17:08 | The Naked and Famous | Grow Old |
6 Apr 2014, 17:04 | The Naked and Famous | The Mess |
6 Apr 2014, 17:00 | The Naked and Famous | Rolling Waves |
6 Apr 2014, 16:55 | The Naked and Famous | Waltz |
6 Apr 2014, 16:50 | The Naked and Famous | Hearts Like Ours |
6 Apr 2014, 16:45 | The Naked and Famous | A Stillness |
6 Apr 2014, 16:41 | Great Northern | Shakey |
6 Apr 2014, 16:38 | Great Northern | Radio |
6 Apr 2014, 16:33 | Great Northern | Summertime |
6 Apr 2014, 16:28 | Great Northern | This Is a Problem |
6 Apr 2014, 16:24 | Great Northern | Loose Ends |
6 Apr 2014, 16:19 | Great Northern | Babies |
6 Apr 2014, 16:16 | Great Northern | The Middle |
6 Apr 2014, 16:11 | Great Northern | Into The Sun |
6 Apr 2014, 16:07 | Great Northern | A Sun a Sound |
6 Apr 2014, 16:03 | Great Northern | City of Sleep |
6 Apr 2014, 15:57 | Great Northern | Low Is a Height |
6 Apr 2014, 15:54 | Great Northern | Telling Lies |
6 Apr 2014, 15:50 | Great Northern | Home |
6 Apr 2014, 15:44 | Great Northern | Just a Dream |
6 Apr 2014, 15:41 | Great Northern | Our Bleeding Hearts |
6 Apr 2014, 15:38 | Great Northern | 33 |
6 Apr 2014, 15:33 | Great Northern | Driveway |
6 Apr 2014, 15:28 | Great Northern | Warning |
6 Apr 2014, 15:24 | Great Northern | Mountain |
6 Apr 2014, 15:21 | Great Northern | New Tricks |
6 Apr 2014, 15:16 | Great Northern | Numbers |
6 Apr 2014, 15:13 | Great Northern | Stop |
4 Apr 2014, 01:03 | The Lumineers | Stubborn Love |
4 Apr 2014, 00:57 | 30 Seconds to Mars | Kings and Queens |
4 Apr 2014, 00:54 | Kings of Leon | Radioactive |
4 Apr 2014, 00:50 | Snow Patrol | Chasing Cars |
4 Apr 2014, 00:46 | The Kooks | Naïve |
4 Apr 2014, 00:42 | Lana Del Rey | Summertime Sadness |
4 Apr 2014, 00:37 | The Smashing Pumpkins | 1979 |
4 Apr 2014, 00:33 | Passion Pit | Take a Walk |
4 Apr 2014, 00:28 | MGMT | Kids |
4 Apr 2014, 00:23 | Pearl Jam | Even Flow |
4 Apr 2014, 00:19 | Weezer | Say It Ain't So |
4 Apr 2014, 00:15 | 3 Doors Down | Kryptonite |
4 Apr 2014, 00:11 | Lana Del Rey | National Anthem |
4 Apr 2014, 00:08 | Sublime | Santeria |
4 Apr 2014, 00:03 | AWOLNATION | Sail |
4 Apr 2014, 00:01 | Electric Guest | This Head I Hold |
3 Apr 2014, 23:56 | Goo Goo Dolls | Iris |
3 Apr 2014, 23:52 | Bastille | Flaws |
3 Apr 2014, 23:49 | The Lumineers | Ho Hey |
3 Apr 2014, 23:45 | Gotye | Somebody That I Used to Know |
3 Apr 2014, 23:41 | Grizzly Bear | Two Weeks |
3 Apr 2014, 23:37 | Foster the People | Helena Beat |
3 Apr 2014, 23:33 | Capital Cities | Safe and Sound |
3 Apr 2014, 23:30 | Imagine Dragons | Radioactive |
3 Apr 2014, 23:26 | Radiohead | Creep |
3 Apr 2014, 23:22 | Muse | Madness |
3 Apr 2014, 23:18 | Grouplove | Tongue Tied |
3 Apr 2014, 23:14 | Funeral Suits | All Those Friendly People |
3 Apr 2014, 23:11 | Weezer | Buddy Holly |
3 Apr 2014, 23:07 | Phoenix | Lisztomania |
3 Apr 2014, 23:04 | The Killers | Somebody Told Me |
3 Apr 2014, 23:00 | Foo Fighters | Best of You |
3 Apr 2014, 22:56 | Gorillaz | Feel Good Inc. |
3 Apr 2014, 22:51 | Green Day | Wake Me Up When September Ends |
3 Apr 2014, 22:47 | Alt-J | Something Good |
3 Apr 2014, 22:43 | Young the Giant | Cough Syrup |
3 Apr 2014, 22:38 | Edward Sharpe & The Magnetic Zeros | Home |
3 Apr 2014, 22:35 | Alt-J | Tessellate |
3 Apr 2014, 22:31 | Coldplay | Paradise |
3 Apr 2014, 22:25 | Band of Horses | The Funeral |
3 Apr 2014, 22:22 | Lana Del Rey | Blue Jeans |
3 Apr 2014, 22:18 | Mumford & Sons | Little Lion Man |
3 Apr 2014, 22:13 | fun. | Why Am I the One |
3 Apr 2014, 22:08 | Audioslave | Be Yourself |
3 Apr 2014, 22:05 | Fall Out Boy | My Songs Know What You Did in the Dark (Light Em Up) |
3 Apr 2014, 22:00 | Lana Del Rey | Off to the Races |
Created
May 26, 2014 21:09
-
-
Save Visgean/aa3adf219e0f5fd9ce94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import json | |
import time | |
import requests | |
API_KEY = '' | |
from_date = datetime.datetime(2014, 4, 4, 0, 0) | |
end_date = datetime.datetime(2014, 4, 7, 0, 0) | |
to_unix_time = lambda dt_obj: time.mktime(dt_obj.timetuple()) | |
api_params = { | |
'method': 'user.getrecenttracks', | |
'user': 'visgean', | |
'api_key': API_KEY, | |
'format': 'json', | |
'from': to_unix_time(from_date), | |
'to': to_unix_time(end_date), | |
'limit':200, | |
'extended': 1 | |
} | |
api_url = 'http://ws.audioscrobbler.com/2.0/' | |
data = requests.get(api_url, params=api_params).json() | |
assert data['recenttracks']['@attr']['totalPages'] == '1' # lets assume that there is only one page | |
songs = data['recenttracks']['track'] | |
for song in songs: | |
date = song.get('date', None) | |
date = date['#text'] if date else None | |
print date, '|', song['artist']['name'], '|', song['name'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment