I want to store the text of value in a variable status
which is either Discharging or Charging
<input id="batterystatus" value="Discharging" type="hidden">
I have tried to store text in status
site="http://jiofi.local.html/"
opener=uo(site)
page=opener.read()
opener.close()
parser = bs(page, "html.parser")
status=parser.find(id='batterystatus')