src/Fetchers/YahooFetcher.php
protected function getPageSnippets($SHDObject)
    {
        $snippets = array();
        foreach ($SHDObject->find('.aAbs') as $object) {
            $snippetText = $this->cleanText($object->innertext);
            $snippets[]  = $this->fixRepeatedSpace($snippetText);
        }
        // fetch only organic results
        return $this->normalizeResult($snippets);
    }
protected function getPageSnippets($SHDObject)
    {
        $snippets = array();
        foreach ($SHDObject->find('.aAbs') as $object) {
            $snippetText = $this->cleanText($object->innertext);
            $snippets[]  = $this->fixRepeatedSpace($snippetText);
        }
        // fetch only organic results
        return $this->normalizeResult($snippets);
    }
protected function getPageSnippets ( $ SHDObject ) { $ snippets = array ( ) ; foreach ( $ SHDObject -> find ( '.aAbs' ) as $ object ) { $ snippetText = $ this -> cleanText ( $ object -> innertext ) ; $ snippets [ ] = $ this -> fixRepeatedSpace ( $ snippetText ) ; } // fetch only organic results return $ this -> normalizeResult ( $ snippets ) ; }
Get all snippets for a given Yahoo SERP page.
@param  SimpleHtmlDom $SHDObject
@return array
Get all snippets for a given Yahoo SERP page .