Skip to content

edsu/lastweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send status updates on Twitter and Mastodon for the top 3 artists you've listened to in the past 7 days using LastFM. Here's an example tweet:

To run you'll need to install lastweet:

pip install lastweet

Then you'll need set a bunch of things in your environment. Since it's convenient to run this from cron every week, create a file that sets all the variables and then runs lastweet. If you don't want to use either Twitter or Mastodon then omit the variables related to them.

export LASTFM_USER="CHANGEME"
export LASTFM_KEY="CHANGEME"
export LASTFM_SECRET="CHANGEME"
export TWITTER_CONSUMER_KEY="CHANGEME"
export TWITTER_CONSUMER_SECRET="CHANGEME"
export TWITTER_ACCESS_TOKEN="CHANGEME"
export TWITTER_ACCESS_TOKEN_SECRET="CHANGEME"
export MASTODON_URL="CHANGEME"
export MASTODON_CLIENT_ID="CHANGEME"
export MASTODON_CLIENT_SECRET="CHANGEME"
export MASTODON_ACCESS_TOKEN="CHANGEME"

lastweet.py

About

Update Twitter & Mastodon with your LastFM history.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages