Instagram Data Extraction v1

Extracts Instagram follower and following profiles, saving it as JSON with names and profile links.

By Bohdan KovtunenkoUpdated Nov 11, 2024201 installs

What it does

  1. 01Calculatedelete
  2. 02Ask{{input}} · Send the Instagram profile as @username or username, the link as https://www.instagram.com/username/, or start processing this tab.
  3. 03GroupIf {{input}} = tab
  4. 04Run JavaScriptlet regex = /instagram\.com\/[\w\.]+(?:\/.*)?$/;
  5. 05Say⛔️ The webpage is not suitable for processing. Please start on a new page or provide me with a username or link.
  6. 06JumpASK FOR INPUT
  7. 07Run JavaScriptlet urlPattern = /^https:\/\/www\.instagram\.com\/([\w\.]+)/;
  8. 08JumpEXTRACT STATS
  9. 09GroupIf {{input-option}} = $custom
  10. 10Run JavaScriptlet urlPattern = /^https:\/\/www\.instagram\.com\/([\w\.]+)/;
  11. 11Group
  12. 12Say⏳ Navigating to @{{username}}'s profile.
  13. 13Open pagehttps://www.instagram.com/{{username}}/
  14. 14Wait2s
  15. 15Run JavaScriptlet text = document.querySelector('header section ul').innerText;
  16. 16Ask{{count}} · @{{username}} has {{stats}}. How many followers/following profiles should be extracted? Pick an option or enter a number.
  17. 17Ask{{option}}
  18. 18Group
  19. 19GroupIf {{option}} != following
  20. 20Say⏳ Extracting followers' profiles, wait a bit.
  21. 21Open pagehttps://www.instagram.com/{{username}}/followers/
  22. 22Controlshow
  23. 23Waitidle
  24. 24Run JavaScriptlet linkOpened = !!document.querySelector('div[role="dialog"]');