Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data_table = soup.find('h2', text=re.compile('RELATED STOCKS')).find_parent('div').find('table')
- data_table = soup.find('h2', text=re.compile('ANALYST OPINIONS')).find_parent('div').find('table')
- data_table = soup.find('h2', text=re.compile('.*?STOCK.*?INFORMATION.*?', re.DOTALL))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement