Geodatos.net basic crawler to extract geopositional information based on tag locations.
In case your projects has a virtualenv, activate it before following the next instructions:
-
Clone the directory on your workspace. Not your current project.
$ git clone https://github.com/juliomaroto/coordinates_crawler
-
In the cloned folder with the library execute the pip install command.
$ pip install .
-
Use it. Example of using:
from coordinates_crawler import CoordinatesCrawler, PageNotFoundException import sys if __name__ == "__main__": cc = CoordinatesCrawler(location="Mula") try: res = cc.crawl() except PageNotFoundException: print("Page not found.") sys.exit(0) print(res)
What should shown the following {x, y} coordinates:
{'x': 37.778001, 'y': -1.5015009}