Skip to content

Instantly share code, notes, and snippets.

Avatar

Malte mukil

View GitHub Profile
@mukil
mukil / LeafletAnnotateSpider.py
Last active Mar 30, 2017
A Scrapy-Splash spider for extracting semantic annotations from geographic web maps authored with Leaflet.annotate
View LeafletAnnotateSpider.py
# -*- 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"]