Last active
September 22, 2018 18:32
-
-
Save pmcalabrese/cea2c3137f98991950d6b0e334919966 to your computer and use it in GitHub Desktop.
Script that can run in the browser for extract user information (developed for Alessandro)
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
let usernames = ["alexeidos", "dilettaleotta"] | |
const pa = usernames.map((username) => { | |
return fetch("https://www.instagram.com/"+username+"/?__a=1") | |
.then((data) => { return data.json() }) | |
.then((data) => { return `${data.graphql.user.full_name}, ${data.graphql.user.business_email}` }) | |
}) | |
Promise.all(pa).then((data) => { | |
console.log(data.join("\n")) | |
}); |
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
let usernames = prompt("usernames (comma spaced)").split(",").map( username => username.trim() ); | |
const pa = usernames.map((username) => { | |
return fetch("https://www.instagram.com/"+username+"/?__a=1") | |
.then((data) => { return data.json() }) | |
.then((data) => { return `${data.graphql.user.full_name}, ${data.graphql.user.business_email}` }) | |
}) | |
Promise.all(pa).then((data) => { | |
console.log(data.join("\n")) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment