Closed MRC-94 closed 10 months ago
For me both work. And I can't think of a reason why it wouldn't. pybliometrics passes on the search query to Scopus: as long as it works there, it works via pybliometrics.
Try this on your system:
doi = "10.1093/restud/rdac058"
s = pybliometrics.scopus.ScopusSearch(f"DOI({doi})")
print(s.get_cache_file_age())
Then do this:
doi = "10.1093/restud/rdac058"
s = pybliometrics.scopus.ScopusSearch(f"DOI({doi})", refresh=True)
print(s.results)
Thanks a lot! refresh = True solves the issue, which was indeed relevant only for old search queries.
pybliometrics version: 3.5.2
Using scopus.ScopusSearch(DOI()). Adding a space after "DOI(" returns the correct results, if no space is added, a None is returned.
Code to reproduce the bug: