Fully automated workflow that scrapes, enriches, and removes Instagram saved posts in a single run.


reels_library.py


Example Output

After running the script on “interesting history” group:

All posts are now ready for AI queries like “find portuguese reels about lula and elections”


Workflow

flowchart TD
    A[Run script] --> B[Browser popup opens]
    B --> C[Login to Instagram manually]
    C --> D[Press Enter to continue]
    D --> E[Select saved group 1-11]
    E --> F[Enter number of posts to process]
    F --> G[Processing loop]

    G --> H[Scrape post data]
    H --> I[AI enrichment]
    I --> J[Untag from saved]
    J --> K{More posts?}

    K -->|Yes| G
    K -->|No| L[Updated md]

Processing time: ~5-10 seconds per post


Todos