super simple lastfm chart sync for django
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
__init__.py
admin.py
lastfm.py
models.py
object_dict.py
xml2dict.py

README

Lastfm Sync

Super simple last.fm chart syncing for django.

Basically this can import any or all of the following last.fm charts into your database:

weeklyartistchart (top weekly artists), weeklytrackchart (top weekly tracks), weeklyalbumchart (top weekly albums), recenttracks (most recently played tracks) and recentlovedtracks (most recently loved tracks).

Usage:

from lastfm.lastfm import LastfmSyncr
l=LastfmSyncr()
l.syncposts(user='username', chart='weeklyartistchart')
l.syncposts(user='username', chart='weeklytrackchart')
l.syncposts(user='username', chart='weeklyalbumchart')
l.syncposts(user='username', chart='recentlovedtracks')
l.syncposts(user='username', chart='recenttracks')