I am still a beginner in python and I am trying to scrape a website, I would like Python to search for a value until it is visible, therefore retry until the value is available rather than giving error 'AttributeError: 'ResultSet' object has no attribute 'get' if no value is found. This is my code right now:
resumeURL='url'
response=self.session.get(resumeURL,headers=headers)
soup=BeautifulSoup(response.content, "html.parser")
form=soup.find_all('input',{'name':'form_id', 'type':'hidden'})
for form in form:
print(form.get('value'))