Open rogerrohrbach opened 5 years ago
I think this issue results from https://github.com/ElsevierDev/elsapy/blob/a8a8b043816441e3ed0c834e792f7089231092da/elsapy/elsclient.py#L28
Maybe the 25 there can't be overwritten by setting num_res
anywhere else?
Either way @ElsevierDev: Please add a little bit of control over how many results ElsClient
downloads. In my use-case, 25 is too few to prototype a bibliometrics analysis pipeline, but get_all=True
yields 5000 which is way too much initially. I would like to start with num_res=200
to 500
and finally run it (slowly, over a weekend or something) to retrieve 10, 20 or 50k results.
@rogerrohrbach, @katrinleinweber could you give an example of this argument and where you've passed it? I've been hammering away trying to expand the search results returned, but I'm locked in at 25.
Nevermind, found the solution. For anyone else struggling with this - within the exampleProg.py file you can change get_all to True. I.e.: doc_srch.execute(client, get_all = True)
It is possible to pass an argument when instantiating an
ElsClient
to set the the number of results to retrieve with each request. Thenum_res
property is correctly set, but is unused; the first request issued does not include acount
parameter, and subsequent requests are made using thenext
link in the response, which stipulates the default (count=25
).