|
|
|
|
55
|
def request(query, params):
|
55
|
def request(query, params):
|
56
|
# replace shortcuts with API advanced search keywords
|
56
|
# replace shortcuts with API advanced search keywords
|
57
|
for key in shorcut_dict.keys():
|
57
|
for key in shorcut_dict.keys():
|
58
|
- query = re.sub(str(key), str(shorcut_dict[key]), query)
|
|
|
|
|
58
|
+ query = re.sub(key, shorcut_dict[key], str(query))
|
59
|
|
59
|
|
60
|
# basic search
|
60
|
# basic search
|
61
|
offset = (params['pageno'] - 1) * number_of_results
|
61
|
offset = (params['pageno'] - 1) * number_of_results
|