1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

scrape mails from a text file?

Discussion in 'Making Money' started by Danman123, Apr 7, 2017.

  1. Danman123

    Danman123 Regular Member

    Joined:
    Jul 23, 2016
    Messages:
    201
    Likes Received:
    37
    Gender:
    Male
    Hey guys. i have a file wit 10million emails in it. only problem is, is that there's alot of unnecesary text in the file aswell. Is there a possibillity to extract emails from textfiles?
     
  2. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    7,297
    Likes Received:
    8,262
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    There are numerous ways to do it.

    (1) Depending on the format of your source, you can use Search and Replace with text editors like Notepad++ or others like in this video:

    There are more guides like this on Youtube.

    (2) Then there's a tool called Email Extractor Lite: http://clients.surf7.net/downloads.php?action=displaycat&catid=2
    Hosted version can be found for instance here: https://eel.surf7.net.my/
    Too big texts will break the browser though.

    (3) Another tool to try: http://free.groupfetch.com/products/egrab/index.php

    (4) Yet another one: http://www.mediafire.com/file/z7hisdyjq8vuk9f/Maxprog_Email_Verifier_and_Extractor.rar
    https://www.virustotal.com/hu/file/...8af80cb0c2bfd399da9d0bbe/analysis/1491552671/
     
    Last edited: Apr 7, 2017
  3. Danman123

    Danman123 Regular Member

    Joined:
    Jul 23, 2016
    Messages:
    201
    Likes Received:
    37
    Gender:
    Male
    Pmed you!
     
  4. laur.laurix

    laur.laurix Power Member

    Joined:
    May 8, 2013
    Messages:
    702
    Likes Received:
    262
    Occupation:
    Reverse Engineering Maniac
    Location:
    Mars
    use scrapebox. import & remove urls from file not containing @.
     
  5. ryangineer

    ryangineer Newbie

    Joined:
    Mar 13, 2017
    Messages:
    26
    Likes Received:
    2
    Gender:
    Male
    You can use Node.js as well. create a bot and just run this function:

    function extractEmails(str){
    if (str.match(/([a-zA-Z0-9._-][email protected][a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi)){
    var matches = str.match(/([a-zA-Z0-9._-][email protected][a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
    for (var m=0;m<matches.length;m++){
    if (matches[m].substring(0,1) == '-'){
    matches[m] = matches[m].substring(1);
    }
    }
    return matches.join(',');
    } else {
    return null;
    }
    return email;
    }