Using selenium with python to extract javascript-generated HTML? Firebug?

前端 未结 1 680
Happy的楠姐
Happy的楠姐 2021-01-16 23:41

Python noobie here.

What I have is a data harvesting problem. I\'m on this website, and when I inspect the element that I want with Firebug, it shows the source cont

1条回答
  •  再見小時候
    2021-01-17 00:21

    Try to use the following code and see if it works.

    import selenium.webdriver.support.ui
    
    element = WebDriverWait(driver, 10).until(
            lambda driver : driver.find_element_by_xpath("fImageMap > area:nth-child(2)")
    )
    

    0 讨论(0)
提交回复
热议问题