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