RSSAmplifier

Akshit Kumar's index.html · Nov 6, 2023

Fetching Recent Last.fm Tracks

0
Sign in to vote or save

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

Read on akshit.one

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.