{"id":15058923,"url":"https://github.com/powerbroker2/geoscraper","last_synced_at":"2026-01-25T22:24:05.031Z","repository":{"id":225390209,"uuid":"765877587","full_name":"PowerBroker2/GeoScraper","owner":"PowerBroker2","description":"Very user friendly library to parse OpenSourceMap data either from an XML file (i.e. *.osm), from an OSM API URL, or from a user specified bounding box","archived":false,"fork":false,"pushed_at":"2024-11-13T13:26:39.000Z","size":572,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T14:29:27.164Z","etag":null,"topics":["geospacial","map","mapping","maps","openstreetmap","openstreetmap-api","openstreetmap-data","openstreetmaps","openstreetmaps-api","osm"],"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/PowerBroker2.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}},"created_at":"2024-03-01T19:53:43.000Z","updated_at":"2024-11-13T13:26:44.000Z","dependencies_parsed_at":"2024-03-01T20:50:43.186Z","dependency_job_id":null,"html_url":"https://github.com/PowerBroker2/GeoScraper","commit_stats":null,"previous_names":["powerbroker2/geoscraper"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerBroker2%2FGeoScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerBroker2%2FGeoScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerBroker2%2FGeoScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerBroker2%2FGeoScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerBroker2","download_url":"https://codeload.github.com/PowerBroker2/GeoScraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225449842,"owners_count":17476155,"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":["geospacial","map","mapping","maps","openstreetmap","openstreetmap-api","openstreetmap-data","openstreetmaps","openstreetmaps-api","osm"],"created_at":"2024-09-24T22:32:58.806Z","updated_at":"2026-01-25T22:24:04.985Z","avatar_url":"https://github.com/PowerBroker2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeoScraper\r\n[![GitHub version](https://badge.fury.io/gh/PowerBroker2%2FGeoScraper.svg)](https://badge.fury.io/gh/PowerBroker2%2FGeoScraper) [![PyPI version](https://badge.fury.io/py/GeoScraper.svg)](https://badge.fury.io/py/GeoScraper)\u003cbr /\u003e\u003cbr /\u003e\r\n\r\nVery user friendly library to parse OpenSourceMap data either from an XML file (i.e. *.osm), from an OSM API URL, or from a user specified bounding box.\r\n\r\n# To Install\r\n```\r\npip install GeoScraper\r\n```\r\n\r\n# Example Python Script\r\n```python\r\nimport os\r\nfrom pprint import pprint\r\n\r\nfrom GeoScraper import GeoScraper\r\n\r\n\r\nUSE_BBOX  = True\r\nUSE_FILE  = True\r\nUSE_URL   = True\r\n\r\nXML_FNAME = os.path.join(os.path.dirname(__file__), 'map.osm') # YOU MAY NEED TO CHANGE THIS LINE!\r\nBBOX = [-84.0958000, # left\r\n         39.7617000, # bottom\r\n        -84.0484000, # right\r\n         39.7823000] # top\r\nURL = r'https://api.openstreetmap.org/api/0.6/map?bbox=-84.0958000,39.7617000,-84.0484000,39.7823000'\r\n\r\n\r\nif __name__ == '__main__':\r\n    scraper = GeoScraper()\r\n    \r\n    if USE_FILE:\r\n        print('=' * 50)\r\n        print('Using file:')\r\n        print('=' * 50)\r\n        scraper.from_file(XML_FNAME)\r\n        pprint(scraper.highways()[:3])\r\n        print('\\n')\r\n    \r\n    if USE_BBOX:\r\n        print('=' * 50)\r\n        print('Using bbox:')\r\n        print('=' * 50)\r\n        scraper.from_bbox(left   = BBOX[0],\r\n                          bottom = BBOX[1],\r\n                          right  = BBOX[2],\r\n                          top    = BBOX[3])\r\n        pprint(scraper.highways()[:3])\r\n        print('\\n')\r\n        print('=' * 50)\r\n        print('Done')\r\n        print('=' * 50)\r\n    \r\n    if USE_URL:\r\n        print('=' * 50)\r\n        print('Using url:')\r\n        print('=' * 50)\r\n        scraper.from_url(URL)\r\n        pprint(scraper.highways()[:3])\r\n        print('\\n')\r\n        print('=' * 50)\r\n        print('Done')\r\n        print('=' * 50)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerbroker2%2Fgeoscraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowerbroker2%2Fgeoscraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerbroker2%2Fgeoscraper/lists"}