Trying to find the formkey but getting the error:
TypeError: 'NoneType' object is not subscriptable
On this webpage.
need to find the value. What I am searching for can be found at view-source:https://wellgosh.com/customer/account/create/ and control+f name="form_key" value=
formkey_acc = soup.find('input', {'name': 'form_key'})['value']
s = requests.session()
def c_acc():
acc = s.get('https://wellgosh.com/customer/account/create/')
soup = bs(acc.text, 'html.parser')
formkey_acc = soup.find('input', {'name': 'form_key'})['value']
print(formkey_acc)
formkey_acc = soup.find('input', {'name': 'form_key'})['value']
TypeError: 'NoneType' object is not subscriptable