A small workaround that helps to quickly rename multiple activities on Strava.
If you want to rename many Strava activities at once, this tool can help you. Renaming can be useful if you want to run post-hoc analysis, use other Strava web apps like Veloviewer or Strafforts, or just like clean data. After providing your Strava credentials, the tool iterates over all your activities and gives your new name to all files that fulfill your prespecified conditions. There are 3 modi which you can enter by using the following flags:
--private
Using this mode, you can rename all your private activities.--commute
Rename all your commuting rides. Sorry: Does not work atm. Strava HTML source is very inconsistent here, feel free to contribute.--string
In this mode, all activities whose titles contain a string you can specify, are renamed (not case-sensitive).
Please use one of these flags only. Default mode is --string
. If your new name is e.g. London commuting, then the tool will append the day in reversed order such that activities with the same name get sorted in ascending order by date. In addition you can specify that you only want to rename N
ride with a second flag. By default all your activities are verified (takes several minutes if you have 100+ activities).
- Python 3.x
- Selenium library for Python (use
pip install selenium
and then download the geckodriver for your OS. If you have a Win64 OS, you get the driver automatically by cloning this repo.) - Firefox (Selenium can easily used for other browsers, but code is written for Firefox and compatibel with newest version 57.0)
I am not a professional programmer, but I like exploring python libraries and this is my first application making use of the selenium library, a browser automation framework. Feel free to fork and please open issues if you find bugs.