Usage

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