Skip to content

Modernize packaging#7

Merged
simonseo merged 12 commits intomasterfrom
modernize-packaging
Feb 23, 2026
Merged

Modernize packaging#7
simonseo merged 12 commits intomasterfrom
modernize-packaging

Conversation

@simonseo
Copy link
Copy Markdown
Owner

No description provided.

Support --browser and --cookie-file flags to auto-extract Instagram
session cookies from Chrome, Firefox, Safari, and other browsers via
browser_cookie3. Makes -u/-p optional when browser session is available.
Instagram removed edge_hashtag_to_media from the REST API response,
breaking instaloader's deprecated get_posts() method (issue #2547).
Switch to the GraphQL-backed get_posts_resumable() which still works.
Also reorder except clauses so QueryReturnedNotFoundException is
caught before its parent ConnectionException.
The unsupported-browser test called _get_browser_cookies directly,
which hits ImportError before reaching the ValueError check when
browser_cookie3 is not installed (e.g. in CI). Mock sys.modules
so the import succeeds and the browser validation logic is tested.
@simonseo simonseo merged commit 0952fd7 into master Feb 23, 2026
5 checks passed
@simonseo simonseo deleted the modernize-packaging branch February 23, 2026 23:40
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