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 08-03-2017, 06:24 PM   #1
frague
Junior Member
frague began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2017
Location: Paris, France
Device: Kindle Paperwhite
Recipe request : Les Echos suscriber edition

Hello all,
I am using Calibre for a few years and I really love this software. Kovid really did a great job. I am using it to dowload the suscriber edition of French newspaper Le Monde, it's working very well. I would like to do the same with Les Echos for the suscriber edition (the recipe on Calibre is only for non paying articles).

Here is what I have.

Could you help me building the recipe ?
frague is offline   Reply With Quote
Old 08-04-2017, 12:27 AM   #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,343
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just to get you started, here is the login code:

Code:
    needs_subscription = 'optional'

    def get_browser(self):
        br = BasicNewsRecipe.get_browser(self)
        if self.username and self.password:
            br.open('http://m.lesechos.fr/abonnement/login.php')
            br.select_form(name="frmFusion")
            br['USER'] = self.username
            br['PASS'] = self.password
            br.submit()
        return br
I haven't tested it, it is based on inspecting the source code of the login page.

Then you need to write a parse_index() function to get the articles from the page you linked to. See https://manual.calibre-ebook.com/news.html
kovidgoyal is online now   Reply With Quote
Advert
Old 08-04-2017, 03:21 PM   #3
frague
Junior Member
frague began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2017
Location: Paris, France
Device: Kindle Paperwhite
Thank you very much for your help Kovid ! I am going to use the login code and write the parse function with the material you provided me. I keep you posted
frague is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Les Echos has this reader DaleDe Netronix 4 05-07-2008 06:57 AM
French daily Les Echos for iLiad and STAReBook users Alexander Turcic iRex 5 09-25-2007 12:43 PM
Les Echos on iLiad video TadW iRex 14 09-12-2007 07:28 PM
PVI to release e-book reader in partnership with Les Echos Alexander Turcic News 18 04-15-2007 12:03 PM
Les Echos, Chinese Iliads and other Newpaper E-reader deals jæd News 3 02-07-2007 08:40 AM


All times are GMT -4. The time now is 01:50 AM.


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