This code will collect JSON datasets from defined endpoints at Socrata instances.
The socrata_datasets object in this module is pre-initialized with NYC-ACRIS data demonstrating how a list of records may be assembled for bulk collection.
The offset_downloads() function will batch process 1,000 records per request, respective of Socrata's bulk rate limit, and store each batch in a JSON file in your specified data_dir.