![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 735
Karma: 35936
Join Date: Apr 2011
Location: Shrewsury, MA
Device: Lenovo Android Tablet
|
Calibre recipe for "How To Geek' stopped working
No errors, it just doesn't download any articles for several days now.
|
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 22
Karma: 10
Join Date: Nov 2011
Location: Australia
Device: Kindle 4
|
Yes they changed the rss feed.
I've updated that and also removed the "next up" panel that was appearing in articles now. Try this: Code:
from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1282101454(BasicNewsRecipe): title = 'How To Geek' language = 'en' __author__ = 'TonytheBookworm, PatStapleton (update 2020-05-20)' description = 'Daily Computer Tips and Tricks' publisher = 'Howtogeek' category = 'PC,tips,tricks' oldest_article = 2 max_articles_per_feed = 100 linearize_tables = True no_stylesheets = True remove_javascript = True use_embedded_content = False keep_only_tags = [ dict(id='main') ] remove_tags_after = dict(classes='affiliate-disclosure') remove_tags = [ dict(name='a', attrs={'target': ['_blank']}), dict(name='table', attrs={'id': ['articleTable']}), dict(name='div', attrs={'class': ['feedflare', 'article-share-widgets', 'related-articles', 'comments', 'nextup']}), ] feeds = [ ('How-to Geek', 'https://www.howtogeek.com/feed/') ] def preprocess_html(self, soup, *a): for img in soup.findAll('img', attrs={'data-pagespeed-lazy-src': True}): img['src'] = img['data-pagespeed-lazy-src'] return soup |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pocket recipe stopped working? | julio:map | Recipes | 6 | 07-25-2017 01:48 AM |
Pagina/12 Recipe Stopped working | macpablus | Recipes | 0 | 11-18-2016 10:20 PM |
"calibre-parallel.exe has stopped working" | Marok | Calibre | 1 | 10-02-2013 09:08 PM |
Boston Globe recipe has stopped working | NSILMike | Recipes | 3 | 10-16-2012 04:22 PM |
Guardian Recipe has stopped working | jbambridge | Calibre | 2 | 04-11-2010 01:14 PM |