Пример #1
0
 function __construct()
 {
     parent::__construct();
     $this->_urls = array('http://phunuonline.com.vn/nguoi-yeu-sach.html');
     $this->_providerName = 'phunuonline.com.vn';
     $this->_arrXPath = array('name' => '//div[@id="detail"]/h2', 'content' => '//div[@id="newscontents"]', 'book_name' => array('//div[@id="newscontents"]'));
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     $this->_urls = array('http://giaitri.vnexpress.net/tin-tuc/sach/diem-sach/page/21.html');
     $this->_providerName = 'vnexpress.net';
     $this->_arrXPath = array('name' => '//*[@id="fck_container"]/div[@class="title_news"]/h1', 'content' => '//*[@id="fck_container"]/div[@class="fck_detail"]', 'book_name' => array("//p[contains(text(), 'Tên sách')]/em", "//p[contains(text(), 'Tác phẩm')]/em"));
 }