diff options
| author | Strubbl <github@linux4tw.de> | 2017-03-04 17:01:48 +0100 |
|---|---|---|
| committer | FiveFilters.org <fivefilters@fivefilters.org> | 2017-03-04 17:01:48 +0100 |
| commit | fd3e2d4ac37db716ed29211790ca44a4bcc95ff3 (patch) | |
| tree | 9573132f645f849a936562520f34ef9c06a94bbf /heise.de.txt | |
| parent | b356f48bcc05fad5c78161aa8f639d9a3973e156 (diff) | |
| download | ftr-site-config-fd3e2d4ac37db716ed29211790ca44a4bcc95ff3.tar.gz ftr-site-config-fd3e2d4ac37db716ed29211790ca44a4bcc95ff3.zip | |
fixes next_page_link detection for heise-ct (#274)
This commit fixes the next_page_link detection for heise.de/ct/
articles, where the next-link (<a> with class=next) refers to the next
article and not to the next page. Therefore i added a check, that the
link text does not contain the word "Artikel".
Without that check all consecutive articles are fetched, altough they
are new articles and not a follow-up page of the same article.
e.g.:
https://www.heise.de/ct/ausgabe/2017-6-DVB-T2-HD-startet-in-Deutschland-3636637.html
Diffstat (limited to 'heise.de.txt')
| -rwxr-xr-x | heise.de.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heise.de.txt b/heise.de.txt index 869cd9b..cc80203 100755 --- a/heise.de.txt +++ b/heise.de.txt @@ -49,7 +49,7 @@ replace_string(<div class="heisebox">): <blockquote> single_page_link: //a[contains(@href, '?view=print')] single_page_link: //a[contains(@title, 'Druck')] -next_page_link: //a[@class='next'] +next_page_link: //a[@class='next' and not(contains(text(), 'Artikel'))] next_page_link: //a[@title='vor'] next_page_link: //a[@rel='next'] |
