Skip to content

Instantly share code, notes, and snippets.

@pedrovasconcellos
Last active February 9, 2021 16:16
Show Gist options
  • Save pedrovasconcellos/04e1bc6e067f68fc7f76819aaf98e3cc to your computer and use it in GitHub Desktop.
Save pedrovasconcellos/04e1bc6e067f68fc7f76819aaf98e3cc to your computer and use it in GitHub Desktop.
Get Instagrams I Follow
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