01-08-2017, 06:12 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Trekstor Pyrus 2
|
Telepolis recipe broken
Hi.
The Telepolis (de) recipe is broken. If I make a new one with calibre it did'nt download mutiple page sites. Greetings and thanks. New924249 |
01-09-2017, 06:14 AM | #2 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Trekstor Pyrus 2
|
Now it works...
...with that recipe.
#!/usr/bin/env python2 # vim:fileencoding=utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1483959878(BasicNewsRecipe): title = 'Telepolis' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True recursions = 10 feeds = [ ('Telepolis', 'https://www.heise.de/tp/news-atom.xml'), ] def is_link_wanted(self, url, tag): return tag['class'] == 'seite_weiter' |
Advert | |
|
05-15-2017, 07:47 PM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2017
Device: Trekstor Pyrus 2
|
Telepolis Recipe is broken again: this is the solution
#!/usr/bin/env python2
# vim:fileencoding=utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1494888781(BasicNewsRecipe): title = 'Telepolis' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True resursions = 10 feeds = [ ('Telepolis', 'https://www.heise.de/tp/news-atom.xml'), ] def print_version(self, url): return url + '?view=print' |
05-15-2017, 11:15 PM | #4 |
creator of calibre
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You cant use auto_cleanup with multipage sites. You have to create an advanced recipe with kee_tags, temove_tags, and is_link_wanted.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MSNBC recipe is broken | NSILMike | Recipes | 2 | 03-22-2016 10:59 AM |
Al Jazeera recipe has broken | NSILMike | Recipes | 2 | 01-27-2015 11:41 AM |
Updated Telepolis (News+Artikel) Recipe | syntaxis | Recipes | 8 | 05-15-2011 06:40 AM |
Calibre Recipe: Telepolis (Artikel) (German) | lena_punkt | Calibre | 1 | 09-27-2010 05:03 AM |
Recipe for The Week broken? | gianfri | Calibre | 3 | 03-19-2010 08:05 PM |