07-25-2010, 05:52 PM | #1 | |
Newbie e-reader
Posts: 3
Karma: 10
Join Date: Jul 2010
Location: The South
Device: Nook
|
Word Press login help
I struggled to get a basic news custom recipe to login to one of my private blogs ... finally found this post deep into the thread:
https://www.mobileread.com/forums/sho...&postcount=605 Quote:
Nothing else online even got me close to that. I never found the "needs_subscription = True" part attached to the rest of the code, for whatever reason. So I finally got it all together and made it work. My blog is a WP one, privatized, and I couldn't find anything online written about anyone using Calibre to login to a WP blog. So this is what I came up with that will allow a privatized blog, like one using "Private WP" plugin with WP: Code:
needs_subscription = True def get_browser(self): br = BasicNewsRecipe.get_browser() if self.username is not None and self.password is not None: br.open('Your-WP-Blog-Login-Page-URL-HERE') br.select_form(name='loginform') br['log'] = self.username br['pwd' ] = self.password br.submit() return br It works great. Now I just need to get a better recipe set up to work with the Carrington Theme for WP, or change my theme 'cause it's awful looking, whereas other blogs I have used basic recipe to fetch rss look nice. There is no difference between all these blogs recipes in how they are parsed, and none but that one uses "Carrington" so it seems that's the basic difference, and I'm not wanting to get deep into coding to make it better. It'd be much easier to just switch WP themes. FWIW. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GRYPHONWOOD PRESS/BLADE RED PRESS Halloween Giveaway | Winter | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 10-30-2009 06:39 AM |
Any word on the UK press conf today? | Riocaz | News | 17 | 08-26-2009 04:38 PM |
Romance Ebers, Georg: A Word, Only a Word. V1. 20 Mar 2009 | crutledge | Kindle Books | 0 | 03-20-2009 08:14 AM |
Romance Ebers, Georg: A Word, Only a Word. V1. 20 Mar 2009 | crutledge | IMP Books | 0 | 03-20-2009 08:12 AM |
Romance Ebers, Georg: A Word, Only a Word. V1. 20 Mar 2009 | crutledge | ePub Books | 0 | 03-20-2009 08:09 AM |