google scholar
rpietro opened this issue · 4 comments
hi, I am trying to set an alias for google scholar using .googler_at. here is what I tried:
alias @gs='googler -w scholar.google.com/scholar' # gives me an error
alias @gs='googler -w scholar.google.com' # searches for people instead of the terms themselves
any thoughts on how to get it to work? thanks, this is a fantastic software
Unfortunately, Google Scholar search isn't a native functionality of googler. Only Search and News are supported.
However, from the received html data it seems googler can be extended to support it with some changes. If you are really interested, please raise a PR. We'll be glad to help out with the code understanding.
Tips:
netloc
should be www.scholar.google.com
and the path is /scholar
instead of /search
. These 2 changes, at the least, fetches the data you are looking for. Then you need to adapt the parser to handle scholarly results ;).
I have added it to the ToDo list. Please raise a PR directly if you implement it.
My detailed thoughts on why googler isn't equipped to handle Google Scholar can be found here: #209 (comment).