This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
rangitaki/vendor/fguillot/picofeed/lib/PicoFeed/Rules/zdnet.com.php

25 lines
912 B
PHP
Raw Permalink Normal View History

2016-05-07 12:59:40 +02:00
<?php
return array(
'grabber' => array(
'%.*%' => array(
'test_url' => 'http://zdnet.com.feedsportal.com/c/35462/f/675637/s/4a33c93e/sc/11/l/0L0Szdnet0N0Carticle0Cchina0Eus0Eagree0Eon0Ecybercrime0Ecooperation0Eamid0Econtinued0Etension0C0Tftag0FRSSbaffb68/story01.htm',
'body' => array(
'//p[@class="summary"]',
'//div[contains(@class,"storyBody")]',
),
'strip' => array(
'//*[contains(@class,"ad-")]',
'//p/span',
'//script',
'//p[@class="summary"]',
'//div[contains(@class,"relatedContent")]',
'//div[contains(@class,"loader")]',
'//p[@class="photoDetails"]',
'//div[@class="thumbnailSlider"]',
'//div[@class="shortcodeGalleryWrapper"]',
),
),
),
);