Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 01-08-2017, 06:12 AM   #1
New924249
Junior Member
New924249 began at the beginning.
 
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
New924249 is offline   Reply With Quote
Old 01-09-2017, 06:14 AM   #2
New924249
Junior Member
New924249 began at the beginning.
 
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'
New924249 is offline   Reply With Quote
Advert
Old 05-15-2017, 07:47 PM   #3
New924249
Junior Member
New924249 began at the beginning.
 
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'
New924249 is offline   Reply With Quote
Old 05-15-2017, 11:15 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 07:03 AM.


MobileRead.com is a privately owned, operated and funded community.