Last active
February 9, 2021 16:16
-
-
Save pedrovasconcellos/04e1bc6e067f68fc7f76819aaf98e3cc to your computer and use it in GitHub Desktop.
Get Instagrams I Follow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function download(content, fileName, contentType) { | |
| var a = document.createElement("a"); | |
| var file = new Blob([content], {type: contentType}); | |
| a.href = URL.createObjectURL(file); | |
| a.download = fileName; | |
| a.click(); | |
| } | |
| function getInstagramsIFollow(amount) { | |
| let instagrams = ''; | |
| for (var i = 0; i <= amount; i++) { | |
| instagrams += document.getElementsByClassName("FPmhX notranslate _0imsa ")[i].innerText + ';'; | |
| } | |
| return instagrams; | |
| } | |
| let instagrams = getInstagramsIFollow(3501); | |
| download(instagrams, 'instagrams.txt', 'text/plain'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment