3
1
Back

$this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // And get blog entry $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } } // Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; // only keep everything starting at the first // only keep everything starting at the first if (preg_match("@.*(get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // And get blog //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article){ /* dirty absolute URL */ $abs = "$host$path/$rel"; function get_content($link) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; function rel2abs($rel, $base) { $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2.

New Pull Request