Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- table_raw = self.driver.find_element_by_tag_name('tbody').get_attribute('innerHTML')
- soup = BeautifulSoup(table_raw, features='html.parser')
- rows = soup.find_all('tr')
- for row in rows:
- cols = row.find_all('td')
- cols = [x.text.strip() for x in cols]
- print(cols)
Advertisement
Add Comment
Please, Sign In to add comment