getUri()); foreach ($html->find('[class*=ComicImage]') as $element) { $date = $element->find('[class^=Author__Right] p', 0)->plaintext; $author = str_replace('by ', '', $element->find('[class^=Author__Right] p', 1)->plaintext); $image = $element->find('img', 0)->src; $link = $html->find('[rel=canonical]', 0)->href; $item = [ 'uid' => $link, 'author' => $author, 'title' => $date, 'uri' => $link . '#comic', 'timestamp' => str_replace('.', '-', $date) . 'T00:00:00Z', 'content' => "" ]; $this->items[] = $item; } } }