diff options
| author | zinnober <cinnabarit@mailbox.org> | 2014-08-31 17:52:19 +0200 |
|---|---|---|
| committer | zinnober <cinnabarit@mailbox.org> | 2014-08-31 17:52:19 +0200 |
| commit | c159266a63cd8145f6007076becb53305c1df84a (patch) | |
| tree | 9ea8cd2415b9bea6251868079074df3463a714f0 | |
| parent | 433668af6e55f5d51af762c27fe0ab9a9dfa3da8 (diff) | |
| download | ftr-site-config-c159266a63cd8145f6007076becb53305c1df84a.tar.gz ftr-site-config-c159266a63cd8145f6007076becb53305c1df84a.zip | |
Rework of template (now fetching pictures als well)
| -rw-r--r-- | golem.de.txt | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/golem.de.txt b/golem.de.txt index 6afdebe..c64860c 100644 --- a/golem.de.txt +++ b/golem.de.txt @@ -1,25 +1,34 @@ -# Jens Kohl, jens.kohl@... -# - Added publication date -# - Striped pagination block -# - Added single page link -# - Added xpath-querys for the printer friendly version +# Author: zinnober +# Rewrite of original template which fetched the printer-version without pictures -title: //h1 -body: //div[@class='formatted'] +tidy: no prune: no -date: substring-after(//li[2][@class="text1"], 'Datum:') -strip: //ol[@class="list-chapters"] -strip_comments: yes +# Set full title +title: //h1 + +date: //time + +# Content is here +body: //article + +# Fetch full multipage articles +next_page_link: //a[@id='atoc_next'] + +# Remove tracking and ads +strip_id_or_class: iqadtile4 + +# General Cleanup +strip_id_or_class: list-jtoc +strip_id_or_class: table-jtoc +strip_id_or_class: implied +strip_id_or_class: social- +strip_id_or_class: comments +strip_id_or_class: footer + +# Tidy up galleries (could still be improved, though) +strip: //img[@src=''] -# next: commands for printer friendly pages -single_page_link: //a[contains(@href, 'print.php?a=')]/@href -title: //body/h3 -strip_image_src: staticrl/images/logo.jpg -strip_image_src: http://cpx.golem.de/cpx.php?class=7 -strip: //body/h3 -strip: //body/b[1] -strip: //body/b[2] -strip: //body/b[3] -strip: //div[1] -test_url: http://www.golem.de/1112/88696.html
\ No newline at end of file +# Try yourself +test_url: http://www.golem.de/news/intel-core-i7-5960x-im-test-die-pc-revolution-beginnt-mit-octacore-und-ddr4-1408-108893.html +test_url: http://www.golem.de/news/test-infamous-first-light-neonbunter-actionspass-1408-108914.html |
