A program to post Last.fm statistics to Twitter and/or Mastodon
Project description
Quick Description
A command line tool to tweet a user’s top artist statistics from Last.fm to Twitter and Mastodon.
Installation
PyPi
Install it yourself:
$ pip install --user last-shout
GitHub
Installing the latest version from Github:
$ git clone https://github.com/bpepple/last-shout.git
$ cd last-shout
$ python3 setup.py install
Getting started
In order to use Last-Shout, you need at a minimum to get authentication keys for Twitter and Last.fm.
To get the necessary authenticaton keys for Twitter, refer to the documentation here.
To get the necessary authentication keys for Last.fm, refer to their documentation.
Help
usage: main.py [-h] [-u USER] [--last-access-key LAST_ACCESS_KEY]
[--set-lastfm] [-n NUMBER] [-p PERIOD] [-t]
[--consumer-key CONSUMER_KEY]
[--consumer-secret CONSUMER_SECRET] [--access-key ACCESS_KEY]
[--access-secret ACCESS_SECRET] [--set-twitter]
[--create-mastodon-app] [--create-mastodon-user] [--toot]
[--version]
A program to post last.fm statistics to Twitter and/or Mastodon.
optional arguments:
-h, --help show this help message and exit
-u USER, --user USER Last.fm username (default: None)
--last-access-key LAST_ACCESS_KEY
Last.fm access key (default: None)
--set-lastfm Set Last.fm credentials (default: False)
-n NUMBER, --number NUMBER
Number of last.fm top artists (default: 10)
-p PERIOD, --period PERIOD
The time period over which to retrieve top artists.
Options are: overall | 7day | 1month | 3month | 6month
| 12month (default: 7day)
-t, --tweet Post Last.fm stats to Twitter (default: False)
--consumer-key CONSUMER_KEY
Twitter consumer key (default: None)
--consumer-secret CONSUMER_SECRET
Twitter consumer secret (default: None)
--access-key ACCESS_KEY
Twitter access token key (default: None)
--access-secret ACCESS_SECRET
Twitter access secret (default: None)
--set-twitter Set Twitter credentials (default: False)
--create-mastodon-app
Create mastodon application (default: False)
--create-mastodon-user
Create Mastodon user token (default: False)
--toot Post Last.fm stats to Mastodon (default: False)
--version Show the version number and exit
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file last-shout-0.7.0.tar.gz.
File metadata
- Download URL: last-shout-0.7.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b359b5db673e794cb8ebf68dbe0517f3bb5a7b5017bbe163ed7ad7873ca97bf
|
|
| MD5 |
c858a52b9df557c5ffc6254bb64a2e30
|
|
| BLAKE2b-256 |
92c922143388f6544d1935d95a65b92b2bc708034cf73622f45db10f614601df
|
File details
Details for the file last_shout-0.7.0-py3-none-any.whl.
File metadata
- Download URL: last_shout-0.7.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e48bc6c21bdc962dee85cb1114a213779d079069701ecbc680af8795cf8e700d
|
|
| MD5 |
4c0a10164cdb517577db97445cd63187
|
|
| BLAKE2b-256 |
e0d057b8106088a0c87c72ed1283215a8bd52f34c45afcc08371ef857094ba9d
|