Backup Commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?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);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user