Apr-30-2021, 07:03 AM
(This post was last modified: Apr-30-2021, 08:13 AM by Yoriz.
Edit Reason: Added code tags
)
Hi, all
I am trying to extract table data (property lease and sold) from below link:
https://oir.centanet.com/en/transaction/...ntindex=-1
I tried many method to extract, but still fail. Below is my code for your reference. I hope to extract the property sell data and insert into pandas dataframe for easy manage
Thank You for your help
I am trying to extract table data (property lease and sold) from below link:
https://oir.centanet.com/en/transaction/...ntindex=-1
I tried many method to extract, but still fail. Below is my code for your reference. I hope to extract the property sell data and insert into pandas dataframe for easy manage
1 2 3 4 5 6 7 8 9 10 |
driver.get(base_url) sleep( 30 ) tables = WebDriverWait(driver, 20 ).until(EC.presence_of_all_elements_located((By.XPATH, "//*[@id='__layout']/div/div[1]/div/div[3]/div[1]/div[2]/table/tbody" ))) for t in range ( len (tables)): print ( "element in list: " ,tables[t].text) |