how to get the attribute of a tag beautifulsoup code example Example: beautiful soup get html attribute value output = input_tag[0]['value']