'''
Created on 16 Sep 2014

@author: s05nc4
'''

import csv
import urllib2

    
if __name__ == '__main__':
    for row in csv.reader(urllib2.urlopen('https://catalogue.ukeof.org.uk/api/documents?format=csv')):
        print row

'''
Created on 16 Sep 2014

@author: s05nc4
'''

import csv
import urllib2

    
if __name__ == '__main__':
    for row in csv.DictReader(urllib2.urlopen('https://catalogue.ukeof.org.uk/api/documents?format=csv')):
        print row

Use DictReader. Example row: {'Title': 'Countryside Survey field survey network', 'Objectives': '', 'Reasons for collection': '', 'Lifespan end': '', 'Envirobase codings': '', 'Location (bounding boxes or points)': '-8.6484 49.8638 1.7676 60.8610', 'Online resources': 'http://www.countrysidesurvey.org.uk', 'Links to data': '', 'Type': 'Network', 'GMES codings': '', 'Description': 'The Countryside Survey field survey locations are a highly detailed sample of 1km squares, located all over England, Scotland and Wales. The individual squares are chosen so that they represent all major habitat types in the UK. Enough squares are selected for each type, to make sure that the statistical analysis for that habitat is robust and reliable. The location of the study squares is kept confidential to avoid any deliberate influences that could affect them or the features within them. In this way the sample squares will remain a true reflection of changes in the wider countryside; they will continue to provide a reliable comparison for future Surveys.', 'Lead organisation': 'Centre for Ecology & Hydrology', 'Last edited': '2014-09-04 10:25:58', 'Environmental domains': '', 'Funding categories': '', 'UKEOF Identifier': '', 'GEOSS codings': '', 'ECV codings': '', 'Lifespan start': '', 'Parameters measured': '', 'Measurement regime': '', 'Legal background': '', 'Keywords': '', 'Link to full record': 'https://catalogue.ukeof.org.uk/id/a6985b22-761f-4c70-986d-16119f6799c5'} For #14-ukeof