:("; exit(); } if (substr( $article_url, 0, 23 ) != "https://news.google.com") { echo("That's not news :("); die(); } /* just a hacky fix lol, maybe make this better later */ $google_redirect_page = file_get_contents($article_url); $parts = explode('setArticleByLine(false); $readability = new Readability($configuration); if(!$article_html = file_get_contents($article_url)) { $error_text .= "Failed to get the article :(
"; } try { $readability->parse($article_html); $readable_article = strip_tags($readability->getContent(), '