Hello, I'm using beautiful soup (in Python). I have such hidden input object:
<input type="hidden" name="form_build_id" id="form-531f740522f8c290ead9b88f3da026d2" value="form-531f740522f8c290ead9b88f3da026d2" />
I need in id/value.
Here is my code:
mainPageData = cookieOpener.open('http://page.com').read()
soupHandler = BeautifulSoup(mainPageData)
areaId = soupHandler.find('input', name='form_build_id', type='hidden')
TypeError: find() got multiple values for keyword argument 'name'
I tried to change code:
print soupHandler.find(name='form_build_id', type='hidden')
None
What's wrong?