Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'module_db.php';
- include 'phpQuery-onefile.php';
- R::wipe('mangalist');
- $urls = 'https://mangalib.me/arafoo-kenja-no-isekai-seikatsu-nikki/v1/c1?page=1';
- $newfile = file_get_contents($urls);
- $doc_l =phpQuery::newDocument($newfile);
- $manga = pq('.reader>div')->children('.reader-view__container');
- foreach ($manga as $mg) {
- $pq3 = pq($mg);
- //$h1 = $pq3->find('h1')->text();
- $image = $pq3->find('div>img')->attr('src');
- var_dump($image);
- $MangaList = R::dispense('mangalist');
- //if(!empty($h1)) $MangaList->h1 = ($h1);
- //if(!empty($image)) $MangaList->image = $image;
- R::store($MangaList);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement