<?php
require 'vendor/autoload.php';
use Goutte\Client;
$url = "https://networthpost.org/";
if(isset($_GET['url'])){
$url = $_GET['url'];
}
$base_url = 'https://metrobiography.com/?scraper=scrap&url=';
$client = new Client();
$crawler = $client->request('GET', $url);
$list = $crawler->filter('.mag-box-container li.post-item a.more-link')->extract('href');
foreach($list as $l){
file_get_contents($base_url.$l);
}
echo 'Imported Successfully\n';