switched the press to a virtual feed
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Services;
|
||||
|
||||
use App\Services\Scrapers\ThePressScraper;
|
||||
use App\Services\Feeds\ThePressFeed;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class ThePressService extends Client
|
||||
@@ -15,7 +16,7 @@ class ThePressService extends Client
|
||||
public function scrape(): array
|
||||
{
|
||||
//Return only the rss that contains "news" keyboard in its url
|
||||
$articles = $this->get("https://thepress.mv/rss")["channel"]["item"];
|
||||
$articles = (new ThePressFeed)->get();
|
||||
|
||||
|
||||
$articlesitems = [];
|
||||
|
Reference in New Issue
Block a user