Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Json results are cached in ~/.scopus/author_search/STANDARD/{fname},
where fname is the md5-hashed version of query.
"""
# Checks
allowed_actions = ("warn", "raise")
if integrity_action not in allowed_actions:
msg = 'integrity_action parameter must be one of ' +\
', '.join(allowed_actions)
raise ValueError(msg)
# Parameters
view = "STANDARD" # In case Scopus adds different views in future
# Query
self.query = query
Search.__init__(self, query=query, refresh=refresh, view=view,
api='AuthorSearch', count=count, download=download,
verbose=verbose)
self.integrity = integrity_fields or []
self.action = integrity_action
# Parameters
if not view:
if subscriber:
view = "COMPLETE"
else:
view = "STANDARD"
count = 25
if view == "STANDARD" and subscriber:
count = 200
if "cursor" in kwds:
subscriber = kwds["cursor"]
kwds.pop("cursor")
# Query
self.query = query
Search.__init__(self, query=query, api='ScopusSearch', refresh=refresh,
count=count, cursor=subscriber, view=view,
download=download, verbose=verbose, **kwds)
self.integrity = integrity_fields or []
self.action = integrity_action
Json results are cached in ~/.scopus/affiliation_search/STANDARD/{fname},
where fname is the md5-hashed version of query.
"""
# Checks
allowed_actions = ("warn", "raise")
if integrity_action not in allowed_actions:
msg = 'integrity_action parameter must be one of ' +\
', '.join(allowed_actions)
raise ValueError(msg)
# Parameters
view = "STANDARD" # In case Scopus adds different views in future
# Query
self.query = query
Search.__init__(self, query=query, api="AffiliationSearch",
refresh=refresh, count=count, download=download,
verbose=verbose)
self.integrity = integrity_fields or []
self.action = integrity_action