Looping through the Socrata datasets through the API every time is probably a little heavy handed given that these will change infrequently. Instead, replace this with a script to produce a CSV file that can be passed in as a parameter to the dataportalapi.py file. This makes the script more flexible so that, for example, CKAN instances could be added to a single CSV file with Socrata instances and then the API script can make the right calls depending on the catalog. Also, users could just add catalogs by hand, which can often times be the faster option.
Looping through the Socrata datasets through the API every time is probably a little heavy handed given that these will change infrequently. Instead, replace this with a script to produce a CSV file that can be passed in as a parameter to the dataportalapi.py file. This makes the script more flexible so that, for example, CKAN instances could be added to a single CSV file with Socrata instances and then the API script can make the right calls depending on the catalog. Also, users could just add catalogs by hand, which can often times be the faster option.