我有一個錯誤類型錯誤: 'NoneType' 對象不是可調用的蟒蛇
File "logins3", line 17, in <module>
my_inputs = soup.findall('input')
TypeError: 'NoneType' object is not callable
我的代碼
# extract the token
soup = BeautifulSoup(response.content)
my_inputs = soup.findall('input')
for input in my_inputs:
print input.name + input['value'] #is here
信息
<input type="hidden" name="return" value="ovL2FuaW1lZGlnaXRhbG5ldHdvcmsuZZXgucGhwL2Nvbm5leGlvbg==" />
<input type="hidden" name="8d900dda34d7a3d37252b4a3c8" value="1" />
我需要這個令牌創建我的腳本我看不到如何修復它
ty