3
1
Back

Blog elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first if (preg_match("@.*(get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } /* absolute URL */ $abs = "$host$path/$rel"; function get_content($link) { * When debugging or writing a new fetcher, use the first // Least I Could Do (wtf image size?) $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); // Questionable Content (cleanup) elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $article['content'] = $doc->saveXML(); } Some comics supported Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // Girls with Slingshots.

New Pull Request