Questions tagged [pylast]

Used for projects referring to pylast, a Python interface to Last.fm and other API-compatible websites such as Libre.fm.

Used for projects referring to https://github.com/pylast/pylast, a Python interface to Last.fm and other API-compatible websites such as Libre.fm.

6 questions
1
vote
1 answer

Is there a way to use pylast to get the top tracks?

I need to use the pylast module and last.fm api to get the top tracks (https://www.last.fm/api/show/chart.getTopTracks) but I can't find how to do this in python. API_KEY = "my key" API_SECRET = "my secret" network = pylast.LastFMNetwork(api_key =…
zcythe
  • 13
  • 3
1
vote
1 answer

How to get the last 4 listened tracks with pylast?

I'm trying to get the last 4 songs I've listened to from last_fm using pylast. So far I have this code but os returning just one song: def get_recents(self, max_results): recents = self.user.get_recent_tracks(max_results) for song in…
0
votes
0 answers

When importing start_settings in terminal, get an error about installing pylast

I downloaded a project from Github and am trying to run it. In the readme file, there are instructions, including the following: Create new database in bash && python >> from smart_settings import db >> db.create_all() I wanted to double check that…
0
votes
0 answers

pylast get_top_tags not working for artist and song pulled from csv file

So I have a csv file with a bunch of artists and associated song names. I parse this file and set the artist and song name equal to variables. Then I use the artist and song name to get the track through pylast and it works fine. I print the track…
0
votes
1 answer

Get artist name

I'm trying to get the names of my top 3 artists of last week with pylast (https://github.com/pylast/pylast) but I run into an error or get I get None as a result and I don't see what I'm doing wrong. pylast is a Python interface to Last.fm. My…
Frenkieb
  • 11
  • 2
-1
votes
1 answer

Handling network errors from an external API across an application

My app depends heavily on an external API (last.fm), for which it uses a python wrapper, pylast. The network is prone to some instability, however, and when network connection fails, all breaks down. Such network configuration goes at…
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198