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

Filter emails?

Discussion in 'Black Hat SEO' started by blommas, Jun 20, 2014.

  1. blommas

    blommas Senior Member

    Joined:
    Jun 14, 2014
    Messages:
    864
    Likes Received:
    143
    Location:
    Heaven
    Hey, just got my hands on 100k emails from facebook users, but in the list there are different information that only the email.
    How can I filter it, so I ONLY have the emails?
     
  2. E=MC²

    E=MC² Junior Member

    Joined:
    Apr 12, 2013
    Messages:
    176
    Likes Received:
    183
    Notepad++ replace option can do the trick.
     
  3. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    What is the format of your data?
     
  4. blommas

    blommas Senior Member

    Joined:
    Jun 14, 2014
    Messages:
    864
    Likes Received:
    143
    Location:
    Heaven
    How exactly can I do that?

    Random Text : email address
    Password: example
     
  5. IMCapitalist

    IMCapitalist Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 21, 2014
    Messages:
    1,090
    Likes Received:
    60
    Location:
    Google Universe
  6. blommas

    blommas Senior Member

    Joined:
    Jun 14, 2014
    Messages:
    864
    Likes Received:
    143
    Location:
    Heaven
    what do you mean?
     
  7. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    Do you just need the email address and not anything else? A bit of php can do it for you.

    Save the following code as a php file and run it directly. your file's name should be file.txt and it should be at the same folder where your php file is, if you don't make any changes to the script.

    set_time_limit(0) prevents script timeout. So it should work for a very large file too. Just wait patiently till the script does it's job.
    Code:
    
    <?php
    
    error_reporting(E_ALL);
    set_time_limit(0);
    
    $content = file_get_contents('file.txt');
    $pattern = "/[a-z0-9_\-\+]+@[a-z0-9\-]+\.([a-z]{2,3})(?:\.[a-z]{2})?/i";
    preg_match_all($pattern,$content,$emails);
    $emails = @implode(',',$emails[0]);
    header('Content-type: text/csv');
    header('Content-Disposition: attachment; filename="emails_export_'.strtotime("now").'.csv"');
    echo $emails;
    
    
     
  8. techblog

    techblog Jr. VIP Jr. VIP

    Joined:
    Feb 12, 2013
    Messages:
    1,222
    Likes Received:
    383
    Occupation:
    Freelancer
    Location:
    Email Server
    or you could just use an email cleaner , most of them free....
     
  9. blommas

    blommas Senior Member

    Joined:
    Jun 14, 2014
    Messages:
    864
    Likes Received:
    143
    Location:
    Heaven
    how do I open the .php file? no programs are working :S
     
  10. PrestonMilton

    PrestonMilton BANNED BANNED

    Joined:
    Jun 21, 2014
    Messages:
    41
    Likes Received:
    4
    I think mailchimp helo filter emails free of charge.
     
  11. blommas

    blommas Senior Member

    Joined:
    Jun 14, 2014
    Messages:
    864
    Likes Received:
    143
    Location:
    Heaven
    Trying them now. They need to review the list, but there are "passwords" for accounts, so they might decline the list.
     
  12. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    My goodness, don't you have a server or something? :eek:
    You can do it on your local machine too. Download Wamp server and set it up and then follow this tutorial:

    http://www.homeandlearn.co.uk/php/php1p3.html
     
    • Thanks Thanks x 1
  13. blommas

    blommas Senior Member

    Joined:
    Jun 14, 2014
    Messages:
    864
    Likes Received:
    143
    Location:
    Heaven
    isnt it possible without a sever?
     
  14. E=MC²

    E=MC² Junior Member

    Joined:
    Apr 12, 2013
    Messages:
    176
    Likes Received:
    183
    Yes it is, and he just told you how: Use Wamp server.
     
    • Thanks Thanks x 1
  15. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    [​IMG]
     
  16. blommas

    blommas Senior Member

    Joined:
    Jun 14, 2014
    Messages:
    864
    Likes Received:
    143
    Location:
    Heaven
    haha xD new to all this kind of stuff..
     
  17. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    Hmm that was for humor. There's a first time for everything. Try it out it should work, tested on my localhost. Best of luck.
     
  18. EpicNetwork

    EpicNetwork Newbie

    Joined:
    May 15, 2014
    Messages:
    18
    Likes Received:
    0
    Notepad++ replace option can do the trick. )? what rlly
     
  19. jerrymc

    jerrymc Regular Member

    Joined:
    May 7, 2014
    Messages:
    444
    Likes Received:
    68
    Location:
    Earth
    http://marketing101.ws/free_email_extractor_tool.html <----- Check this website and use their free email extractor tool. Watch the tutorial first on that same link.

    This tool will help you filter the emails in seconds and I guarantee it's 100% working. Thanks! :)
     
  20. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,062
    Likes Received:
    2,872
    Gender:
    Male
    Not impossible really. If you do a regex search in NPP with:
    [a-z0-9_\-\+]+@[a-z0-9\-]+\.([a-z]{2,3})(?:\.[a-z]{2})?
    You will get those emails matched. The only challenge is to export them properly ;)