Skip to main content

Post your top weekly or yearly scrobbled artists to twitter.

Project description

First you need to get app API credentials from and twitter.

Then you need to create a secrets.json file with the following format:

            {"key": "alphanumeric",
            "secret": "alphanumeric"},
        {"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 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:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lastfmtwitter, version 0.7.3
Filename, size File type Python version Upload date Hashes
Filename, size lastfmtwitter-0.7.3-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size lastfmtwitter-0.7.3.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page