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