WIP
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user