We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bf37c1 commit 965a85fCopy full SHA for 965a85f
ckantests.py
@@ -40,10 +40,6 @@ def package_to_dcat(package):
40
return converters.ckan_to_dcat(package)
41
42
43
-def dcat_to_utf8_dict(url):
44
- return json.loads(urllib2.urlopen(url).read().decode('utf-8'))
45
-
46
47
# pkg = ckanops.get_package('ciclones')
48
# print pkg
49
# print package_to_dcat(pkg)
@@ -53,7 +49,7 @@ def dcat_to_utf8_dict(url):
53
# print 'Groups'
54
50
# print list_groups()
55
51
56
-catalog = dcat_to_utf8_dict("http://adela.datos.gob.mx/sedesol/catalogo.json")
52
+catalog = ckanops.dcat_to_utf8_dict("http://adela.datos.gob.mx/sedesol/catalogo.json")
57
print catalog.get('title')
58
59
for dataset in catalog.get('dataset', []):
0 commit comments