QueryList collection is due to a cookies problem, so the content cannot be crawled normally.

use querylist to crawl from=search&seid=8787115927386129989%E4%B8%8D%E5%88%B0%E5%86%85%E5%AE%B9" rel=" nofollow noreferrer "> https://space.bilibili.com/35...
code as follows:
$url ="from=search&seid=8787115927386129989" rel= "nofollow noreferrer" > https://space.bilibili.com/35...";

/ / Collection rules
$rules = [

// 
"title" => ["a:eq(1)","text"],
// 
"link" => ["a:eq(0)","href"],
// 
"img" => ["img:eq(0)","src"],
// 
"summary" => ["p:eq(0)","text"]

];

/ / slice selector
$range ="- sharpapp > .col-1 > .full-rows > .clearfix > .fakeDanmu-item";

$data = QueryList::Query ($url,$rules,$range)-> data;

the output is empty.

Php
May.02,2022

I'm just going to use this plug-in. Learn about it in advance.

Menu