Skip to content

Instantly share code, notes, and snippets.

@0xnbk
Created September 13, 2010 08:36
Show Gist options
  • Save 0xnbk/576997 to your computer and use it in GitHub Desktop.
Save 0xnbk/576997 to your computer and use it in GitHub Desktop.
Twitter email grabber (PHP)
<?php
$file = file_get_contents("http://search.twitter.com/search?q=gmail.com+OR+hotmail.com++OR+%22email+me%22");
$file = strip_tags($file);
preg_match_all(
"([a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)\b)siU",
$file,
$matches);
print_r($matches);
?>
@0xnbk
Copy link
Author

0xnbk commented Sep 13, 2010

Twitter email grabber (PHP)

You know it, you sould never type your email adress on the Internet. This include Twitter. Due to the site popularity, lots of spammers created scripts to grab email adresses from the site. How can they do that? Like that:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment