btbytes / ssgyms_logbook_parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ssgyms logbook parser

If you workout at a Starting Strength Gym and use their app <//app.ssgyms.com/logbook> to track your workouts, you can use this code and script to convert it into a comma separated values (CSV) file that you can open with Excel, Google Books, and other data analysis tools.

The first step for this is to manually visit the page on Google Chrome and File --> Save As and in the dialog box choose "Complete Webpage" and remember where you saved the html file.

Usage is to run run_logbook_parser.py with the path to the html file and desired output file.

Example:

python ./run_logbook_parser.py --logbook_html_path "/foo/bar/Starting Strength Gyms.html" --logbook_csv_output_path /foo/bar/starting_strength_logbook.csv

You can of course, also import the functions in parsing_utils.py and use them as you wish.

Running the web app

  1. install Python Poetry
  2. poetry shell (this will install all the dependencies mentioned in pyproject.toml)
  3. python app.py (to run the app)
  4. Visit http://127.0.0.1:5000

About


Languages

Language:CSS 85.3%Language:Python 12.5%Language:HTML 2.0%Language:Procfile 0.2%