This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
import xml.etree.ElementTree as etree | |
import json | |
# Query for sites in English that have science data, an OAI URL, and allow free access to metadata. | |
resp = urllib2.urlopen('http://opendoar.org/api13.php?la=en&oai=y&pograde=11,12&subject=Ca,Ce,Cur,Cuv') | |
data = resp.read() | |
tree = etree.fromstring(data) | |
l = [] | |
for child in tree.iter('repository'): |