Details of the QueryList crawl list. How to add the download picture code

clipboard.png

return QueryList::get($url)->rules($rules)->range($range)->query(function ($item){
            $re = [];
            $rt = QueryList::get($item["link"])->query();
            $re["title"] = $rt->find(".gb-final-pn-article>h1")->text();
            $re["content"] = $rt->find(".gb-final-mod-article")->html();
            return $re;
        })->getData();

this is the crawl list page. Plus crawling the details page through the list page data, how to add part of the downloaded picture

Jun.05,2022

return QueryList::get($url)->rules($rules)->range($range)->query(function ($item){
            $re = [];
            $rt = QueryList::get($item['link'])->query();
            $re['title'] = $rt->find('.gb-final-pn-article>h1')->text();
            $re['content'] = $rt->find('.gb-final-mod-article')->html();
            //image      
            //$re['imageUrl'] = xxx;
            return $re;
        })->getData();
Menu