9 lines
201 B
Python
9 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
|