pybliometrics-dev / pybliometrics

Python-based API-Wrapper to access Scopus
https://pybliometrics.readthedocs.io/en/stable/
Other
407 stars 127 forks source link

Scopus404Error: The resource specified cannot be found. #251

Closed langongjin closed 2 years ago

langongjin commented 2 years ago

Hi, I have the code

eids = scopus.ScopusSearch(query).get_eids()
random.seed(0)
random.shuffle(eids)

bar = widgets.IntProgress(
    min=0, 
    max=len(eids), 
    description='Loading')
display(bar)
print('query: {} ({} results)'.format(query, len(eids)))

papers = []
for eid in eids:
    papers.append(scopus.AbstractRetrieval(eid, view='FULL'))
    bar.value += 1
print('scopus returned {} results'.format(len(papers)))

but here is the error

Scopus404Error                            Traceback (most recent call last)
<ipython-input-37-623b91f5d684> in <module>
     13 papers = []
     14 for eid in eids:
---> 15     papers.append(scopus.AbstractRetrieval(eid, view='FULL'))
     16     bar.value += 1
     17 print('scopus returned {} results'.format(len(papers)))

Scopus404Error: The resource specified cannot be found.

Do you have any ideas?

Thanks!

Michael-E-Rose commented 2 years ago

The EID you're using does not exist any more. That's also what https://pybliometrics.readthedocs.io/en/stable/access.html#error-messages states:

The entity you are looking for does not exist. Check that your identifier is still pointing to the item you are looking for.

Make sure the query isn't too old.