Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.
/ ig-saved-dump Public archive

Dump saved Instagram posts

Notifications You must be signed in to change notification settings

italankin/ig-saved-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  1. Clone this repository
  2. (Optional) Create Python virtual environment
  3. Install required packages
$ pip install -r requirements.txt
  1. Disable 2FA on your Instagram account
  2. Run
$ python main.py your_username

You will be asked for your password. If you have a valid cookie (cookies/your_username_settings.json), you can leave the password blank.

  1. Wait for data to download

Structure

|-- cookies
+-- saved
    +-- username
        |-- posts
        |   |-- author_username_1
        |   |   |-- post_1_id
        |   |   |   |-- post data, such as photos, videos, captions
        |   |   |-- post_2_id
        |   |   |-- ...
        |   |-- author_username_2
        |   |   |-- post_1_id
        |   |-- ...
        +-- json
            |-- page_0.json
            |-- page_1.json
            |-- ...

Cookies are saved in cookies directory under user's name, e.g. cookies/username_settings.json. They are used for future runs to avoid account block.

All saved data is stored in saved, e.g. saved/username:

  • posts - contains actual saved posts data, grouped by author
  • json - contains raw JSON responses from Instagram API. You can force script to use this data by passing --from-cache argument (to avoid calling the API, useful for subsequent runs)