¡@

Home 

python Programming Glossary: inputtag

Extracting an attribute value with beautifulsoup

http://stackoverflow.com/questions/2612548/extracting-an-attribute-value-with-beautifulsoup

import BeautifulStoneSoup soup BeautifulStoneSoup s inputTag soup.findAll attrs name stainfo output inputTag 'value' print.. s inputTag soup.findAll attrs name stainfo output inputTag 'value' print str output I get a TypeError list indices must.. question .findAll returns list of all found elements so inputTag soup.findAll attrs name stainfo inputTag is a list probably..