diff --git a/semanticscholar.py b/semanticscholar.py index 20d976a..4692e61 100644 --- a/semanticscholar.py +++ b/semanticscholar.py @@ -20,5 +20,5 @@ def search_paper(question): for i in question: query += "+" + i res = requests.get(headers={'x-api-key':__CONFIG__['semAPI']}, - url= 'https://api.semanticscholar.org/graph/v1/paper/search?fields=title,abstract&query='+query[+1:]).json() + url= 'https://api.semanticscholar.org/graph/v1/paper/search?fieldsOfStudy=Psychology&fields=title,abstract&query='+query[+1:]).json() return res['data']