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 05-19-2020, 03:24 PM   #1
NSILMike
Guru
NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.NSILMike turned on, tuned in, and dropped out.
 
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.
NSILMike is offline   Reply With Quote
Old 05-19-2020, 03:26 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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
Quote:
Originally Posted by NSILMike View Post
No errors, it just doesn't download any articles for several days now.
Mot likely they change the website and the recipe would need to be fixed.
JSWolf is offline   Reply With Quote
Advert
Old 05-19-2020, 09:43 PM   #3
PatStapleton
Member
PatStapleton began at the beginning.
 
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
PatStapleton is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:28 PM.


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