Attention spammers! Webpronews exposed great email grabber idea. Find the PHP sample code below and grab, grab and grab emails from Twitter search.

Sample script
<?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); ?>
Sample output

Before you start
- Use PHP cURL and proxies instead of file_get_contents.
- Write your own search query and regular expressions.
- Remember, spam is bad!
Bye bye!
You may want to subscribe to my RSS feed.


By Spammers harvesting emails from Twitter - in real time | Zero Day | ZDNet.com on May 14th, 2009.
[...] theory into practice – a day after the tactic was discussed a proof of concept script was released, even though it should be logical to assume that the practice has been taking place for a while [...]
By Spameři dolují emaily z Twitteru on May 15th, 2009.
[...] poté, co se technika začala diskutovat se objevil skript jako potvrzení konceptu, není ale pochyb, že se této praktiky využívá již delší [...]
By ukescuba on May 18th, 2009.
mixed your code with the following code together with another user dor@tehexploa at blackhatworld.com – im relatively new to the world of scraping but your blog has helped immensly, probably not the neatest of code but works for now….
obviously this script is just for educational purposes, as actually emailing any emails gathered would be considered spam and in some places illegal we all know spam is bad so dont do it as you could be punished by big hefty fines!
[code]
<?php
//set # of pages (5) to scrape
for($i=1;$i
[/code]
By seozero on May 18th, 2009.
I found your post
http://www.blackhatworld.com/blackhat-seo/blackhat-lounge/82511-twitter-mass-e-mail-grabbing-script.html
Didn’t know about &rpp=100. Thanx!
By Twitter has become spammer’s harvesting field | Digital Prank on May 18th, 2009.
[...] which are more than enough for spammers. Even proof of concept has been released in the form of a script which is really a big threat to users. Being one of the largest micro-blogging site and used by [...]
By Andy on May 27th, 2009.
For those who haven’t played with advanced search on twitter, add &rpp=50 to the end of the search string (rpp = results per page)
And yes, it can be extended to 1000, 10000, etc
Shhhhhh
By Sangesh on August 18th, 2009.
Thanks for bringing out this issue. This is really a serious issue now.
By David on August 30th, 2009.
I agree its something people worry about, it is always best to send that kind of information via DM.
That includes, postal address, phone numbers….
By 10 code snippets to interact with Twitter on September 14th, 2009.
[...] Source : http://www.fromzerotoseo.com/twitter-email-grabber/ [...]