IG

FREEMIUM
Par Crawler | Mise à jour 16 days ago | Social
Popularité

9.9 / 10

Latence

3,570ms

Niveau de service

100%

Health Check

N/A

Retour à toutes les discussions

next_cursor in scrapping comments

Rapid account: Abarmoudeh
abarmoudeh
2 years ago

Hi
for example there is a post contains 200 comments and I just wanted to scrape the 100 comments of that.

How should I set the next_cursor for this?

Rapid account: Yuananf
yuananf Commented 2 years ago

The next_cursor should like this: {"cached_comments_cursor": "17915386490497488", "bifilter_token": "KE0BEABoAEAAIAAYABgAEAAIAAgAfWFNX-bmOSy-_sM9f3P_y9a7xu6dNftjRIxqus2bc_Xd5__v2v2k52PfjT4vRniZPgOC0yRZMj5BAAA="}.

Rapid account: Abarmoudeh
abarmoudeh Commented 2 years ago

My end cursor in the first run is:

end_cursor": “{“cached_comments_cursor”: “17925341924053814”, “bifilter_token”: “KFYBFABoAEAAKAAgABgAEAAIAAgACAAIAH1hTVXm5jksvv7DHX9z_8rWu8bunV8g9fcMXrzpmMTzb-qVDT77_-_b9pOdj3xp8XtniZOgcomCNEJq60JyIAA=”}”

and I set the below value to end_cursor in next runs:

KFYBFABoAEAAKAAgABgAEAAIAAgACAAIAH1hTVXm5jksvv7DHX9z_8rWu8bunV8g9fcMXrzpmMTzb-qVDT77_-_b9pOdj3xp8XtniZOgcomCNEJq60JyIAA=\

but I get this error:

“500 - {“message”:“execution failure”,“errors”:[{“message”:“execution error”,“locations”:[]}],“data”:{“shortcode_media”:null},“status”:“fail”}”

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires