Новичок
![](./im/images/pips1.gif)
Покинул форум
Сообщений всего: 19
Дата рег-ции: Июнь 2014
Помог: 0 раз(а)
![](./templates/InvisionExBB/im/spacer.gif)
|
PHP:
скопировать код в буфер обмена
<html> <!DOCTYPE html> <meta charset="utf-8"> <?PHP include ('simple_html_dom.php'); // Create DOM from URL or file $list = file_get_html('urls.txt'); foreach($list as $address) { $html = file_get_html($address); $image = $html->find('.fotorama__stage__frame fotorama__active fotorama__loaded fotorama__loaded--img img', 0); $data['image'] = 'http://novostroy-m.ru' . $image->src; $description=$html->find('.field-item even p',0); $data['description']=$description->innertext; $property=$html->find('.property',0); $data['property']=$property->innertext; } ?>
Urls.txt
выводит кучу хлама , с данной страницы просто нужно вытащить все фото, текст описания и адресс
|