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.
- Host: GitHub
- URL: https://github.com/edsu/lastweet
- Owner: edsu
- Created: 2017-08-06T19:27:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-28T17:49:21.000Z (about 7 years ago)
- Last Synced: 2024-10-15T09:13:08.382Z (over 1 year ago)
- Language: Python
- Homepage: https://twitter.com/edsu/status/970224496572620801
- Size: 7.81 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```