{"id":30137602,"url":"https://github.com/thisisnttheway/sbb-cost-parser","last_synced_at":"2025-08-11T00:53:10.605Z","repository":{"id":308190591,"uuid":"1031961695","full_name":"ThisIsntTheWay/sbb-cost-parser","owner":"ThisIsntTheWay","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-04T15:40:04.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-04T19:25:01.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThisIsntTheWay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-04T15:37:19.000Z","updated_at":"2025-08-04T15:40:07.000Z","dependencies_parsed_at":"2025-08-04T19:40:12.164Z","dependency_job_id":null,"html_url":"https://github.com/ThisIsntTheWay/sbb-cost-parser","commit_stats":null,"previous_names":["thisisnttheway/sbb-cost-parser"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ThisIsntTheWay/sbb-cost-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsntTheWay%2Fsbb-cost-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsntTheWay%2Fsbb-cost-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsntTheWay%2Fsbb-cost-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsntTheWay%2Fsbb-cost-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThisIsntTheWay","download_url":"https://codeload.github.com/ThisIsntTheWay/sbb-cost-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThisIsntTheWay%2Fsbb-cost-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269814277,"owners_count":24479359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-11T00:53:07.882Z","updated_at":"2025-08-11T00:53:10.565Z","avatar_url":"https://github.com/ThisIsntTheWay.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SBB cost parser\n\nParses an SBB ticket purchases overview HTML document (August 2025).  \nTo generate a cost overview:\n1. Visit https://sbb.ch/de/kaufen/pages/bestellungen.xhtml\n2. Define time range, init search\n3. Save page as HTML\n4. Run script against HTML file\n\n```bash\n$ pip install -r requirements.txt\n$ python main.py file.html\n```\n\n## Output\n\nThe script will generate two tables (in the CLI), both showing all parsed journeys with their associated costs.  \nOnly unique journeys will be shown; Duplicates will be added together and their total cost displayed instead.  \n- The first table shows all journeys in a detailed manner, displaying the specific bus/tram/train station.\n- The second table shows all journeys without any specfic bus/tram/train station, thereofre being less cluttered.\n\n```\n                                 Line statistics                                 \n┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━┓\n┃ From                         ┃ To                      ┃ Amount ┃ Total cost  ┃\n┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━┩\n│ Interlaken West, Bahnhof     │ Beatenberg, Waldegg     │ 12     │ 36.00 CHF   │\n│ Interlaken West, Bahnhof     │ Beatenberg, Station     │ 9      │ 37.80 CHF   │\n│ Grindelwald, Firstbahn       │ First (Grindelwald)     │ 8      │ 136.00 CHF  │\n│ ...                          │ ...                     │ ...    │ ...         │\n│ Thun, Bahnhof                │ Beatenbucht             │ 2      │ 10.40 CHF   │\n│ Interlaken West, Bahnhof     │ Grindelwald, Terminal   │ 1      │ 7.00 CHF    │\n│ Interlaken West, Bahnhof     │ Grindelwald             │ 1      │ 7.40 CHF    │\n│ Bern, Eigerplatz             │ Ostermundigen, Waldeck  │ 1      │ 3.00 CHF    │\n└──────────────────────────────┴─────────────────────────┴────────┴─────────────┘\n                     Line statistics (region only)                      \n┏━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━━┓\n┃ From                   ┃ To                   ┃ Amount ┃ Total cost  ┃\n┡━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━━┩\n│ Interlaken West        │ Beatenberg           │ 21     │ 63.00 CHF   │\n│ Interlaken West        │ Grindelwald          │ 2      │ 14.70 CHF   │\n│ Chrindi                │ Stockhorn            │ 1      │ 10.00 CHF   │\n│ ...                    │ ...                  │ ...    │ ...         │\n│ Interlaken Ost         │ Breitlauenen         │ 1      │ 13.40 CHF   │\n└────────────────────────┴──────────────────────┴────────┴─────────────┘\nTotal amount spent: 1337.00 CHF\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisnttheway%2Fsbb-cost-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisisnttheway%2Fsbb-cost-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisisnttheway%2Fsbb-cost-parser/lists"}