
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
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
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.
pip install GeoScraper
import os
from pprint import pprint
from GeoScraper import GeoScraper
USE_BBOX = True
USE_FILE = True
USE_URL = True
XML_FNAME = os.path.join(os.path.dirname(__file__), 'map.osm') # YOU MAY NEED TO CHANGE THIS LINE!
BBOX = [-84.0958000, # left
39.7617000, # bottom
-84.0484000, # right
39.7823000] # top
URL = r'https://api.openstreetmap.org/api/0.6/map?bbox=-84.0958000,39.7617000,-84.0484000,39.7823000'
if __name__ == '__main__':
scraper = GeoScraper()
if USE_FILE:
print('=' * 50)
print('Using file:')
print('=' * 50)
scraper.from_file(XML_FNAME)
pprint(scraper.highways()[:3])
print('\n')
if USE_BBOX:
print('=' * 50)
print('Using bbox:')
print('=' * 50)
scraper.from_bbox(left = BBOX[0],
bottom = BBOX[1],
right = BBOX[2],
top = BBOX[3])
pprint(scraper.highways()[:3])
print('\n')
print('=' * 50)
print('Done')
print('=' * 50)
if USE_URL:
print('=' * 50)
print('Using url:')
print('=' * 50)
scraper.from_url(URL)
pprint(scraper.highways()[:3])
print('\n')
print('=' * 50)
print('Done')
print('=' * 50)
FAQs
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
We found that GeoScraper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.