SHARE
TWEET

Untitled

lewislover44 Sep 22nd, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. table_raw = self.driver.find_element_by_tag_name('tbody').get_attribute('innerHTML')
  2.         soup = BeautifulSoup(table_raw, features='html.parser')
  3.  
  4.         rows = soup.find_all('tr')
  5.         for row in rows:
  6.             cols = row.find_all('td')
  7.             cols = [x.text.strip() for x in cols]
  8.             print(cols)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top