Skip to content

Add configurable caption length and full caption metadata - #1

Open
skvrahul wants to merge 1 commit into
parthmax2:mainfrom
skvrahul:feat/configurable-caption-length
Open

Add configurable caption length and full caption metadata#1
skvrahul wants to merge 1 commit into
parthmax2:mainfrom
skvrahul:feat/configurable-caption-length

Conversation

@skvrahul

@skvrahul skvrahul commented Aug 2, 2026

Copy link
Copy Markdown

Summary

  • Adds caption_max_length to InstagramDownloader, download(), and get_info() (default 100 preserves current behavior; None keeps the full caption)
  • Exposes a new caption field in metadata with the untrimmed Instagram caption text
  • Documents the schema/API change and adds unit tests for trimming and unlimited mode

Motivation

Instagram captions often contain place names, hashtags, and recommendations beyond the first 100 characters. Library callers that need the full caption for indexing or analysis currently lose that data even though it is available from the API/GraphQL responses.

Test plan

  • pytest (140 tests)
  • Verified caption_max_length=None returns full caption on a real public reel

Made with Cursor

Library callers can pass caption_max_length=None to receive untrimmed
captions in both title and the new caption field. Default behavior
remains a 100-character title trim for backward compatibility.

authored using cursor ai

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

@skvrahul is attempting to deploy a commit to the parthmax2's projects Team on Vercel.

A member of the Team first needs to authorize it.

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