Some more info might help... Actually, it might be a bug but can't find where it's located.
I have a python script that calls the API to check if there is new results for a specific search.
The script does a search based on a keyword + a period and ask for results based on recency.
If the search returns a list of hits, I take the unix date of the first element (the most recent) as the beginning of my next period search... just so I don't have to get elements before that one because I already have them.
So my script performs a search every minute or so to check for new elements...
The first time I run the script (whatever the period of search), it returns a list of hits... but when the scripts checks for new elements... that's when I get a Json response with a total > 0 but no hits to process. (see output in last message)
If I stop the script and rerun it with the last period searched (that turned a total > 1 but no hits), I do get a list of hits corresponding to the total number announced in the response...
This puzzles me. Something is wrong somewhere... but can't understand why.
Does the teleportd python package needs to be "closed" or something to do a new search?
Or is it pycurl that fails me?
Have attached my small script for you to check.
Thx