Meerakat
Elite Member
- Sep 9, 2019
- 1,505
- 1,695
It is just a simple script that scrapes URL of each and every Instagram profile and tries to find out email from the user's biography in their profile feed. It hasn't hit any rate limits so far, at-least for now.
Requirements:
1. Basic NodeJS knowledge (you need to install some modules)
Code:
Make a .txt file called urls.txt and put all the profile urls there. Example: https://instagram.com/xxx (make sure there is a line gap between each link) and the script will find emails from their biography (if they have one). All the emails will be written in a file called "emails.txt".
Profile scraper coming soon
Requirements:
1. Basic NodeJS knowledge (you need to install some modules)
Code:
Code:
let fs = require('fs-extra'),
ig = require('instagram-scraping');
let extractemail = function (text) {
return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi);
}
let array = fs.readFileSync('./urls.txt', 'utf8').split('\n');
array = array.filter(function (str) {return /\S/.test(str)});
let wait = ms => new Promise((r, j) => setTimeout(r, ms)),
arr = [];
const start = (async() => {
for (i = 0; i < array.length; i++) {
let result = await ig.scrapeUserPage(array[i])
wait(2000)
let email = extractemail(result.user.biography);
arr.push(`${email}|${array[i]}`) //format is email:profile-link
}
const output = arr.join("\n");
fs.writeFile("./emails.txt", output, function (err) {
console.log("Scraped :)")
});
})()
Make a .txt file called urls.txt and put all the profile urls there. Example: https://instagram.com/xxx (make sure there is a line gap between each link) and the script will find emails from their biography (if they have one). All the emails will be written in a file called "emails.txt".
Profile scraper coming soon