View Single Post
Old 09-11-2024, 05:22 AM   #1
ronzo7
Junior Member
ronzo7 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2024
Device: Kindle Paperwhite
Trying to Setup Pocket for Calibre to Kindle - Need Help

Hi all,

Trying to setup Calibre so I can send my Pocket saved articles to my Kindle.

I'm not sure if there's a better or simpler way to save and send multiple web articles to kindle - this is the only way I'm aware of but if there is please let me know! I know how to send RSS feeds, but I mean various articles from various sites.

Anyway, I've found the "Pocket" recipe under "Customize bullitin recipe" - "Unknown".

So this is the main area of code I need help with, I think:

Code:
 if self.username is not None and self.password is not None:
            br.open(self.legacy_login_url)
            br.select_form(nr=0)
            br['feed_id'] = self.username
            br['password'] = self.password
            br.submit()
        else:
            self.user_error("This Recipe requires authentication")
        return br
I have entered 'myemailaddres' for 'feed_id' and 'mypassword' for 'password', and that seems fine.

For "br.select_form(nr=0)" I think I'm supposed to change the zero to a number, but I have no idea WHAT the number should be - I tried 1-10 and none of them worked.

Help would be greatly appreciated I am a total noob in terms of this, so have pretty much no idea what I'm doing.

Thanks!
ronzo7 is offline   Reply With Quote