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;
- }
- ?>