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
Metadata
Release files for lastfmtwitter 0.7.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lastfmtwitter-0.7.3.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lastfmtwitter-0.7.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / lastfmtwitter-0.7.3.tar.gz
| Download URL | lastfmtwitter-0.7.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d1adf9700e5cb025c0c0d1fe16678e76f57ab725e509d5c2fcd10756e8c814b
|
|
BLAKE2b-256 checksum How to use checksums |
2d7b096c84f033ac9dddd48b8f8670c21720094edc13160c7899813c55f1c766
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / lastfmtwitter-0.7.3-py3-none-any.whl
| Download URL | lastfmtwitter-0.7.3-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab6b0e86e9eec356d3014879ced4aa915d9267c9ced56c6badb831fdd9a0587b
|
|
BLAKE2b-256 checksum How to use checksums |
36be1897362c2ac5e6b3fe1e0b56e7b7ba8617e8249b75d3b7eeec4b6a802c8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|