16 lines
433 B
PHP
16 lines
433 B
PHP
<?php
|
|
|
|
$url = "https://scarthefur.gumroad.com/l/kitabikini";
|
|
|
|
$string = file_get_contents($url);
|
|
|
|
$dom = new DomDocument();
|
|
@$dom->loadHTML($string);
|
|
$finder = new DomXPath($dom);
|
|
|
|
$content = $finder->query("//*[contains(concat(' ', normalize-space(@data-component-name), ' '), ' ProductPage ')]")[0]->textContent;
|
|
$content = json_decode($content);
|
|
|
|
print_r($content->product->seller);
|
|
|
|
?>
|