python-scopus icon indicating copy to clipboard operation
python-scopus copied to clipboard

error doing a general search from documentation

Open farouktif opened this issue 3 years ago • 3 comments

Hello,

i dowloaded and install PyScopus as instructed, assigned a Scopus API key, but when i run the example provided below i get an error:

search_df = scopus.search("KEY(interdisciplinary collaboration)", count=20)

Traceback (most recent call last): File "", line 1, in File "...\lib\site-packages\pyscopus
copus.py", line 56, in search result_df, total_count = search_scopus(self.apikey, query, type, view=view) File "...\lib\site-packages\pyscopus\tils.py", line 388, in _search_scopus total_count = int(js['search-results']['opensearch:totalResults']) KeyError: 'search-results'

farouktif avatar Feb 13 '22 16:02 farouktif

try ... search_df = scopus.search("KEY(interdisciplinary collaboration)", count=20, view='STANDARD')

PiahDoNeumann avatar Jul 19 '22 22:07 PiahDoNeumann

The same issue.

haohuilu avatar Feb 21 '23 06:02 haohuilu

Including view='STANDARD' worked for me.

djcomlab avatar Apr 14 '23 04:04 djcomlab