Migration to JS and chrome extension - #97
Open
alvaroscelza wants to merge 10 commits into
Open
alvaroscelza wants to merge 10 commits into
alvaroscelza wants to merge 10 commits into
Conversation
alvaroscelza
commented
Apr 7, 2026
- Project was migrated to a Chrome extension (MV3) so logic runs in the Instagram tab with sessionStorage and injected page_runner.js. Thus, we avoid handling credentials.
- Unfollow behavior was simplified (e.g. no separate “verified-only” path); whitelist and progress/logging were integrated into the popup, with polling so reopening the popup still reflects tab state.
- Friendship loading was made more resilient (shorter / simpler retry strategy vs long fixed backoffs).
- Rate limiting & pacing were tuned several times: random delays between profile fetch and unfollow, pagination gaps, a global requests-per-minute cap, and a long pause every 15 successful unfollows (eventually 10 minutes).
- Instagram returning HTML (HTTP 200) instead of JSON on unfollow is detected; the run stops with a clear outcome instead of blindly retrying.
- Session user detection was adjusted to rely more on Instagram’s web form data when needed, instead of the previous current_user-centric path.
- Ignoring more things, including .env file. - Added claude rules - Removed dockerfile support, too small a project to really need it. - Refactor of main .py file to follow OOP, clean code, and other stuff... see CLAUDE rules. - Migrated from pip to UV. - Removed all github files, not needed.
…trying on getting "html" error. We know that happens when ig gets angry at us :)
Author
|
@tuxity thanks for the original code :) Heads up: it takes around 90 minutes to unfollow 100 users due to waiting 😖 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.