-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
def get_papers(
ids,
fields=['corpusId', 'title', 'abstract', 'year', 'publicationDate', 'referenceCount', 'citationCount', 'embedding.specter_v2'],
batch_size=100
):
response = flatten_list([
post_request(
'https://api.semanticscholar.org/graph/v1/paper/batch',
headers=headers,
params={'fields': ','.join(fields)},
json={"ids": ids_batched}
)
for ids_batched in batched(ids, batch_size)
])
return response
When executing the code, an error occurred.
Note: I am using the proxy API, but during execution, it consistently returns a "Server Error: Internal Server Error for URL."
This happens regardless of whether I use the paper's corpus ID that I entered myself or the one used for debugging in the original source code.
Metadata
Metadata
Assignees
Labels
No labels