Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once('./../parser/simple_html_dom.php');
- $details = file_get_html("https://gratka.pl/nieruchomosci/mieszkanie-warszawa-bialoleka-ul-swiatowida/oi/2613984");
- $scripts = $details->find("script");
- $photos = $scripts[32]->innertext;
- preg_match('/(data")\s*:([^\]]+)/', $photos, $photos);
- if(isset($photos[2])){
- var_dump($photos[2]);
- echo "<hr>";
- preg_match('/.*?"url":"(.*?)"/', $photos[2], $p);
- echo "wynikow: ".count($p)."<hr>";
- foreach ($p as $px) {
- echo $px . "<br>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement