Skip to content

Instantly share code, notes, and snippets.

@127-0-0-1
127-0-0-1 / declarations_api.py
Created July 20, 2016 04:12 — forked from dchaplinsky/declarations_api.py
Simple example of how to export all assets declarations from declarations.com.ua website.
import requests
import json
from time import sleep
data = []
print("Fetching page #%s" % 1)
r = requests.get("http://declarations.com.ua/search?format=json").json()
data += r["results"]["object_list"]