ckreibich / scholar.py

A parser for Google Scholar, written in Python
2.1k stars 777 forks source link

Searching with DOI #129

Open SvennoNito opened 4 years ago

SvennoNito commented 4 years ago

Hey, I've tried to find a paper using it's DOI. While when I for example put doi.org/10.1177/0956797614535937 to google scholar, it finds exactly this paper. Scholar.py, however, complains no matter which query option i use.

scholar.QueryArgumentError: search query needs more parameters

I've tried all of those options seperately, but none has worked so far:

"--title-only", "doi.org/10.1177/0956797614535937"
"--phrase", "doi.org/10.1177/0956797614535937"
"--all", "doi.org/10.1177/0956797614535937"
"--some", "doi.org/10.1177/0956797614535937"
"--author", "doi.org/10.1177/0956797614535937"

Any idea how to implement a DOI search?

airampg commented 2 years ago

Hi Svenno,

I have just downloaded the script and the way I have been able to do it is by using "-A" (i.e., "Results must contain all of these words").

NOTE: If you are using the complete DOI, i.e., with the slashes ("/"), then you must scape them. "doi.org/10.1177/0956797614535937" -> "doi.org//10.1177//0956797614535937"

image

I hope this helps!