I am trying to download the product pictures of bikes. On websites where the product pictures are in sliders/wrappers/carousels etc., I always run into problems. E.g. on this page: https://yeticycles.com/bikes/160e. BeautifulSoup simply does not find the div. In general, I am only interested in the first picture that is visible. Like in this screenshot.
I am trying it with the following code:
from selenium import webdriver
from bs4 import BeautifulSoup
driver = webdriver.PhantomJS(executable_path='C:\\phantomjs-2.1.1-windows\\bin\\phantomjs.exe')
driver.get('https://yeticycles.com/bikes/160e')
html = driver.page_source
soup = BeautifulSoup(html, 'lxml')
print(soup.find("div", {"class": 'base-picture bike-hero-image'}).find("img").get('src'))