Post your top weekly or yearly scrobbled artists to twitter.
Project description
First you need to get app API credentials from last.fm and twitter.
Then you need to create a secrets.json file with the following format:
{"lastfm": {"key": "alphanumeric", "secret": "alphanumeric"}, "twitter": {"consumer_key": "alphanumeric", "consumer_secret": "alphanumeric", "token_key": "alphanumeric-alphanumeric", "token_secret": "alphanumeric"}
Currently you need to use the -j or –json option to link to a secrets file with your API secrets for last.fm and twitter.
After installation via pip, you can run python -m lastfmtwitter.lastfm_twitter
usage: python -m lastfmtwitter.lastfm_twitter [-h] [-w | -y] [-j JSON]
- optional arguments:
-h, --help show this help message and exit -w, --weekly post your top weekly artists (default) -y, --yearly post your top yearly artists -j JSON, --json JSON optional path to secrets.json file with api keys
For more documentation, visit: http://server.ericsbinaryworld.com/gpl_code/lastfmtwitter/index.html
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
lastfmtwitter-0.7.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for lastfmtwitter-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6b0e86e9eec356d3014879ced4aa915d9267c9ced56c6badb831fdd9a0587b |
|
MD5 | f45456b79e32811e81aabc3028b009c5 |
|
BLAKE2-256 | 36be1897362c2ac5e6b3fe1e0b56e7b7ba8617e8249b75d3b7eeec4b6a802c8d |