From 8342686d755c6d84c6c34d496fd37bf986f7fb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 15 Feb 2014 10:25:33 -0500 Subject: [PATCH] Add grabber rules for Futura-Sciences, Mac4Ever and PcInpact --- assets/css/app.css | 5 +++++ vendor/PicoFeed/Rules/www.futura-sciences.com.php | 15 +++++++++++++++ vendor/PicoFeed/Rules/www.mac4ever.com.php | 9 +++++++++ vendor/PicoFeed/Rules/www.pcinpact.com.php | 9 +++++++++ 4 files changed, 38 insertions(+) create mode 100644 vendor/PicoFeed/Rules/www.futura-sciences.com.php create mode 100644 vendor/PicoFeed/Rules/www.mac4ever.com.php create mode 100644 vendor/PicoFeed/Rules/www.pcinpact.com.php diff --git a/assets/css/app.css b/assets/css/app.css index d8a9a5a..b67f28a 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -567,6 +567,10 @@ ul.item-infos a { color: #aaa; } +ul.item-infos { + margin-bottom: 20px; +} + span.downloading img { display: inline; margin: 0; @@ -662,6 +666,7 @@ iframe { .item-infos { font-size: 0.9em; + margin-bottom: 5px; } .item nav a { diff --git a/vendor/PicoFeed/Rules/www.futura-sciences.com.php b/vendor/PicoFeed/Rules/www.futura-sciences.com.php new file mode 100644 index 0000000..73d5744 --- /dev/null +++ b/vendor/PicoFeed/Rules/www.futura-sciences.com.php @@ -0,0 +1,15 @@ + 'http://www.futura-sciences.com/magazines/espace/infos/actu/d/astronautique-curiosity-franchi-succes-dune-dingo-gap-52289/#xtor=RSS-8', + 'body' => array( + '//div[contains(@class, "content fiche-")]', + ), + 'strip' => array( + '//h1', + '//*[contains(@class, "content-date")]', + '//*[contains(@class, "diaporama")]', + '//*[contains(@class, "slider")]', + '//*[contains(@class, "cartouche")]', + '//*[contains(@class, "noprint")]', + ), +); \ No newline at end of file diff --git a/vendor/PicoFeed/Rules/www.mac4ever.com.php b/vendor/PicoFeed/Rules/www.mac4ever.com.php new file mode 100644 index 0000000..ee91ae9 --- /dev/null +++ b/vendor/PicoFeed/Rules/www.mac4ever.com.php @@ -0,0 +1,9 @@ + 'http://www.mac4ever.com/actu/87392_video-quand-steve-jobs-et-bill-gates-jouaient-au-bachelor-avec-le-mac', + 'body' => array( + '//div[contains(@class, "news-news-content")]', + ), + 'strip' => array( + ), +); \ No newline at end of file diff --git a/vendor/PicoFeed/Rules/www.pcinpact.com.php b/vendor/PicoFeed/Rules/www.pcinpact.com.php new file mode 100644 index 0000000..fc45ef2 --- /dev/null +++ b/vendor/PicoFeed/Rules/www.pcinpact.com.php @@ -0,0 +1,9 @@ + 'http://www.pcinpact.com/news/85954-air-france-ne-vous-demande-plus-deteindre-vos-appareils-electroniques.htm?utm_source=PCi_RSS_Feed&utm_medium=news&utm_campaign=pcinpact', + 'body' => array( + '//div[contains(@id, "actu_content")]', + ), + 'strip' => array( + ), +); \ No newline at end of file