I'm trying to export the following list of my Instagram account on the desktop using Google Chrome but console.log is not working.
Once logged into my account, I hit Ctrl+Shift+I to bring up the dev console. I then used the Toggle Device Toolbar to change my layout to Galaxy S5. Clicked on the Following button and scrolled all the way down to load all users. Inside the console, I used the code below and it works fine showing an alert popup one after another for the number of users I'm following.
var igusers = document.getElementsByClassName("FPmhX notranslate _0imsa ");
for (var i = 0; i < igusers.length; i++) {
var igusers_name = igusers[i].innerText;
alert(igusers_name);
}
But I can't seem to use console.log(). I'm trying to have it display in a way that I can copy everything and paste it in an excel sheet.