Set field of study at Psychology

This commit is contained in:
mxr612 2024-08-21 18:31:05 +08:00
parent bf57208e36
commit d47042302d

View File

@ -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']