0
當我嘗試用ScrapingHub的儀表板進行登錄,我得到了一些網站出現以下錯誤進入「日誌」部分:進行登錄失敗的一些網站,ScrapingHub的短跑
scraping hub exceptions.KeyError: 'No input element with the name None'
如何解決打?
編輯:這裏的身份驗證方法:
當我嘗試用ScrapingHub的儀表板進行登錄,我得到了一些網站出現以下錯誤進入「日誌」部分:進行登錄失敗的一些網站,ScrapingHub的短跑
scraping hub exceptions.KeyError: 'No input element with the name None'
如何解決打?
編輯:這裏的身份驗證方法:
這恰好是loginform library一個bug,它是由this change
固定的,我已經在Scrapinghub成功測試了這一點。
ScrapingHub使用[loginform](https://github.com/scrapy/loginform)庫自動執行登錄過程。您必須提供更多關於您嘗試登錄的網站的信息,以便進行調試。 – dangra
我該如何做到這一點?直接進入表單,如:'login_field_name':'mylogin'和'password_field_name':'mypassword'? – Snite
通過更多的信息我被推薦到真正的「登錄網址」字段值,像https:// myurl/login這樣的東西沒有用。一個更好的地方是http://support.scrapinghub.com/,或者如果你是一個能夠調試和修復東西的開發者,請在[loginform issues](https://github.com/scrapy)/loginform/issues) – dangra