Skip to content

error doing a general search from documentation #27

@farouktif

Description

@farouktif

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions