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