scrapy / loginform

Fill HTML login forms automatically
270 stars 79 forks source link

Fails for https://www.worldremit.com/en/account/login #24

Open umrashrf opened 3 years ago

umrashrf commented 3 years ago
% python -m loginform -u ***** -p ***** https://www.worldremit.com/en/account/login
Traceback (most recent call last):
  File "/usr/local/opt/python@3.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/opt/python@3.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/umairashraf/.local/share/virtualenvs/base/lib/python3.7/site-packages/loginform.py", line 105, in <module>
    sys.exit(main())
  File "/Users/umairashraf/.local/share/virtualenvs/base/lib/python3.7/site-packages/loginform.py", line 98, in main
    values, action, method = fill_login_form(args.url, r.text, args.username, args.password)
  File "/Users/umairashraf/.local/share/virtualenvs/base/lib/python3.7/site-packages/loginform.py", line 77, in fill_login_form
    form = _pick_form(doc.xpath('//form'))
  File "/Users/umairashraf/.local/share/virtualenvs/base/lib/python3.7/site-packages/loginform.py", line 42, in _pick_form
    return sorted(forms, key=_form_score, reverse=True)[0]
IndexError: list index out of range