--- a/documents/datagov-export.py +++ b/documents/datagov-export.py @@ -119,7 +119,7 @@ print doc.id if doc.value['url'] != "http://data.gov.au/data/": # Collect the package metadata. - pkg_name = name_munge(doc.value['metadata']['DCTERMS.Title'][:100]) + pkg_name = doc.value['url'].replace("http://data.gov.au/dataset/",'').replace('/',''); _ tags = [] if len(doc.value['metadata']["Keywords / Tags"]) > 0: if hasattr(doc.value['metadata']["Keywords / Tags"], '__iter__'):