Skip to content

Instantly share code, notes, and snippets.

View mukil's full-sized avatar

Malte mukil

View GitHub Profile
@mukil
mukil / LeafletAnnotateSpider.py
Last active March 30, 2017 15:12
A Scrapy-Splash spider for extracting semantic annotations from geographic web maps authored with Leaflet.annotate
# -*- coding: utf-8 -*-
import json
import datetime
import scrapy
from scrapy import Selector
from scrapy_splash import SplashRequest
class LeafletAnnotateSpider(scrapy.Spider):
name = "leafletAnnotate"
allowed_domains = ["github.io"]