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

PHP Scrapin' some emails..

Discussion in 'Black Hat SEO' started by slipchamber, Nov 8, 2010.

  1. slipchamber

    slipchamber Registered Member

    Joined:
    Jun 25, 2010
    Messages:
    93
    Likes Received:
    16
    so i got the whole scraping thing down when i know what is surrounding my intended target, but how would i go about looking for @ signs and then capturing everything before and after the @ and stopping at the space either way? possible? kthxbai
     
  2. Grizzy

    Grizzy Senior Member

    Joined:
    Nov 11, 2008
    Messages:
    919
    Likes Received:
    999
    Probably something like this:
    PHP:
    preg_match_all('/([\w\d\.\-\_]+)@([\w\d\.\_\-]+)/mi'$string$matches);
     
  3. slipchamber

    slipchamber Registered Member

    Joined:
    Jun 25, 2010
    Messages:
    93
    Likes Received:
    16
    omg... trying it now.. .my computer is going to hate me tonight
     
  4. slipchamber

    slipchamber Registered Member

    Joined:
    Jun 25, 2010
    Messages:
    93
    Likes Received:
    16
    works like a charm! only prob I'm having now, is the page I really want you have to be logged in to see it, is there a way for my server to be logged into this? i'm using godaddy..
     
  5. zelma143

    zelma143 Power Member

    Joined:
    Jun 25, 2010
    Messages:
    571
    Likes Received:
    37
    Occupation:
    PHP programmer,Bot maker,iMacro script maker
    use curl to login with php...