Yahoo website update
Opened this issue · 1 comments
therealblitz00 commented
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
doublec1985 commented
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.