Сообщение от Program23
Javascript, Php
|
PhpQuery?
(Если знаком с селекторами, jQuery и умеешь в curl)
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');
ini_set('display_startup_errors', 'On');
ini_set('error_reporting', '-1');
ini_set('log_errors', 'On');
include 'phpQuery-onefile.php';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://boolean.name/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$html = curl_exec($ch);
curl_close($ch);
$doc = phpQuery::newDocument($html);
$stats = array();
foreach ($doc['table tr td div a strong'] as $theme) {
echo pq($theme)->html() . '<br />';
}