From bca265aea67ec62499aaa113a6490ce9ec7fe730 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 22 Jul 2023 14:41:14 -0400 Subject: still missing things on google scraper --- api/v1/news.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 api/v1/news.php (limited to 'api/v1/news.php') diff --git a/api/v1/news.php b/api/v1/news.php new file mode 100644 index 0000000..7e24247 --- /dev/null +++ b/api/v1/news.php @@ -0,0 +1,25 @@ +getscraperfilters( + "news", + isset($_GET["scraper"]) ? $_GET["scraper"] : null +); + +$get = $frontend->parsegetfilters($_GET, $filters); + +try{ + echo json_encode( + $scraper->news($get) + ); + +}catch(Exception $e){ + + echo json_encode(["status" => $e->getMessage()]); +} -- cgit v1.2.3