Login to your Strava account and select Settings on your Profile drop down menu. Select My API Application and enter details for your application. You can enter localhost as your Authorization Callback Domain.
Rename settings.ini.sample to settings.ini and update client_id and client_secret values from your newly registered app.
Run strava-update-token.py to get the access token. When this Python script is run it should open a browser window for get permission from you. If the script is not able to open the browser, copy the URL from the terminal windows and paste it into the browser address bar manually. Once you give the permission, the script would update the settings file. You only need to run this once.
Run human-miles.py to start displaying your total miles.
Fork or download at https://github.com/sharjeelaziz/human-miles