<?phprequire_once__DIR__.'/vendor/autoload.php';usePHPHtmlParser\Dom;usePHPHtmlParser\Options;$options=newOptions();$options->setEnforceEncoding('utf8');$url1='https://13dl.me/list/popular/';functionscrape($counter,$options,&$element_a){$titles=array();$next="";foreach($element_aas$line){if(preg_match('/title/',"$line")){$div=$line->find('div');if(preg_match('/div/',"$div")){$titles[]=$div->text;}else{if(preg_match('/Next/',"$line")){$attr='href';$next=$line->$attr;}}}else{;}}unset($element_a);foreach($titlesas$xxxx){$counter++;echo$counter." title :".$xxxx."\n";}unset($titles);returnarray("$next",$counter);}$counter=0;while($url1!=''){if(preg_match('/http/',"$url1")){try{$dom=newDom();$dom->loadFromUrl($url1,$options);$element_a=$dom->find('a');$a0a1=scrape($counter,$options,$element_a);unset($element_a);unset($dom);$url1=$a0a1[0];$counter=$a0a1[1];unset($a0a1);}catch(Exception$e){$e->getMessage();}}else{die($url1);}}die('End.');?>
<?phprequire_once__DIR__.'/vendor/autoload.php';usePHPHtmlParser\Dom;usePHPHtmlParser\Options;$options=newOptions();$options->setEnforceEncoding('utf8');$db=newSQLite3('13dl.db');$url1='https://13dl.me/list/popular/';functionscrape($counter,$options,&$element_a,$db){$urls=array();$titles=array();$next="";foreach($element_aas$line){if(preg_match('/title/',"$line")){$div=$line->find('div');if(preg_match('/div/',"$div")){$href='href';$urls[]=$line->$href."\n";$titles[]=$div->text;}else{if(preg_match('/Next/',"$line")){$attr='href';$next=$line->$attr;}}}else{;}}foreach($titlesas$index=>$xxxx){$counter++;$title=rtrim($xxxx,"\n");$url=$urls[$index];$u=rtrim($url,"\n");$query=<<<eof INSERT INTO data (id,title,addr) VALUES ('$counter','$title','$u')eof;$result=$db->exec($query);echo"\n";echo$counter." ".$urls[$index]." title :".$xxxx."\n";}unset($titles);returnarray("$next",$counter);}$counter=0;while($url1!=''){if(preg_match('/http/',"$url1")){try{$dom=newDom();$dom->loadFromUrl($url1,$options);$element_a=$dom->find('a');list($url_1,$counter)=scrape($counter,$options,$element_a,$db);unset($element_a);unset($dom);}catch(Exception$e){$e->getMessage();}}else{die($url1);}}$db->close();die('End');?>
Warning
LINK
You are about to visit a link which has been flagged with the above content warnings. Do you wish to continue?