everypolitician/scraped

Handle JSON documents

Closed this issue · 1 comments

Problem

Scraped can handle HTML documents but sometimes data is available as JSON. Scraped does not yet know how to handle JSON.

Solution

Add a Scraped::JSON class to handle JSON documents.

You can see a prototype of this class in the myanmar-lower-house-2016 and france-constituencies-mapit scrapers.