- Joined
- Threads
- 2
- Posts
- 9
Heya! 
So while working on countless scraper scripts, I have compiled my own little PHP Class to do the process as simple & handy as I it can be.
Why keep it for my-self tho ?

This might come in very handy if you need a simple way to crawl/scrape information from web-pages.
Here is the main PHP Class, you should read all of methods available.
/Scraper.php
Basic usage example of the PHP Class for scraping data from property listings website.
/scrape_house_listings.php
Let me know if you need any further instructions on how to utilize the methods within this class.
So while working on countless scraper scripts, I have compiled my own little PHP Class to do the process as simple & handy as I it can be.
Why keep it for my-self tho ?
This might come in very handy if you need a simple way to crawl/scrape information from web-pages.
Here is the main PHP Class, you should read all of methods available.
/Scraper.php
You must reply to see the hidden content. Consider upgrading your account to increase your reply limit.
Basic usage example of the PHP Class for scraping data from property listings website.
/scrape_house_listings.php
PHP:
function PullTableData($url) {
if($content = $this->curl($url)) {
$listings_html = $this->getValueByTagName($content, '<div id="mainblock">', '<div class="leftblock">');
$listings_html_Arr = explode('<div class="lbm">', $listings_html);
array_shift($listings_html_Arr);
foreach($listings_html_Arr as $key => $data) {
// populate data with info returned by $data & $key..
$items[$key] = array(
'identifier' => 'paramter'
);
}
}
else {
echo 'Unable to load the URL Provided: ' .$url;
return false;
}
return $items;
}
Let me know if you need any further instructions on how to utilize the methods within this class.