mirror of
https://github.com/Ahwxorg/Binternet.git
synced 2026-03-11 08:54:37 +00:00
19 lines
357 B
PHP
19 lines
357 B
PHP
<?php require "static/header.php";
|
|
|
|
$q = $_GET['q'];
|
|
|
|
$url = "https://pinterest.com/search/pins/?q=$q";
|
|
$pinterestPage = file_get_contents($url);
|
|
|
|
$doc = new DOMDocument();
|
|
@$doc->loadHTML($html);
|
|
|
|
$items = $doc->getElementsByTagName('img');
|
|
|
|
foreach ($items as $item) {
|
|
echo "<img src='", $item, "'>";
|
|
}
|
|
|
|
// echo $pinterestPage;
|
|
|
|
?>
|