Skip to content

IG reel scraper apify#369

Merged
Selinali01 merged 1 commit into
mainfrom
ig_reel
Apr 29, 2026
Merged

IG reel scraper apify#369
Selinali01 merged 1 commit into
mainfrom
ig_reel

Conversation

@Selinali01
Copy link
Copy Markdown
Contributor

@Selinali01 Selinali01 commented Apr 29, 2026

Summary

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor
  • New Bubble Integration
  • Other (please describe):

Checklist

  • My code follows the code style of this project
  • I have added appropriate tests for my changes
  • I have run pnpm check and all tests pass
  • I have tested my changes locally
  • I have linked relevant issues

Screenshots (Required)

For New Bubble Integrations

📋 Integration Flow Tests: When creating a new bubble, you must write an integration flow test that exercises all operations end-to-end in realistic scenarios—including edge cases. This flow should be runnable in bubble studio and return structured results tracking each operation's success/failure with details. See packages/bubble-core/src/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.ts for a complete reference implementation.

⚠️ If your integration requires API credits for testing, please reach out to the team for test credentials.

  • Integration flow test (.integration.flow.ts) covers all operations
  • Screenshots showing full test results in Bubble Studio attached above

Additional Context

Summary by CodeRabbit

  • New Features

    • Added Instagram reel scraping functionality with support for transcript extraction, engagement metrics, video downloads, and date filtering.
  • Enhancements

    • Extended operation timeout limit to support long-running tasks (up to 30 minutes).
  • Chores

    • Version bumped across packages to 0.1.322.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying bubblelab-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6481d35
Status: ✅  Deploy successful!
Preview URL: https://8f82c5f7.bubblelab-documentation.pages.dev
Branch Preview URL: https://ig-reel.bubblelab-documentation.pages.dev

View logs

@Selinali01 Selinali01 merged commit 003d532 into main Apr 29, 2026
7 of 8 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 29, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2f80fd6d-7a3a-464a-af8c-9e56644a8a5f

📥 Commits

Reviewing files that changed from the base of the PR and between c258779 and 6481d35.

📒 Files selected for processing (11)
  • packages/bubble-core/package.json
  • packages/bubble-core/src/bubbles/service-bubble/apify/actors/instagram-reel-scraper.ts
  • packages/bubble-core/src/bubbles/service-bubble/apify/apify-scraper.schema.ts
  • packages/bubble-core/src/bubbles/service-bubble/apify/apify.ts
  • packages/bubble-core/src/bubbles/tool-bubble/instagram-tool.ts
  • packages/bubble-runtime/package.json
  • packages/bubble-scope-manager/package.json
  • packages/bubble-shared-schemas/package.json
  • packages/create-bubblelab-app/package.json
  • packages/create-bubblelab-app/templates/basic/package.json
  • packages/create-bubblelab-app/templates/reddit-scraper/package.json

📝 Walkthrough

Walkthrough

This PR bumps package versions from 0.1.321 to 0.1.322 across multiple packages and introduces a new Instagram reel scraper Apify actor. The scraper supports configurable targets, transcript extraction, engagement metrics, and video download options. It integrates into the Apify registry and Instagram tool with a new scrapeReels operation and increases timeout limits for long-running actors.

Changes

Cohort / File(s) Summary
Package Version Bumps
packages/bubble-core/package.json, packages/bubble-runtime/package.json, packages/bubble-scope-manager/package.json, packages/bubble-shared-schemas/package.json, packages/create-bubblelab-app/package.json, packages/create-bubblelab-app/templates/basic/package.json, packages/create-bubblelab-app/templates/reddit-scraper/package.json
Version incremented from 0.1.321 to 0.1.322 across all packages and template dependencies.
Instagram Reel Scraper Schemas
packages/bubble-core/src/bubbles/service-bubble/apify/actors/instagram-reel-scraper.ts
Introduces InstagramReelScraperInputSchema (validates targets, result limits, date filters, exclusions) and InstagramReelScraperItemSchema (extends InstagramPostSchema with reel-specific fields: owner metadata, engagement metrics, CDN/download URLs, transcript, comments, coauthors, musicInfo).
Apify Integration
packages/bubble-core/src/bubbles/service-bubble/apify/apify-scraper.schema.ts, packages/bubble-core/src/bubbles/service-bubble/apify/apify.ts
Registers new apify/instagram-reel-scraper actor in APIFY_ACTOR_SCHEMAS registry with metadata and schemas. Increases actor timeout maximum from 500000ms to 1800000ms (30 minutes) and updates timeout description with explicit limits.
Instagram Tool Enhancement
packages/bubble-core/src/bubbles/tool-bubble/instagram-tool.ts
Adds new scrapeReels operation with dedicated input/output schemas. Implements handleScrapeReels to invoke Apify reel scraper, invoke extractReels for data transformation to new InstagramReel type, and compute totalPosts from scraped reels. Expands tool description and adds reel-specific input validation.

Sequence Diagram

sequenceDiagram
    actor User
    participant InstagramTool
    participant ApifyActor as Apify Actor<br/>(instagram-reel-scraper)
    participant InstagramService as Instagram Service
    
    User->>InstagramTool: scrapeReels(targets, options)
    InstagramTool->>InstagramTool: Validate input (targets required)
    InstagramTool->>ApifyActor: Execute with targets,<br/>date/pin/download filters,<br/>timeout
    ApifyActor->>InstagramService: Fetch reel data
    InstagramService-->>ApifyActor: Raw reel items<br/>(posts, engagement, video URLs, transcript)
    ApifyActor-->>InstagramTool: Structured actor output
    InstagramTool->>InstagramTool: extractReels()<br/>Transform to InstagramReel type
    InstagramTool-->>User: Return {reels, scrapedTargets,<br/>totalPosts, success/error}
Loading

Estimated Code Review Effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly Related PRs

Poem

🐰 Hop, hop, reels now scrape with ease,
Apify actors dance and please,
Transcripts, shares, and MP4s gleam,
Instagram data flows like a dream!

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ig_reel

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant