Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yooli.com: Loginform is not working for a given website #7

Open
oltarasenko opened this issue Feb 12, 2015 · 4 comments
Open

yooli.com: Loginform is not working for a given website #7

oltarasenko opened this issue Feb 12, 2015 · 4 comments

Comments

@oltarasenko
Copy link

Looks like the problem is that this website does not have form element. Do you think there is a way to handle such cases?

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
self.runUntilCurrent()
File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
call.func(_call.args, *_call.kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 362, in callback
self._startRunCallbacks(result)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
self._runCallbacks()
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
current.result = callback(current.result, _args, *_kw)
File "/usr/lib/pymodules/python2.7/slybot/spider.py", line 119, in parse_login_page
args, url, method = fill_login_form(response.url, response.body, username, password)
File "/usr/lib/python2.7/dist-packages/loginform.py", line 74, in fill_login_form
form = _pick_form(doc.xpath('//form'))
File "/usr/lib/python2.7/dist-packages/loginform.py", line 42, in _pick_form
return sorted(forms, key=_form_score, reverse=True)[0]
exceptions.IndexError: list index out of range

@dangra
Copy link
Member

dangra commented Feb 18, 2015

we need more details to debug this issue, a sample html or at least the url to reproduce the error.

@oltarasenko
Copy link
Author

@JFluo2011
Copy link

Hey man, did you solve this problem? @oltarasenko

@dangra
Copy link
Member

dangra commented Mar 8, 2016

The page doesn't contain a FORM element, we can workaround it but the site seems to use javascript to submit the form and includes a verification (captcha?) step. It is unlikely we can automate it in loginform without lot of work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants