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

Free way to scrape Facebook emails. (4,500+ emails in 5 minutes)

Discussion in 'FaceBook' started by jasgrey, Aug 12, 2014.

  1. jasgrey

    jasgrey Junior Member

    Joined:
    May 27, 2014
    Messages:
    166
    Likes Received:
    229
    uid4.png


    I've been more of a info-leech here than a contributor. Always asking questions with little to give back. So, I spent the last three hours figuring out how to do this and now I want to show all of you so that you can do it to and I can be of a little importance to this forum! (Please thank me if it helps you out!)


    I found out in this thread that Facebook now allows you to use user's usernames to send emails directly to their private emails. I don't have money for a scraper, though, so I had to figure out how to scrape these emails manually. I also tested it on my own username and a UID of a different account of mine and found that both UIDs@facebook and usernames@facebook will work.

    How long this will take is dependent on how many usernames you are scraping. Once I had this figured out, I went and scraped 4,500 emails and went through all of these steps in 5 minutes. I figure you could get 20,000+ in 10 or 15 minutes.



    So here we go.



    1. Get Notepad++. We're going to need it for this.

    2. Go to the facebook Group that you want to scrape usernames from.

    3. Click on the "members" tab.

    4. Using the "end" button on your keyboard, go to the bottom of the page and click the "show more" button
    at the end of the users list. Keep doing this until the list is completely shown and there is no "show more" button.
    If you are on a group with thousands of members, this could take a little while. I think it shows 100ish more
    users each time you click the button.

    5. Right click anywhere and select "inspect element." This will bring up the console. There is a place in the console
    that you can type things in. Paste this code into there: urls = $$('a'); for (url in urls) console.log ( urls.href )[/FONT][/COLOR][COLOR=#00000...img.org/image/3p6fn7vlz/"]Here is an example. Delete everything that comes before them
    and everything that comes after all the user URLs.

    10. Get rid of all the unnecessary links like this: hxxps://w3.facebook.com/groups/484417441586838/members/#VM2246:2
    by going using the "find and replace" function. Replace them all with nothing. Just leave the "replace with" space blank.

    11. Get rid of hxxps://w3.facebook.com/ on each user URL by using the find and replace function.

    12. Get rid of the ?fref=grp_mmbr_list VM2246:2 at the end of each user URL by using the find and replace function.
    Your file should now look like this. A username, a blank line, a line with 2 in it, then a username, continuously.

    13. Go to edit>line operators>remove empty lines.

    14. Paste the result with no blank lines back into your Notepad++. Now we want to remove every other line that has a
    random 2 in it. We can do this very easily using Notepad++.

    15. Okay. Your first line should be a URL. Place your cursor on line 2, which should contain the number 2. Click on the "Macro" tab
    at the top of the window and to the right. Click "start recording macro". Now, using your keyboard, press the down arrow twice,
    and the delete button once.

    16. Click on the Macro tab again and stop recording.

    17. Click the Macro tab again and select "Run a macro multiple times." Then select "run until the end of file" and press "run." This
    will go through and delete every other line. (The lines with 2 in them.) Now, edit>line operators>remove empty lines.

    18. Now we have all of our usernames without all the bullshit. One more problem though, we still have a couple URLs in there that
    are still in this format: profile.php?id=100000456271841&fref=grp_mmbr_listVM1543:2 --But that's okay, because we can easily
    remove the "profile.php?id=" and "&fref=grp_mmbr_listVM1543:2" by using the replace function, and replacing them with nothing.

    19. Now we have to add @facebook to the end of each line. This is easy. Just go to the replace function, in the "find what" box put $
    and in the replace with box put "@facebook.com". Make sure it's set to "regular expression at the bottom, and click replace all. Here is
    a picture for you to see what I'm talking about.



    Hey, we're done! I now have 4,500 Facebook emails!

    Please thank this post if it helped you! And, if you appreciate it enough, maybe you can explain to me how I can go about using these 4,700 emails without having to spend big bucks on some $300/mo platform. -_- I know nothing of email marketing.
     
    • Thanks Thanks x 178
    Last edited: Aug 12, 2014
  2. sbndnb

    sbndnb Regular Member

    Joined:
    Dec 1, 2013
    Messages:
    480
    Likes Received:
    337
    Location:
    yurop
    Great share OP, I personally use Ulead but this will help a lot of people that are just getting into facebook marketing.
     
  3. anonydev171

    anonydev171 Regular Member

    Joined:
    May 18, 2013
    Messages:
    270
    Likes Received:
    250
    Yo man great guide!

    Thank you so much,

    Best regards,

    AnonyDev171

    edit: i get this "undefined" after pasting the code into the console
     
    Last edited: Aug 12, 2014
  4. justinf10000

    justinf10000 Newbie

    Joined:
    Dec 18, 2013
    Messages:
    16
    Likes Received:
    4
    Great share OP!

    Just to add something

    Step 13 (going to URL to remove lines) can be replaced by using Edit->Line Operations ->Remove Empty Lines

    So all of this can be done in notepad++
     
    • Thanks Thanks x 2
  5. jasgrey

    jasgrey Junior Member

    Joined:
    May 27, 2014
    Messages:
    166
    Likes Received:
    229
    I've never used Notepad++ before this. I had to learn all of this in the process because I really wanted to be able to scrape these usernames! But thanks for the tip. I'll edit so it's easier for people.
     
  6. themob

    themob BANNED BANNED

    Joined:
    Jul 28, 2013
    Messages:
    376
    Likes Received:
    40
    If you send messaged to this mails, they will get in inbox? and what kind of message will you send to monetize for example? don't tell me cpa offer
     
  7. anonydev171

    anonydev171 Regular Member

    Joined:
    May 18, 2013
    Messages:
    270
    Likes Received:
    250
    I get this "undefined" after pasting the code into the console, any help OP?

    Best Regards.

    Edit: nevermind managed to work these out easily with macros, copy url expert and excel, thanks OP!
     
    • Thanks Thanks x 1
    Last edited: Aug 12, 2014
  8. T0NYS

    T0NYS Jr. VIP Jr. VIP Premium Member

    Joined:
    Jun 21, 2014
    Messages:
    1,293
    Likes Received:
    997
    Gender:
    Male
    Thanks for the great share OP
     
  9. TheUnborn

    TheUnborn Elite Member

    Joined:
    Feb 21, 2013
    Messages:
    3,041
    Likes Received:
    1,672
    Occupation:
    SEO Consultant
    Home Page:
    Thanks,will try this now,excellent share
     
  10. Jizzuz

    Jizzuz Newbie

    Joined:
    Aug 12, 2014
    Messages:
    1
    Likes Received:
    1
    Does this really work, I tried sending an e-mail to myself using the fb email and it didn't get forwarded to my primary e-mail, nor did I received sth in my fb inbox.
     
    • Thanks Thanks x 1
  11. sashablack

    sashablack Elite Member

    Joined:
    Jan 8, 2010
    Messages:
    3,697
    Likes Received:
    2,050
    Gender:
    Male
    this is cool for manual work and for those that cannot afford to pay for A+ software :)
     
  12. abhi007

    abhi007 Jr. VIP Jr. VIP

    Joined:
    Aug 31, 2010
    Messages:
    5,305
    Likes Received:
    3,741
    Location:
    snip.li/TubH
    killer share dude...good for guys who cant afford to buy a scraper :)
     
  13. linuxsmtp

    linuxsmtp Regular Member

    Joined:
    Feb 13, 2014
    Messages:
    455
    Likes Received:
    65
    Location:
    Philippines
    another good share and perfect with this method.Another goldmine for email marketers.
     
  14. Izzma

    Izzma Regular Member

    Joined:
    Jan 29, 2012
    Messages:
    293
    Likes Received:
    197
    Location:
    Canada
    Just scraped ~500 emails. @OP if you want to send emails out for free, signup on multiple email marketing platforms using their free trail. Have a look at this thread here, might help.
     
  15. goel.aman125

    goel.aman125 Junior Member

    Joined:
    Jul 12, 2013
    Messages:
    155
    Likes Received:
    114
    Location:
    Internet :p
    Is there anyone who is able to send emails to
    @facebook.com
    in bulk?
     
  16. meCODEX

    meCODEX Registered Member

    Joined:
    Jun 23, 2011
    Messages:
    71
    Likes Received:
    9
    goood , it's time to bank now :)
    thanks man !
     
  17. MixerDJ

    MixerDJ Regular Member

    Joined:
    Nov 20, 2012
    Messages:
    374
    Likes Received:
    147
    good share mate gonna try it out
     
  18. Roshaen

    Roshaen Elite Member

    Joined:
    Sep 24, 2012
    Messages:
    2,238
    Likes Received:
    1,351
    Location:
    Please Pray For My DAD
    Good One.

    Thanks.
     
  19. J-S-T

    J-S-T Jr. VIP Jr. VIP

    Joined:
    Jul 27, 2013
    Messages:
    1,139
    Likes Received:
    582
    Gender:
    Male
    Location:
    Fb and BHW
    This is Awesome and Deserves a Thanks...I tried all the steps you have mentioned and it works perfect... Thumbs up for Explaining each steps. Will help Many people Here...
     
  20. srabantipaul1983

    srabantipaul1983 Newbie

    Joined:
    Jan 18, 2013
    Messages:
    48
    Likes Received:
    6
    Occupation:
    Jobless
    Location:
    India
    This is Really Awesome and Detailed Instructions.. Love this.. :)