Closed danuccio closed 2 years ago
The error states that scholarly is trying to use selenium, more specifically, it is trying to invoke geckodriver
which is a version of Firefox. Have you setup your geckodriver
and made sure that it is referenced in the PATH variables in the Windows environment variables?
The change behind this behavior that you are seeing in v1.4 is that, for GtLLuxoAAAAJ
, scholarly is trying to fetch all the co-authors instead of only the few you see in the profile page. The proper way to fix this issue is to add geckodriver
to your PATH as @silvavn mentioned (we should do this in #185) but a quick and dirty way is to not fill co-authors of the author if you don't really need them. You can modify your script to
author = scholarly.fill(id, sections=['basics', 'publications'])
and it should work fine.
Thank you! The quick and dirty way fixed it.
Great! Keeping this issue open until 1.4.1 comes through, that should make your existing code work without having to do any modification.
Closing this now, since the fix in v1.4.1 should allow the original script to work without any modification. You will however get a warning however about geckodriver
not being in the PATH
After updating to the latest version of scholarly (1.4.0) I have been having issues filling the author container for some but not all authors.
As an example, when I search for the first ID in the code below, I can fill the author and publication fields without any problem. However, when I use the second ID, I get a lengthy error message that seems to be related to selenium.
I tried running this in Python 3.6 and 3.9 (Also, yes I am aware my ids are commented out in my sample code).
Here is a shortened sample code.
Here is the output I get and error message I receive for the unsuccessful ID after upgrading to version 1.4.0.