openmedialibrary_platform/Shared/lib/python2.7/site-packages/ox/web/openlibrary.py

9 lines
201 B
Python
Raw Normal View History

2013-10-11 17:28:32 +00:00
from ox.cache import read_url
from ox.utils import json
def find(query):
url = 'http://openlibrary.org/search.json?q=%s' % query
print url
data = json.loads(read_url(url))
return data