{"id":15479825,"url":"https://github.com/gr2m/bahncard-calculator","last_synced_at":"2026-03-25T10:30:33.569Z","repository":{"id":7479384,"uuid":"8827725","full_name":"gr2m/bahncard-calculator","owner":"gr2m","description":"because FUUUU bahn.de","archived":false,"fork":false,"pushed_at":"2020-10-15T00:00:22.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-29T23:44:53.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/gr2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-17T00:35:01.000Z","updated_at":"2024-03-21T18:31:16.000Z","dependencies_parsed_at":"2022-07-21T14:19:45.804Z","dependency_job_id":null,"html_url":"https://github.com/gr2m/bahncard-calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fbahncard-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fbahncard-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fbahncard-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gr2m%2Fbahncard-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gr2m","download_url":"https://codeload.github.com/gr2m/bahncard-calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239943256,"owners_count":19722419,"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","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":"2024-10-02T04:27:34.355Z","updated_at":"2026-03-25T10:30:33.455Z","avatar_url":"https://github.com/gr2m.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"BahnCard Calculator\n=====================\n\nThis project uses [casperjs](http://casperjs.org/) to login to your bahn.de account\nand gather all the tickets from the past 11 months (because that's all they give us...)\nand turns it into a CSV (because they forgot about that feature, right?)\n\nAs of now, it only gathers the data, but does not calculate \nwhat BahnCard would have saved the most. That shouldn't be \nhard to add though. The hard part is done.\n\n\nUsage\n-------\n\n```sh\n$ casperjs generate-csv.coffee \u003cusername\u003e \u003cpassword\u003e\n```\n\nreplace \u003cusername\u003e and \u003cpassword\u003e with your own your credentials.\n\nThe output looks like\n\n| id | bookingDate | travelDate | title | receiptNumber | price | bahncard | class | priceType |\n| --- | --- | --- | --- | --- | ---:| --- | --- | --- |\n| ABC456 | 10.01.2013 | 12.01.2013 | Hanau Hbf - Bonn Hbf | 12345678 | 69,75 | 25 | 2 | Normalpreis |\n| ABC456 | 26.12.2012 | 15.01.2013 | Hanau Hbf - Berlin Ostbahnhof | 12345678 | 118,00 |  | 1 | Sparpreis |\n| ABC456 | 12.10.2012 | 19.10.2012 | Zürich HB - Mannheim Hbf | 12345678 | 80,90 | 25 | 2 | Spezial |\n| ABC456 | 18.09.2012 | 19.09.2012 | Hanau Hbf - Frankfurt(Main)Hbf | 12345678 | 9,75 | 25 | 2 | Normalpreis |\n| ABC456 | 17.09.2012 | 29.09.2012 | Hanau Hbf - Wien Westbahnhof | 12345678 | 168,00 |  | 1 | Spezial |\n| ABC456 | 23.08.2012 | 10.10.2012 | Berlin Hbf - Zürich HB | 12345678 | 99,00 |  | 1 | Spezial |\n| ABC456 | 23.08.2012 | 19.09.2012 | Zürich HB - Berlin Hbf | 12345678 | 110,45 |  | 1 | Spezial |\n| ABC456 | 21.07.2012 | 29.07.2012 | Berlin Ostbahnhof - Hanau Hbf | 97814063 | 99,00 |  | 1 | Sparpreis |\n| ABC456 | 02.07.2012 | 03.07.2012 | Hanau Hbf - Darmstadt Hbf | 12345678 | 12,35 | 25 | 2 | Normalpreis |\n| ABC456 | 29.06.2012 | 10.07.2012 | Hanau Hbf - Berlin Ostbahnhof | 12345678 | 99,00 |  | 1 | Sparpreis |\n| ABC456 | 23.06.2012 | 30.06.2012 | Zürich HB - Mannheim Hbf | 12345678 | 44,20 | 25 | 2 | Spezial |\n| ABC456 | 21.06.2012 | 30.06.2012 | Lindau Hbf - Mannheim Hbf | 12345678 | 33,00 | 25 | 2 | Sparpreis |\n| ABC456 | 30.04.2012 | 10.05.2012 | Berlin Ostbahnhof - Kronberg(Taunus) | 12345678 | 74,25 | 25 | 1 | Sparpreis |\n| ABC456 | 30.04.2012 | 11.05.2012 | Hanau Hbf - Fribourg | 12345678 | 81,70 | 25 | 1 | Spezial |\n| ABC456 | 23.04.2012 | 30.04.2012 | Hanau Hbf - Berlin Ostbahnhof | 12345678 | 74,25 | 25 | 1 | Sparpreis |\n\n\nLicense \n---------\n\nWTFPL – Do What the Fuck You Want to Public License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fbahncard-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgr2m%2Fbahncard-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgr2m%2Fbahncard-calculator/lists"}