I'm looking for a script that given a url starting I analyze the html code of the site and saves me the email in a db with the fields URL and E-MAIL The script must then climb all the links in the page and parse the html check if there are any email. technology php / mysql accept proposals thanks
You want to scrape a site for email addresses and add them to a database with the link to the page where the EMAIL address is found? if so, send me PM as i already got part of the script you need.
Hi, You can use PHP, Curl, and REGEX to accomplish this. Look on the web using Google Search for "php curl examples" for how you can grab a websites content, and store it in a variable. Then using Googe Search, look for "php regex example", and use that with the php curl to search for a pattern in what curl retrieved back for you. And, then it's simply out putting it to meet your needs.
You can find solution here. http://thedigilife.com/email-crawler-scrip-php-mysql/ As per my understanding, It is full script about what you want to do exactly. Hope this helps you. Thanks
FYI, Original class: http://www.phpclasses.org/package/5663-PHP-Crawl-pages-and-scrape-e-mail-addresses-into-MySQL.html It isn't really that efficient unless you run it in CLI mode, I was planning on doing a V 2.0 but never really had the time.