D
D
Danil Isaev2015-02-01 00:06:32
PHP
Danil Isaev, 2015-02-01 00:06:32

How to parse div from sravni ru/kredity site?

How can I parse a table with interest on loans?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mykola, 2015-02-01
@d4h1i15438

include 'nokogiri.php';
$html = file_get_contents('http://www.sravni.ru/kredity/');
$saw = new nokogiri($html);
$kred = $saw->get('div[class=results__item__info__text]')->toArray();
var_dump($kred);

Library: habrahabr.ru/post/110112
Filter the data yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question