Space Invaders Spotter - Street Art website scraper
python -m venv .venv
./.venv/bin/pip install -r requirements.txt
First, scrape all known invaders together with their status and location:
./.venv/bin/python scraper.py
This will generate 3 files:
data/invaders-dump.csv
, a CSV dump of all the invaders from invader-spotter.art.data/invaders-with-locations.csv
, the CSV with the additional locations information.data/all-invaders.kml
, a ready to import KML file with all the invaders as bookmarks/placemarks.
Provided you have a ./data/invader-input.gpx file of your flashed invader, you can run
./.venv/bin/python updategpx.py
This will keep all flashed invaders and add new locations / update status from scraped info, and output a new file to upload in InRoute.
Provided you have a KML file of your flashed invaders (or a GPX and convert it to KML), you can run
./.venv/bin/python generate_to_flash.py KML_FILE_OF_FLASHED_INVADERS
to generate a data/invaders-to-flash.kml
KML file containing all the known
invaders locations that you did not flash and that are known to be active at
the moment.
Forked and adapted from https://github.com/Zboubinours/invader-spotter-scraper which did not specify an initial license. For extra code on top of this original one, it can be considered public domain.