openmedialibrary_platform/Shared/lib/python2.7/site-packages/ox/web/openlibrary.py
2014-05-16 01:20:41 +02:00

8 lines
201 B
Python

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