zhiyzuo / python-scopus

PyScopus
http://zhiyzuo.github.io/python-scopus/
MIT License
23 stars 29 forks source link

error doing a general search from documentation #27

Open farouktif opened 2 years ago

farouktif commented 2 years ago

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 = _searchscopus(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'

PiahDoNeumann commented 2 years ago

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

haohuilu commented 1 year ago

The same issue.

djcomlab commented 1 year ago

Including view='STANDARD' worked for me.