3
1
Back

// $img_tag = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Two Lumps elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article.

New Pull Request