How can i get input value from html page
like
<input type="hidden" name="captId" value="AqXpRsh3s9QHfxUb6r4b7uOWqMT" ng-model="captId">
I have input name [ name="captId" ] and need his value
import re , urllib , urllib2
a = urllib2.urlopen('http://www.example.com/','').read()
thanx
update 1
I installed BeautifulSoup and used it but there some errors
code
import re , urllib , urllib2
a = urllib2.urlopen('http://www.example.com/','').read()
soup = BeautifulSoup(a)
value = soup.find('input', {'name': 'scnt'}).get('value')
error
"soup = BeautifulSoup(a) NameError: name 'BeautifulSoup' is not defined"