/usr/share/php/PicoFeed/Rules/thenewslens.com.php is in php-picofeed 0.1.18-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <?php
return array(
'grabber' => array(
'%.*%' => array(
'test_url' => 'http://international.thenewslens.com/post/255032/',
'body' => array(
'//article/main[contains(@class, "content-post")]',
),
'strip' => array(
'//div[@class="photo-credit"]',
'//p[@align="center"]',
'//div[@class="clearfix"]',
'//div[@class="authorZone"]',
'//style',
'//div[@id="ttsbox"]',
'//div[@id="ttscontrols"]',
'//div[@class="author-info"]',
'//div[contains(@id, "-ad")]',
'//div[@style="font-size:small;margin:3px 0 0 0;vertical-align:top;line-height:24px;"]',
'//div[contains(@class, "hidden-xs")]',
'//div[contains(@class, "visible-xs")]',
'//div[contains(@class, "visible-lg")]',
'//a[@name="comment-panel"]',
),
),
),
);
|