Logo
Saved Posts Trackerby gitnasr.com softwares

Resumable Scraping Engine

How the checkpoint pagination and error classification mechanisms prevent data loss.

Resumable Scraping Engine

Instagram limits pagination and may trigger rate limits during long scraping sessions. Saved Posts Tracker uses a resilient checkpoint engine designed to handle these interruptions gracefully.

Checkpoint System

During execution, the scraper saves a pagination cursor token (checkpointMaxId) after every fetched page:

  • If the server restarts or network drops, the run state is preserved.
  • When resuming, the scraper supplies max_id: checkpointMaxId, picking up immediately from the last unseen post.

Error Taxonomy

When an error occurs, the scraper automatically classifies it into one of four error kinds:

Error KindDescriptionResumable?Recommended Action
rate_limitedHTTP 429 received from InstagramYesWait 15-30 minutes and click Resume Run.
transientNetwork timeout or temporary socket errorYesClick Resume Run immediately.
authSession cookie expired or checkpoint challengeNoUpdate session cookie in Profile Settings.
fatalUnrecoverable JSON parse or schema failureNoInspect error log in Dashboard.

Timeline Event Generation

As posts are fetched, the scraper compares new accounts against historical data to generate append-only timeline events:

  • username_changed: Detects when an account PK has a different username.
  • lost: Flags accounts where previous posts return 404/deleted.
  • recovered: Flags previously lost accounts that have reappeared.
  • privacy_private: Detects when a public creator switches to private.