Open therealblitz00 opened 2 years ago
c:\Users\Manuel Sampaio\Documents\teste\teste.ipynb Cell 5' in <cell line: 2>() 1 pattern = re.compile(r'\s--\sData\s--\s') ----> 2 script_data = soup.find('script', text=pattern).contents[0]
AttributeError: 'NoneType' object has no attribute 'contents'
Any help please
check your request and make sure you are getting a 200 status code. If not most likely you need to add a header to your get request as YF does not like people scraping their site.
c:\Users\Manuel Sampaio\Documents\teste\teste.ipynb Cell 5' in <cell line: 2>() 1 pattern = re.compile(r'\s--\sData\s--\s') ----> 2 script_data = soup.find('script', text=pattern).contents[0]
AttributeError: 'NoneType' object has no attribute 'contents'
Any help please