/eriparse

Python code to parse the cost-of-living HTML from erieri.com, i.e. https://www.erieri.com/cost-of-living/united-states/illinois/chicago

Primary LanguageHTMLMIT LicenseMIT

Eriparse

is_still_valid_workflow

HTML parsing logic for https://www.erieri.com/cost-of-living-calculator. Was written to help my wife and I better understand the differences between potential cities for her fellowship.

Notes

Be aware that website frontend can change whenever - the badge indicates if the website HTML has changed since this code was written.

Usage

Intended to be called like:

wget -q https://www.erieri.com/cost-of-living/united-states/illinois/chicago -O - | pipenv run python eriparse/main.py >> chicago.json

Or, if you'd like to integrate it into your Python code

pip install eriparse

and then

from eriparse import parse

Tests

The test uses HTML taken from July, 2023.

Github Actions stops running scheduled jobs if no commits have been pushed after certain period of time. For now, we work around this by modifying the below tally as a dummy commit.

|