{"id":19168362,"url":"https://github.com/nonsignificantp/ecobici-api","last_synced_at":"2025-06-12T08:06:00.761Z","repository":{"id":111640177,"uuid":"169474662","full_name":"nonsignificantp/ecobici-API","owner":"nonsignificantp","description":"Scrapping script for Buenos Aires' bike-sharing system. By listening to an API, it gathers current status of each docking station in the system.","archived":false,"fork":false,"pushed_at":"2019-02-07T15:31:04.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T23:28:36.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/nonsignificantp.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-02-06T20:50:07.000Z","updated_at":"2019-02-07T15:36:04.000Z","dependencies_parsed_at":"2023-06-13T04:47:18.046Z","dependency_job_id":null,"html_url":"https://github.com/nonsignificantp/ecobici-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nonsignificantp/ecobici-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonsignificantp%2Fecobici-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonsignificantp%2Fecobici-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonsignificantp%2Fecobici-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonsignificantp%2Fecobici-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nonsignificantp","download_url":"https://codeload.github.com/nonsignificantp/ecobici-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nonsignificantp%2Fecobici-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259426959,"owners_count":22855552,"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-11-09T09:42:23.230Z","updated_at":"2025-06-12T08:06:00.367Z","avatar_url":"https://github.com/nonsignificantp.png","language":"Python","readme":"# Ecobici data listening\n\n### Summary\n\n`stations.py` send API requests for every docking station that is part of Buenos Aires' bicycle sharing system. It's purpose is to collect data on how many docked bicycles  and available positions are in each of the 198 stations. A comprehensive list of all docking stations to present can found in  `data/stations.json`\n\n`weather.py`: gets the HTML of two weather stations sites, parses it with the use of BeautifulSoup and returns weather variables as temperature, wind, rain, etc.\n\nData collected by both scripts is ment to be use for docking stations usage prediction using machine learning in a latter proyect.\n\n### How to use\n\nBoth scripts should be use with cron so they can be executed at time intervals. We suggest running `stations.py` every 5 minutes and `weather.py` every 30 minutes. For the `stations.py` add a 1 minute buffer after the 5 minute interval mark to make sure that server side data is updated since the server updates its data every five minutes. `crontab -e` file should look like this:\n\n```\n# m h  dom mon dow   command\n1-59/5 * * * * python /path/to/script/stations.py\n   */5 * * * * python /path/to/script/weather.py\n```\n\nDon't forget to set the appropiate permissions for both scripts.\n\n```\nsudo chmod +x script.py\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonsignificantp%2Fecobici-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnonsignificantp%2Fecobici-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnonsignificantp%2Fecobici-api/lists"}