Skip to content
Advertisement

Scrape data inside a JavaScript function by using python selenium

Please let me know if there is any option available to scrape data inside a JavaScript function below using Selenium

page https://www.bayut.com/index/sale-prices-apartments-abu-dhabi.html

input code

JavaScript

Output

Date Value

2010-01-31 1443

2010-02-28 1407

Tried but not working My output file should have date and value columns, please let me know if there is option available

JavaScript

Advertisement

Answer

use driver.execute_script:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement