Unexpected behavior of start_index
in search_citedby
results in an empty generator
#531
Labels
start_index
in search_citedby
results in an empty generator
#531
Describe the bug
When using the
search_citedby
function from thescholarly
with a non-zerostart_index
, the returned generator is expected to skip the specified number of articles and return the remaining articles that cite the givenPUBLICATION_ID
. However, whenstart_index
is set to any value greater than 0, the generator unexpectedly contains 0 items, even though the corresponding Google Scholar URI (/scholar?hl=en&cites=16837829726140559426&as_ylo=2023&as_yhi=2023&as_vis=0&as_sdt=0,33&start=270
withcited_by._url
) when accessed directly in a browser shows the correct page with results.To Reproduce
When I use this code snippet with a
start_index
equal to 0, it will print outTotal results: 3340
but when I use it with any positive value forstart_index
, it will print outTotal results: 0
Expected behavior
The expected behavior is that the generator should skip the first
start_index
number of articles and return the remaining articles that cite thePUBLICATION_ID
from the year 2023. Meaning that the code snippet should print outTotal results: 3070
Screenshots
Screenshots are not applicable as this is a code execution issue, but the maintainers can reproduce the issue using the provided code snippet.
Desktop:
Do you plan on contributing?
Your response below will clarify whether the maintainers can expect you to fix the bug you reported.
The text was updated successfully, but these errors were encountered: