{"id":18392893,"url":"https://github.com/drklrd/osm-stats-generator","last_synced_at":"2025-04-12T11:25:23.603Z","repository":{"id":88247875,"uuid":"479955910","full_name":"drklrd/osm-stats-generator","owner":"drklrd","description":"OSM Stats Generator","archived":false,"fork":false,"pushed_at":"2022-04-11T06:02:05.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T01:31:40.422Z","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/drklrd.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":"2022-04-10T08:22:44.000Z","updated_at":"2022-04-13T08:06:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f49a081-5b35-4b4f-98cf-f56dbcd1b4b0","html_url":"https://github.com/drklrd/osm-stats-generator","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/drklrd%2Fosm-stats-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drklrd%2Fosm-stats-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drklrd%2Fosm-stats-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drklrd%2Fosm-stats-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drklrd","download_url":"https://codeload.github.com/drklrd/osm-stats-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248559175,"owners_count":21124428,"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-06T01:58:26.063Z","updated_at":"2025-04-12T11:25:23.584Z","avatar_url":"https://github.com/drklrd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSM Stats Generator\n\nWhenever there are some recent map edits, we are curious to know who mapped what and how many of them. While there are already numerous tools to get similar type of statistics, the need of this one is due to the following use-cases\n\n- Counting how many schools or hospitals (or anything) someone mapped within particular timeperiod\n\n# Installation\n\nStart with cloning the repository. Then create a Virtual Environment to install the required dependencies.\n\n```\nvirtualenv -p python3 venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n# Data Preparation\n\nBefore using the OSM stats generator script, you need the prepare the data first. Please follow the steps for that.\n\n- Download the latest data (internal data with usernames) from Geofabrik for the region. For that, you need to Login with OpenStreetMap account.\n- Place the downloaded file inside the 'data' directory as 'internal-latest.osm.pbf'. Create 'data' directory if it doesn't exist.\n- Then create necessary period/changes files with the command simiar to the following. Change the dates as required.\n\n```\nosmium time-filter  data/internal-latest.osm.pbf 2022-03-27T00:00:00Z -o data/start.osm.pbf\nosmium time-filter  data/internal-latest.osm.pbf 2022-04-01T00:00:00Z -o data/end.osm.pbf\nosmium derive-changes data/start.osm.pbf data/end.osm.pbf -o data/changes.osc\n```\n\n# Usage\n\nYou can run the script with following command\n\n```\nUsage: python OSMStatsGenerator.py '\u003cosmusername\u003e'\nExample: python OSMStatsGenerator.py 'User Name'\n```\n\n# Limitations\n\n- Considers only creation and modification changes for now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrklrd%2Fosm-stats-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrklrd%2Fosm-stats-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrklrd%2Fosm-stats-generator/lists"}