Tools [Tampermonkey] Instagram Profile Downloader

backwards

Tier 2 Sub
Jan 4, 2023
31
1
210
277
0fya082315al84db03fa9bf467e3.png
itskaslol-instae98a1b7d7ece1bfe.png


Installation:
1. Install the Tampermonkey browser extension:
Please, Log in or Register to see links and images
Please, Log in or Register to see links and images
Please, Log in or Register to see links and images

2. Important: Under the tampermonkey settings, set the Config mode to Advanced and enable the Browser API in Download Mode (BETA).
3. Copy the contents of
Please, Log in or Register to see links and images

4. Create a new Tampermonkey script and paste the contents you copied in step 3 (dist/build.user.js).
5. Save the script (Ctrl+S).
6. Visit any profile to verify the installation (Download button should appear next to the Follow or Following button).

Output:
Each profile can contain the following directories based on its contents:

- Images - All images are written to this directory.
- Videos - All videos are written to this directory.

Chrome
For Chromium based browsers, the files are not zipped and written directly to Instagram folder.

Example: The profile
Please, Log in or Register to see links and images
will be downloaded to:

Default Browser Download Folder/Instagram/itskaslol

Firefox
For some reason, Firefox doesn't allow writing to custom directories so the profile is zipped.

Example: The profile
Please, Log in or Register to see links and images
will be downloaded to:

Default Browser Download Folder/itskaslol.zip

Limitations:
1. When navigating to a different profile, the download button does not appear. Simply refresh the page and the download button should appear. This will be addressed soon.

GitHub Repo:
Please, Log in or Register to see links and images


More details can be found in the GitHub Repo.

- Tested this on Chrome and Firefox with 7 profiles and it successfully downloaded every post for each profile.
- No IP blocks / wasn't logged out once.
 
Last edited by a moderator:

nire5

Superfan
Nov 8, 2022
22
608
827
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
update line 234 and 262 with what I posted where it is different, or use this pastebin to update the script, copy and paste it over into tampermonkey. you can diff the two if you want to see where the changes are.

Please, Log in or Register to see links and images

the diff can be seen here

=================================================================== --- Current Version +++ New Version @@ -230,9 +230,9 @@ }, }; document.addEventListener('DOMContentLoaded', async () => { const headerSelector = - 'div[id^="mount_"] > div > div > div > div > div > div > div > div > div > section > main > div > header > section > div'; + 'div[id^="mount_"] > div > div > div > div > div > div > div > div > div > div > section > main > div > header > section > div'; let header = document.querySelector(headerSelector); while (!header) { @@ -258,9 +258,9 @@ const after = document.querySelector(`${headerSelector} > div > div > div`); const btnClass = - 'x1i10hfl xjqpnuy xa49m3k xqeqjp1 x2hbi6w x972fbf xcfux6l x1qhh985 xm0m39n xdl72j9 x2lah0s xe8uvvx xdj266r x11i5rnm xat24cr x1mh8g0r x2lwn1j xeuugli xexx8yu x18d9i69 x1hl2dhg xggy1nq x1ja2u2z x1t137rt x1q0g3np x1lku1pv x1a2a7pz x6s0dn4 xjyslct x1lq5wgf xgqcy7u x30kzoy x9jhf4c x1ejq31n xd10rxx x1sy0etr x17r0tee x9f619 x1ypdohk x78zum5 x1f6kntn xwhw2v2 x10w6t97 xl56j7k x17ydfre x1swvt13 x1pi30zi x1n2onr6 x2b8uid xlyipyv x87ps6o x14atkfc xcdnw81 x1i0vuye x1gjpkn9 x5n08af xsz8vos'; + 'x1i10hfl xjqpnuy xa49m3k xqeqjp1 x2hbi6w x972fbf xcfux6l x1qhh985 xm0m39n xdl72j9 x2lah0s xe8uvvx xdj266r x11i5rnm xat24cr x1mh8g0r x2lwn1j xeuugli xexx8yu x18d9i69 x1hl2dhg xggy1nq x1ja2u2z x1t137rt x1q0g3np x1lku1pv x1a2a7pz x6s0dn4 xjyslct x1lq5wgf xgqcy7u x30kzoy x9jhf4c x1ejq31n xd10rxx x1sy0etr x17r0tee x9f619 x1ypdohk x78zum5 x1i0vuye x1f6kntn xwhw2v2 x10w6t97 xl56j7k x17ydfre x1swvt13 x1pi30zi x1n2onr6 x2b8uid xlyipyv x87ps6o x14atkfc xcdnw81 x1gjpkn9 x5n08af xsz8vos'; const btnDownload = document.createElement('div'); btnDownload.href = '#'; btnDownload.className = after.getAttribute('class');
 

Whoreder

Bathwater Drinker
Jul 15, 2023
103
6,107
1,022
0fya082315al84db03fa9bf467e3.png
1.0.1:
Please, Log in or Register to see links and images


- Fixes download button not showing up.

Note: Just downloaded a couple of profiles without any issues. Make sure you're logged in and wait a couple of minutes between downloading profiles (not required, but wouldn't hurt to let Instagram know you're not scraping).
 
  • Like
Reactions: Beakwood and xando

vietcumie

Tier 2 Sub
May 14, 2022
14
237
434
0fya082315al84db03fa9bf467e3.png
For some reason, when i press the download button, it would just stay at resolved "the total amount of post" and that is it. Is there any fixes for this? I have tried both on google chrome and brave as well
 

CLENYCLEB

Bathwater Drinker
Mar 14, 2022
138
2,272
1,249
0fya082315al84db03fa9bf467e3.png
Worked great for first profile, tried on second and third profile immediately after and receive notifications of 'resolving posts' however no download ensues.
 

padgame

Tier 2 Sub
Mar 23, 2022
10
185
384
0fya082315al84db03fa9bf467e3.png
Does this method still work? I dont see a download button appear after install.
 

Beakwood

Bathwater Drinker
Mar 11, 2022
631
5,473
1,217
0fya082315al84db03fa9bf467e3.png
It's only one way I have seen working so far without being disabled. Unfortunately, it's using a closed source program. As some open source programs are getting accounts banned/disabled. I don't like having to use the program, since I had so much freedom with open source, but it does what I need plus a little more.
(T)(O)(K)(K)(I)(T)