This page did not load. You can still read it on the original site — the toolbar below keeps your place in the directory.
#!/usr/bin/env python3 import http.client import json api_key = "thistotallyworks" username = "marxplank" conn = http . client . HTTPSConnection ( "ws.audioscrobbler.com" ) url = f "/2.0/?method=user.getrecenttracks&user= { username } &api_key= { api_key } &format=json" conn . request ( "GET" , url ) response = conn . getresponse () if response . status == 200 : data = json . loads ( response .…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.