Quantcast
Channel: MobileRead Forums - Calibre
Viewing all articles
Browse latest Browse all 31516

login

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

Spoiler:
InputFormatPlugin: Recipe Input running
Python function terminated unexpectedly
No articles found, aborting (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 192, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 979, in run
File "site-packages\calibre\customize\conversion.py", line 208, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\recipe_ input.py", line 105, in convert
File "site-packages\calibre\web\feeds\news.py", line 881, in download
File "site-packages\calibre\web\feeds\news.py", 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:


Spoiler:
def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('THE WEBSITE LOGIN LINK')
br.select_form(nr = 0)
br['loginname'] = self.username
br['password'] = self.password
br.submit()
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:

Spoiler:
<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>

</div>

<ul class="inputBox">

<li class="loginname">

<label>email</label>

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

</li>

<li class="password">

<label>password</label>

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



</li>

<li id="chechbox">

<p class="tip">

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

<span>remember me</span>

<span class="forgetPwd"><a href="http://passport.infzm.com/passport/resetPassWord" >forgot password</a></span>

</p>

</li>

<li class="submit clearfix">

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

</li>

</ul>

</form>


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

Viewing all articles
Browse latest Browse all 31516

Trending Articles