CREATE TABLE IF NOT EXISTS `spider` ( `id` int(10) unsigned NOT NULL auto_increment, `saved` datetime NOT NULL, `url` varchar(255) NOT NULL, `visited` tinyint(3) unsigned NOT NULL default '0' COMMENT '0=not visited,1=visited', PRIMARY KEY (`id`), UNIQUE KEY `url` (`url`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `emails` ( `cd_spider` int(10) unsigned NOT NULL, `email` varchar(150) NOT NULL, UNIQUE KEY `email` (`email`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; PHP source code This code uses these methods of the Mini Bots PHP Class: getPage To grab a page from a url, masking your bot as a browser findLinks To grab the list of links in a page, fix absolute paths and remove duplicates and filter internal links. findEmails To extract all the emails in a web page So, build the tables in your database, copy the code and configure it with your database and your $SEED and go. You can close the browser and reopen it, or stop the automatic refresh of the scraper by pressing ESC. To restart it just reload the page. err db