-
I ran into some odd behaviour and I'm just wondering if you have any idea. Basically, I've been saving some Instagram tagged posts from a profile and it's been working amazingly but it's reached a point where the cursor doesn't continue but instead of returning to the start like you would expect, it goes to a cursor point halfway through. And what's weirder is after some time (seems to be around a day from what I can tell) the cursor finds 1 more cursor before breaking into the loop again. I can't imagine what would cause this behaviour but I would take a guess it's the API. Nevertheless I assume you would know more that me so figured I would ask you anyway if you had any clue as to what I could do / where I could ask. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Seems like it. The API call for
(or from
Should be possible to catch such cases and manually stop. if posts[-1]["pk"] > params["max_id"]:
break |
Beta Was this translation helpful? Give feedback.
cursor
values for/tagged/
are just numeric post IDs (post_id
) to start from it seems, so you might be able to manually use the lowestpost_id
returned to get older posts.2521580848874395776
is the lowest ID I get before it jumps back up to2961579667514662360
, so try-o cursor=2521580848874395776
.You don't need to use
\"
anymore: 9b59af8