This script will download photos, videos, multiple photos post directly from instagram API endpoint
It's only need public instagram account
and query_hash
to run it
To get query_hash
is pretty simple:
- Log in to Instagram on your browser
- Open random public account
- Open your browser dev tools
- Select
Network
tab - Select
XHR
to see all incoming request - You will see list of requests, do not trigger any event, just scroll down until it fetch the next post request
- Find new request that contains
query_hash
(usually on the third call)
To get started, you need to install python
- Open your terminal
- Clone this repository:
git clone https://github.com/maulanaahmadarif/archive-your-ig.git
cd archive-your-ig
- Run the script
python ig.py {public_ig_account} {query_hash}
- Congratulations, the script is downloading