This commit is contained in:
Mohamed jinas
2024-01-07 21:45:37 +05:00
parent 0589b19843
commit 38d14a812c

View File

@@ -16,10 +16,7 @@ class ThiladhunService extends Client
*/
public function scrape(): array
{
//Return only the rss that contains "news" keyboard in its url
$response = Http::get("https://thiladhun.com/feed")->body();
$data = json_decode(json_encode(simplexml_load_string($response)), true);
$articles = $data["channel"]["item"];
$articles = (new ThiladhunFeed)->get();
$articlesitems = [];
//Looping through the articles and scraping and while scraping it creates a new instance of the scraper.