Proposal for "Yandex"

» Metadata » Status
  • Category: Web Services
  • Proposer: Viktor Kudlak 
  • License: PHP License
» Description
Package for simple access to Russian search engine Yandex over Yandex XML (http://xml.yandex.ru).

Example to use:

<?php
require_once 'Services/Yandex.php';
$yandex =& new Services_Yandex();
$parser = $yandex->getParser(); // Get search result parser
$query = $yandex->getQuery(); // Get query builder class
$query->query('google apis'); // Set search query
$query->page(1); // Set search result page
$query->sortby('dt'); // sort by date
$result = $yandex->search($query);
if(PEAR::isError($result)) {
echo $html->getMessage();
} else {
print_r($parser->parse($yandex->fetch($query)));
}
?>

The code is intentionally complicated, but complication will justify itself

The code is at a stage of development
» Dependencies » Links
  • xml_util
  • xml_serializer
  • net_curl
» Timeline » Changelog
  • First Draft: 2006-08-27
  • Proposal: 2006-08-27
  • Call for Votes: 2006-09-04
  • Voting Extended: 2006-09-12