An open API service indexing awesome lists of open source software.

https://github.com/edsu/lastweet

Update Twitter & Mastodon with your LastFM history.
https://github.com/edsu/lastweet

Last synced: 10 months ago
JSON representation

Update Twitter & Mastodon with your LastFM history.

Awesome Lists containing this project

README

          

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
```