miniflux-legacy/vendor/miniflux/picofeed/lib/PicoFeed/Rules/theatlantic.com.php

24 lines
845 B
PHP
Raw Normal View History

2015-10-18 23:31:23 +02:00
<?php
return array(
'grabber' => array(
'%.*%' => array(
'test_url' => 'http://www.theatlantic.com/politics/archive/2015/09/what-does-it-mean-to-lament-the-poor-inside-panem/407317/',
'body' => array(
2016-02-10 02:30:07 +01:00
'//picture[@class="img"]',
'//figure/figcaption/span',
'//div/p[@itemprop="description"]',
'//div[@class="article-body"]',
2017-04-05 22:05:48 +02:00
'//ul[@class="photos"]',
2015-10-18 23:31:23 +02:00
),
'strip' => array(
2016-02-10 02:30:07 +01:00
'//aside[@class="callout"]',
'//span[@class="credit"]',
'//figcaption[@class="credit"]',
'//aside[contains(@class,"partner-box")]',
'//div[contains(@class,"ad")]',
'//a[contains(@class,"social-icon")]',
2015-10-18 23:31:23 +02:00
),
),
),
2015-10-18 23:31:23 +02:00
);