Sort out emails from document

Discussion in 'Black Hat SEO Tools' started by Robzi, Aug 22, 2012.

  1. Robzi

    Robzi Junior Member

    Joined:
    Jul 5, 2010
    Messages:
    137
    Likes Received:
    30
    Home Page:
    Lets say i have come over a big list of emails but its all a mess with other words/text.
    I need them to be like "[email protected]; [email protected]; [email protected]" to send out newsletter.

    Is it possible to get all emails out from a list like this:
    Maby a program that can sort out all words between "email=" <EMAIL> "password=".
    Or sort out all words after "email=" and save the email in a new document with all other email like "[email protected]; [email protected]; [email protected]".
    Is there any service for this? I mean there have to be a software that can do this kind of stuff.
     
    Last edited: Aug 22, 2012
  2. Scritty

    Scritty Elite Member Premium Member

    Joined:
    May 1, 2010
    Messages:
    2,965
    Likes Received:
    4,629
    Gender:
    Male
    Occupation:
    Affiliate Marketer
    Location:
    UK
    Ok - look for common factors and hope for a 95% success rate

    So in pseudo code (sort of - forgotten the proper syntax for realt pseudo code - who hasn't = lol)

    F = number of lines in file
    G = Current line number
    Loop until G>F
    Read line G

    Search $
    If search contains "email ="
    Create a string from the current line ($)

    Search for "@"
    Between "email = and "@" = username

    Search for "."
    Between "@" and "." = domain name

    Take everything to the right of "."
    Search for space " "
    Between "." and " " = suffix [.com or.org or .co.uk or whatever]

    Concatenate variables username, domain name and suffix
    Output the concatenated string [this is an email address in the correct format)]
    G=G+1
    Loop

    Could turn that into something in Ubot or VBA or Zenno in about 10 minutes.

    Scritty
     
  3. gordongekko

    gordongekko Regular Member

    Joined:
    May 21, 2007
    Messages:
    220
    Likes Received:
    252
    In a recent thread this was recommended as a way to extract emails from a given document,
    Code:
    http://emailx.discoveryvip.com/
     
  4. Scritty

    Scritty Elite Member Premium Member

    Joined:
    May 1, 2010
    Messages:
    2,965
    Likes Received:
    4,629
    Gender:
    Male
    Occupation:
    Affiliate Marketer
    Location:
    UK
    even easier - your list is already formatted - so whack it into excel and filter the column by "contains email ="
    then do a "Right$" on those lines ("Right$ 7,50" should do it - 50 is again totally arbitrary the command will stop once it has reached the number of characters in the string anyway - 50 is just to make sure it gets them all - you could make it more sophisticated by doing a "LEN" command first to establish the length of the string/email addy then Right$ to the LEN from position 7)

    The code in my first post will get extract emails from just about any block of text that contains emails in the "email = " format. so it might be more useful for less sorted lists.

    Scritty