{"id":16445703,"url":"https://github.com/doreapp/arlandatrip","last_synced_at":"2026-05-12T21:04:50.751Z","repository":{"id":106379184,"uuid":"419409602","full_name":"Doreapp/ArlandaTrip","owner":"Doreapp","description":"Python script to find a cheap metro-bus-train trip to Arlanda Airport (from Odenplan), using SL API","archived":false,"fork":false,"pushed_at":"2021-10-22T16:09:57.000Z","size":13,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T10:12:51.808Z","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/Doreapp.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}},"created_at":"2021-10-20T16:33:44.000Z","updated_at":"2021-10-22T16:10:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"62572b13-b689-4c78-8cc3-1719e2ea8fb2","html_url":"https://github.com/Doreapp/ArlandaTrip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Doreapp/ArlandaTrip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doreapp%2FArlandaTrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doreapp%2FArlandaTrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doreapp%2FArlandaTrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doreapp%2FArlandaTrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doreapp","download_url":"https://codeload.github.com/Doreapp/ArlandaTrip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doreapp%2FArlandaTrip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-11T09:45:07.557Z","updated_at":"2026-05-12T21:04:50.715Z","avatar_url":"https://github.com/Doreapp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arlanda\n\nPython script to search for routes from **Odenplan** station to **Arlanda** airport without paying the fee at the airport. \nThe strategy itself is to take a commuter train (40/41/42X) from Odenplan to Märsta station and then a bus (843) from Märsta to Arlanda.\n\n**Why ?** SL app doesn't propose the bus 843 and google maps doesn't propose the commuter trains. \n\n## SL API\n\nIn order to get correct timetables (that are evolving throught the time), the script is fetching the departure using [SL API](https://developer.trafiklab.se/)\n\nWe are using [SL Travel Planner](https://developer.trafiklab.se/api/sl-reseplanerare-31) to get the trips from \n1. Odenplan to Märsta,\n2. Märsta to Arlanda.\n\nThen, we are merging the result to show available trips\n\n## Setup\n\n1. Git clone\n    ```\n    git clone https://github.com/Doreapp/ArlandaTrip.git\n    cd ArlandaTrip\n    ```\n\n2. Get yourself an API Key from [SL API](https://developer.trafiklab.se/).\n    \n    You need to create an account, then a project, and then tell that your project requires [SL Travel Planner](https://developer.trafiklab.se/api/sl-reseplanerare-31). \n    After that, you'll have a free API Key, with a limited usage, that should match your needs\n\n3. Put your api key into a file named `api_key.key` under `ArlandaTrip` folder\n    \n\n## How to use\n\n### \"GUI\"\n\nRun \n```\npython3 arlanda.py\n```\n\n**Options**\n* use `-h` or `--help` to display an help message, explaining each handled argument\n* use `-kf` or `--key-file` to set the actual location of the file where is stored your API key (by default, it will use `api_key.key` file)\n* use `-xf` or `--export-file` to request the export of the result in an external file. Specify the file you want the export to be in.\n    * If the extension of the file is `.md`, then a markdown file will be exported, containing a table in it\n    * Otherwise, regardless of the extension, a `csv` file will be exported, with `;` as separators.\n\n\nThen, answer the questions about your query\n\n**Example**:\n```\nHi, welcome to ToArlanda Schedule searcher\nAre you going from or to arlanda ?\n   From(F) - To(T)\nT\nDo you want to search for a departure or arrival time ?\n   Departure(D) - Arrival(A)\nA\n   Today? Yes(Y) - No(N)\nY\n   At what time ? - Format hh:mm\n19:00\nCalling API...\nCalling API...\nMerging trips...\nResults:\n-------------------------------\n    Wed 20 17:02 - Stockholm Odenplan station\n        Take [41] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 17:37 - Märsta station (Sigtuna kn)\n        ...\n    Wed 20 17:47 - Märsta station (Sigtuna kn)\n        Take [583] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 18:00 - Arlanda terminal 2-3 buss (Sigtuna kn)\n-------------------------------\n    Wed 20 17:17 - Stockholm Odenplan station\n        Take [41] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 17:52 - Märsta station (Sigtuna kn)\n        ...\n    Wed 20 18:02 - Märsta station (Sigtuna kn)\n        Take [583] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 18:15 - Arlanda terminal 2-3 buss (Sigtuna kn)\n-------------------------------\n    Wed 20 17:32 - Stockholm Odenplan station\n        Take [41] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 18:07 - Märsta station (Sigtuna kn)\n        ...\n    Wed 20 18:17 - Märsta station (Sigtuna kn)\n        Take [583] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 18:30 - Arlanda terminal 2-3 buss (Sigtuna kn)\n-------------------------------\n    Wed 20 17:47 - Stockholm Odenplan station\n        Take [41] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 18:22 - Märsta station (Sigtuna kn)\n        ...\n    Wed 20 18:32 - Märsta station (Sigtuna kn)\n        Take [583] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 18:45 - Arlanda terminal 2-3 buss (Sigtuna kn)\n-------------------------------\n    Wed 20 18:02 - Stockholm Odenplan station\n        Take [41] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 18:37 - Märsta station (Sigtuna kn)\n        ...\n    Wed 20 18:47 - Märsta station (Sigtuna kn)\n        Take [583] towards 'Märsta station (Sigtuna kn)'\n    Wed 20 19:00 - Arlanda terminal 2-3 buss (Sigtuna kn)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoreapp%2Farlandatrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoreapp%2Farlandatrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoreapp%2Farlandatrip/lists"}