<?php
include "simple_html_dom.php";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://ahrefs.com/site-explorer/overview/v2/subdomains/live?target=karramba.se');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_RETURNTRANSFER,1 );
$response = curl_exec($curl);
curl_close($curl);
echo $response;
$html = new simple_html_dom();
$html->load($response);
foreach($html->find('div[CollapsingNavbarHeader]') as $link)
echo $link->plaintext;
?>
I was trying to get some info from Ahrefs. can you help me to display single post or image from Ahrefs , so you will give me as an example.