Thread: login
View Single Post
Old 07-19-2012, 07:57 AM   #1
Steven630 began at the beginning.
Posts: 147
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2

When running a recipe that involves a login. It always show the following message:

InputFormatPlugin: Recipe Input running
Python function terminated unexpectedly
No articles found, aborting (Error Code: 1)
Traceback (most recent call last):
File "", line 132, in main
File "", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\", line 192, in main
File "site-packages\calibre\gui2\convert\", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\", line 979, in run
File "site-packages\calibre\customize\", line 208, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\recipe_", line 105, in convert
File "site-packages\calibre\web\feeds\", line 881, in download
File "site-packages\calibre\web\feeds\", line 1033, in build_index
ValueError: No articles found, aborting

But I've checked the parsing repeatedly and think it's a result of failing to login.

My code involving login is as follows:

def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:'THE WEBSITE LOGIN LINK')
br.select_form(nr = 0)
br['loginname'] = self.username
br['password'] = self.password
return br

I don't know if I got it right. When I intentionally gave an incorrect password, however, the error was the same ( "No articles found, aborting") and Calibre didn't say the password is wrong. That makes me think all the whole thing is because of the login.

Here is the website code regarding login:

<div id="passport">

<div class="title"><h2>Log in</h2></div>

<div class="singin">

<form id="loginForm">

<div class="signinTitle" >

<span class="regTips" id="logTips"></span>


<ul class="inputBox">

<li class="loginname">


<input id="nameInput" type="text" name="loginname" maxlength="30" value="" onfocus="hideTips(jQuery('#nameInput'))">


<li class="password">


<input id="pwdInput" type="password" name="password" maxlength="16" value="" onfocus="hideTips(jQuery('#pwdInput'))">


<li id="chechbox">

<p class="tip">

<input name="remember" type="checkbox" checked="checked"/>

<span>remember me</span>

<span class="forgetPwd"><a href="" >forgot password</a></span>



<li class="submit clearfix">

<input type="submit" id="submitbutton" title="submit" value="login" onclick="login(jQuery('#loginForm'));return false"></input>




But I still can't see why the login failed.

Last edited by Steven630; 07-19-2012 at 08:00 AM.
Steven630 is offline   Reply With Quote