#1
(This post was last modified: 10 December, 2022 - 10:59 AM by Encraft. Edited 1 time in total.)
So while working on countless scraper scripts, I have compiled my own little PHP Class to do the process as simple & handy as I want it to be.. :)

So why keep it for my-self, and not share my work right?
This will come in very handy for you, if you need a very quick way to do data scraping with minimal effort! If you have any questions or requests, please contact me.

/Scraper.php
(Cant embed id, security here on recognize forum it as malicious wrongly).
https://rentry.co/daiub
 
Code:
    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 help || instructions on how to utilize the methods within this class.