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 04-12-2020, 01:10 PM   #1
mixedbag
Enthusiast
mixedbag began at the beginning.
 
Posts: 26
Karma: 18
Join Date: Aug 2015
Device: none
Financial Times Recipe Not found in calibre anymore (www.ft.com)

Hello. I have come back to using Calibre again after a long time. Earlier there used to be a recipe for Financial times by default. Now there seems to be no recipe.

Is there a way i can find the recipe?

Thanks.
mixedbag is offline   Reply With Quote
Old 04-12-2020, 10:34 PM   #2
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: 45,271
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It was removed since that website was redesigned and no one was interested enough to adapt the recipe for the new design.
kovidgoyal is offline   Reply With Quote
Advert
Old 04-15-2020, 11:55 PM   #3
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 55
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
I've asked kiklop74 to look at it again (gave credentials) since it appears the captcha login requirements maybe turned off based on another post and my own experience. There is a custom MyFT rss feed link in the settings and accounts, change preferences, rss feeds that you can copy and paste. If not able to grab the entire paper, it would be nice to at least grab a custom MyFT feed. For example, my custom MyFT feed is
https://www.ft.com/myft/following/ce...bf65b1f431.rss

Now, just have to have a recipe that logs into FT and be able to grab the feed if not the paper.
hongho71 is offline   Reply With Quote
Old 05-03-2020, 01:02 PM   #4
bobbysteel
Big Poppa
bobbysteel began at the beginning.
 
Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
I rewrote it at some point but it's still partly failing. I'll share when I'm at a pc next


Sent from my iPhone using Tapatalk
bobbysteel is offline   Reply With Quote
Old 05-03-2020, 01:14 PM   #5
bobbysteel
Big Poppa
bobbysteel began at the beginning.
 
Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
this one is semi-working but haven't had time to sort it out
https://gist.github.com/bobbysteel/9...5ed5a05b112def
bobbysteel is offline   Reply With Quote
Advert
Old 11-15-2020, 09:12 AM   #6
MrDrDr
Junior Member
MrDrDr can extract oil from cheeseMrDrDr can extract oil from cheeseMrDrDr can extract oil from cheeseMrDrDr can extract oil from cheeseMrDrDr can extract oil from cheeseMrDrDr can extract oil from cheeseMrDrDr can extract oil from cheeseMrDrDr can extract oil from cheese
 
Posts: 6
Karma: 1000
Join Date: Nov 2020
Device: remarkable2
Quote:
Originally Posted by bobbysteel View Post
this one is semi-working but haven't had time to sort it out
https://gist.github.com/bobbysteel/9...5ed5a05b112def
Thanks for posting this - am interested in getting this to work. I can't get any content to download - do you know if it's even possible with reCAPTCHA check?
MrDrDr is offline   Reply With Quote
Old 06-08-2021, 12:56 AM   #7
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 55
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
Hello, for those still interested in the FT Rss Feed. I couldn't get the entire FT newspaper to download but FT has a custom Rss Feed section in personal settings. There you can add your own articles (I added FT Opinions in my case) and you get the FT RSS link. Just copy the recipe below and replace it with your own FT link. You need valid username and password. Hope this helps.

Copy Recipe Below
---------------------------------------------

Code:
#!/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 AdvancedUserRecipe1512304616(BasicNewsRecipe):
    title          = 'FT - Opinions'
    oldest_article = 60
    max_articles_per_feed = 100
    needs_subscription = True
    no_stylesheets = True
    remove_javascript = True
    use_embedded_content = False
    auto_cleanup   = True

       
    LOGIN = 'https://accounts.ft.com/login'
    LOGOUT = 'https://myaccount.ft.com/logout'
    INDEX = 'https://www.ft.com/todaysnewspaper/uk'
    PREFIX = 'https://www.ft.com'

    def get_browser(self):
        USER_AGENT = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
        #USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0'
        br = BasicNewsRecipe.get_browser(self, user_agent=USER_AGENT)
        #br.set_debug_http(True)
        #br.set_debug_responses(True)
        br.open(self.INDEX)
        if self.username is not None and self.password is not None:
            br.open(self.LOGIN)
            br.select_form(id='email-form')
            br['email'] = self.username
            br.submit()
#            br.select_form(name='enter-password-form')
            br.select_form(id='login-form')
            br['password'] = self.password
            br.submit()
        br.addheaders += [('Referer', 'https://www.google.com')]
        br.addheaders += [('Cookie', 'ft-access-decision-policy=PRIVILEGED_REFERER_POLICY;')]
        br.addheaders += [("X-Forwarded-For", "66.249.66.1")]
        return br

#    remove_tags_before = dict(id='story')
 #   remove_tags_after = dict(id='story')

    remove_tags = [
        dict(attrs={'aria-label':'tools'.split()}),
        dict(attrs={'aria-label': lambda x: x and 'New York Times Logo' in x}),
        dict(href='#site-content #site-index'.split()),
        dict(attrs={'aria-hidden':'true'}),
        dict(attrs={'data-videoid':True}),
        dict(name='button meta link'.split()),
        dict(id=lambda x: x and x.startswith('story-ad-')),
        dict(name='head'),
        dict(role='toolbar'),
        dict(name='a', href=lambda x: x and '#story-continues-' in x),
        dict(name='a', href=lambda x: x and '#whats-next' in x),
        dict(id=lambda x: x and 'sharetools-' in x),
        dict(id='newsletter-promo supported-by-ad bottom-wrapper'.split()),
        dict(attrs={'class': lambda x: x and (
            'SectionBar' in x or 'recirculation' in x or 'ResponsiveAd' in x or 'accessibility-visuallyHidden' in x or 'RelatedCoverage' in x)}),
    ]    
    
    feeds          = [
        ('https://www.ft.com/myft/following/ced74d18-5498-4cca-9640-34bf65b1f431.rss'),
    ]

Last edited by PeterT; 06-08-2021 at 07:02 AM.
hongho71 is offline   Reply With Quote
Old 07-26-2021, 09:16 AM   #8
eb00kreader
Junior Member
eb00kreader began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2021
Device: Kindle Paperwhite
Hi hongho71, can you please advise if this recipe works for you? I've tried chaning to my own RSS feed, but i'm not prompted for a username/password and it just fails. I understand that these need to be provided, but i'm not sure how.
As you've stated, the Calibre documentation says that if needs_subscription is set to True, which it is, then I'm supposed to be asked for a username and password. However, I am not.
Thanks
eb00kreader is offline   Reply With Quote
Old 07-30-2021, 11:35 PM   #9
hongho71
Connoisseur
hongho71 began at the beginning.
 
Posts: 55
Karma: 16
Join Date: Feb 2015
Device: Kindle Paperwhite
I just checked the FT recipe and it works fine. You have to put the username and password in Calibre, Fetch News, FT Opinions (Name of my Recipe), under Account (required).

Make sure you use your own myFT RSS Feed in the recipe. Each user FT feed will be different.
hongho71 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Financial Times Recipe disappeared teotjunk Recipes 11 08-21-2018 06:27 AM
Compress Financial Times Recipe duhduhduh Recipes 1 04-02-2017 09:40 AM
Financial Times Recipe not working teotjunk Recipes 0 01-21-2017 02:53 AM
[Recipe Request] Financial Times iloveredbull Recipes 1 06-28-2015 05:45 AM
Update Financial Times recipe sir-archimedes Recipes 0 04-24-2011 10:39 AM


All times are GMT -4. The time now is 04:54 AM.


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