src/Crawler/SearchResultAdCrawler.php
public function getThumb()
    {
        $image = $this->node
            ->filter('.item_imagePic .lazyload[data-imgsrc]')
            ->first();

        if (0 === $image->count()) {
            return null;
        }

        $src = $image
            ->attr('data-imgsrc');

        return (string)Http::createFromString($src)->withScheme('https');
    }
public function getThumb()
    {
        $image = $this->node
            ->filter('.item_imagePic .lazyload[data-imgsrc]')
            ->first();

        if (0 === $image->count()) {
            return null;
        }

        $src = $image
            ->attr('data-imgsrc');

        return (string)Http::createFromString($src)->withScheme('https');
    }
public function getThumb ( ) { $ image = $ this -> node -> filter ( '.item_imagePic .lazyload[data-imgsrc]' ) -> first ( ) ; if ( 0 === $ image -> count ( ) ) { return null ; } $ src = $ image -> attr ( 'data-imgsrc' ) ; return ( string ) Http :: createFromString ( $ src ) -> withScheme ( 'https' ) ; }
Return the thumb picture url

@return null|string
Return the thumb picture url