{"id":23415942,"url":"https://github.com/eightsq/sbahncrawler","last_synced_at":"2025-04-09T06:24:01.107Z","repository":{"id":141466542,"uuid":"173594418","full_name":"EightSQ/sbahncrawler","owner":"EightSQ","description":"a public transport data crawler script, specifically for *Berlin, Germany*","archived":false,"fork":false,"pushed_at":"2019-03-03T15:46:00.000Z","size":6,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T00:45:20.466Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EightSQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2019-03-03T15:41:56.000Z","updated_at":"2019-03-03T15:46:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"abf658f6-4be7-4501-8261-de495510c4ce","html_url":"https://github.com/EightSQ/sbahncrawler","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/EightSQ%2Fsbahncrawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EightSQ%2Fsbahncrawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EightSQ%2Fsbahncrawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EightSQ%2Fsbahncrawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EightSQ","download_url":"https://codeload.github.com/EightSQ/sbahncrawler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247988764,"owners_count":21029158,"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-12-22T21:29:09.285Z","updated_at":"2025-04-09T06:24:01.081Z","avatar_url":"https://github.com/EightSQ.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# S-Bahn Datensammler\nSammelt Echtzeitdaten von Produkten des Berliner ÖPNV.\n\n## Usage\n1. Find the Station ID you are interested with [the bvg-rest API project](https://github.com/derhuerst/bvg-rest/blob/master/docs/index.md#get-locations).\n2. \tWith Docker:\n\t```\n\t\t$ docker build -t eightsq/sbahncrawler .\n\t\t$ docker run \\\n\t\t\t-v {some_data_path_on_your_machine}:/data:rw \\\n\t\t\t--rm \\\n\t\t\t-e CRAWLER_STATIONID={your_station_id} \\\n\t\t\teightsq/sbahncrawler:latest\n\t```\n\n\tWithout Docker:\n\tMake sure you have Python 3. Install the `requests` package. Then,\n\t```\n\t\t$ CRAWLER_STATIONID={your_station_id} python3 crawler.py \u003coutput_filename\u003e\n\t```\n\nActually, since you want to automate this, set up cronjob, that does this regularly for you (like every 10\").\nTo crawl a different product than S-Bahn, adjust the `productId` filter in the `crawl`-Function inside `crawler.py`.\n\n## Author\nEightSQ ([Blog](blog.8sq.de))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feightsq%2Fsbahncrawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feightsq%2Fsbahncrawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feightsq%2Fsbahncrawler/lists"}