src/Fetchers/YahooFetcher.php
protected function getPageTitles($SHDObject)
    {
        $titles = array();
        foreach($SHDObject->find('.compTitle h3.title') as $object) {
            // extract and clean anchors innertext
            $titleText = $object->innertext;
            $titles[]  = $this->cleanText($titleText);
        }
        // fetch only organic results
        return $this->normalizeResult($titles);
    }
protected function getPageTitles($SHDObject)
    {
        $titles = array();
        foreach($SHDObject->find('.compTitle h3.title') as $object) {
            // extract and clean anchors innertext
            $titleText = $object->innertext;
            $titles[]  = $this->cleanText($titleText);
        }
        // fetch only organic results
        return $this->normalizeResult($titles);
    }
protected function getPageTitles ( $ SHDObject ) { $ titles = array ( ) ; foreach ( $ SHDObject -> find ( '.compTitle h3.title' ) as $ object ) { // extract and clean anchors innertext $ titleText = $ object -> innertext ; $ titles [ ] = $ this -> cleanText ( $ titleText ) ; } // fetch only organic results return $ this -> normalizeResult ( $ titles ) ; }
Get all titles for a given Yahoo SERP page.
@param  SimpleHtmlDom $SHDObject
@return array
Get all titles for a given Yahoo SERP page .