Open farouktif opened 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'
try ... search_df = scopus.search("KEY(interdisciplinary collaboration)", count=20, view='STANDARD')
The same issue.
Including view='STANDARD' worked for me.
view='STANDARD'
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'