Reputation: 35
I am trying to scrape this(marked in red in attached image) embedded YouTube video from " https://www.akrapovic.com/en/car/product/86/Ferrari/458-Italia-458-Spider/Slip-On-Line-Titanium?brandId=20&modelId=70&yearId=3945" but am not able to find its source or any YouTube link to scrape.
Code I've written to get is as follows. Unfortunately, all it does is throws an 'NoSuchElementException'.Please suggest me best way to go about with this. Thanks in advance.
driver.get(part_page_link_holder3)
video_holder = driver.find_element(By.CSS_SELECTOR, 'video-fullscreen')
driver.execute_script("arguments[0].click();", video_holder)
video_holder2 = driver.find_element(By.XPATH,'//iframe')
print(video_holder2)
Upvotes: 0
Views: 370
Reputation: 780
It is visible in the code after looking through inspect. It only shows up after clicking the play button on the video though.
Upvotes: 1