Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-25-2017, 02:13 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
Wired Daily Edition now fails

Some articles download ok, others do this:

���r�H�0��z�2�۔V�DɔG��w|K�w�vIX ��E��y����3 ꒕����|x�ɛ���}�zQ�=�xx�0~u:̍؋�l��Ç��Y������C�p��41 ��ğ�����E�`�T��a���R��l�.�7�h��&�����9� ?�-ߥWB���fI��3�vL��}��h��R�\�+u�عkz�1���'�C����ܳ��o�� �n��v�K�qִ7{Mr��?�b��Z��.��M�9�K��р'}

for several pages...
NSILMike is offline   Reply With Quote
Old 05-23-2017, 03:03 PM   #2
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
Quote:
Originally Posted by NSILMike View Post
Some articles download ok, others do this:

���r�H�0��z�2�۔V�DɔG��w|K�w�vIX ��E��y����3 ꒕����|x�ɛ���}�zQ�=�xx�0~u:̍؋�l��Ç��Y������C�p��41 ��ğ�����E�`�T��a���R��l�.�7�h��&�����9� ?�-ߥWB���fI��3�vL��}��h��R�\�+u�عkz�1���'�C����ܳ��o�� �n��v�K�qִ7{Mr��?�b��Z��.��M�9�K��р'}

for several pages...
No one has any ideas why...? or how to fix?
NSILMike is offline   Reply With Quote
Advert
Old 05-23-2017, 09:30 PM   #3
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,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Post the URL for a failing article.
kovidgoyal is offline   Reply With Quote
Old 05-24-2017, 07:01 AM   #4
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
I will when it happens again. It's not consistent day to day.
Thanks.
NSILMike is offline   Reply With Quote
Old 06-22-2017, 04:37 PM   #5
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
Hasn't happened again, most likely because the recipe now downloads almost nothing.
All that downloads is the cover and a page that used to list the various sections. Only one shows now: Top Stories. And it is always empty.
NSILMike is offline   Reply With Quote
Advert
Old 06-23-2017, 12:49 AM   #6
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,839
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...6819f8eae08f68
kovidgoyal is offline   Reply With Quote
Old 06-23-2017, 08:50 AM   #7
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
thanks! works much better (still skips one or two articles though.)

Last edited by NSILMike; 06-23-2017 at 08:52 AM.
NSILMike is offline   Reply With Quote
Old 05-23-2020, 11:31 AM   #8
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
Now the recipe only downloads links.
NSILMike is offline   Reply With Quote
Old 05-24-2020, 12:29 AM   #9
PatStapleton
Member
PatStapleton began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2011
Location: Australia
Device: Kindle 4
Seems they updated their feeds.

I've fixed those to point to the new feeds.
For some reason the Photo section articles don't load images correctly so I've left that feed disabled.

Code:
__license__ = 'GPL v3'
__copyright__ = '2014, Darko Miletic <darko.miletic at gmail.com>'
'''
www.wired.com
'''

from calibre import browser
from calibre.web.feeds.news import BasicNewsRecipe

class WiredDailyNews(BasicNewsRecipe):
    title = 'Wired Daily Edition'
    __author__ = 'Darko Miletic, PatStapleton(update 2020-05-24)'
    description = ('Wired is a full-color monthly American magazine, published in both print '
                   'and online editions, that reports on how emerging technologies affect culture,'
                   'the economy and politics.')
    masthead_url = 'https://www.wired.com/images/logos/apple-touch-icon.png'
    cover_url = 'https://www.wired.com/images/logos/wired.png'
    publisher = 'Conde Nast'
    category = 'news, IT, computers, technology'
    oldest_article = 2
    max_articles_per_feed = 200
    no_stylesheets = True
    encoding = 'utf-8'
    use_embedded_content = False
    language = 'en'
    ignore_duplicate_articles = {'url'}
    remove_empty_feeds = True
    publication_type = 'newsportal'
    extra_css             = """
                            .entry-header{
                                          text-transform: uppercase;
                                          vertical-align: baseline;
                                          display: inline;
                                         }
                            ul li{display: inline}
                            """

    remove_tags = [
		{
			'attrs': {
				'class': ['social-icons']
			}
		},
        dict(name=['meta', 'link', 'aside']),
        dict(id=['sharing', 'social', 'article-tags', 'sidebar']),
    ]
    keep_only_tags = [
        dict(name='article', attrs={'class': 'article main-content'}),
    ]
    remove_attributes = ['srcset']
    handle_gzip = True

    feeds = [
    (u'Top Stories', u'https://www.wired.com/feed/rss'),
    (u'Business', u'https://www.wired.com/feed/category/business/latest/rss'),
    (u'Culture', u'https://www.wired.com/feed/category/culture/latest/rss'),
    (u'Gear', u'https://www.wired.com/feed/category/gear/latest/rss'),
    (u'Ideas', u'https://www.wired.com/feed/category/ideas/latest/rss'),
    (u'Science', u'https://www.wired.com/feed/category/science/latest/rss'),
    (u'Security', u'https://www.wired.com/feed/category/security/latest/rss'),
    (u'Transportation', u'https://www.wired.com/feed/category/transportation/latest/rss'),
    (u'Backchannel', u'https://www.wired.com/feed/category/backchannel/latest/rss'),
    (u'WIRED Guides', u'https://www.wired.com/feed/tag/wired-guide/latest/rss'),
#    (u'Photo', u'https://www.wired.com/feed/category/photo/latest/rss'),
    ]

    def get_article_url(self, article):
        return article.get('link',  None)

    # Wired changes the content it delivers based on cookies, so the
    # following ensures that we send no cookies
    def get_browser(self, *args, **kwargs):
        return self

    def clone_browser(self, *args, **kwargs):
        return self.get_browser()

    def open_novisit(self, *args, **kwargs):
        br = browser()
        return br.open_novisit(*args, **kwargs)

    open = open_novisit
PatStapleton is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed the Wired Magazine Recipe (not daily)...kind of zachlapidus Recipes 8 07-11-2018 09:14 PM
wired daily edition recipe is broken NSILMike Recipes 1 03-15-2015 11:26 AM
Wired Daily Phoul Recipes 4 01-12-2011 12:35 PM
PRS-900 Daily edition vs the touch edition dcross9818 Sony Reader 24 02-04-2010 10:29 PM
Touch Edition now or Daily Edition later? Andanzas Sony Reader 24 09-16-2009 11:48 AM


All times are GMT -4. The time now is 08:37 PM.


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