Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- produt_id = "BJ338851"
- bs4 = BeautifulSoup(html.text, "html.parser")
- table = bs4.find("div", {"id":"main"}).find("div", {"id":"main_inner"}).find("div", {"id":"work_left"}).find("div", {"data-product-id":str(produt_id)})
- slider = table.find("div", {"class":"slider_body_inner swiper-container-horizontal"}).find("ul",{"class":"slider_items trans"})
- rows = slider.find_all("li")
- for row in rows:
- images = row.find("source")['srcset'].split("//")[1]
- print(images)
- print("===========================================\n\n")
Advertisement
Add Comment
Please, Sign In to add comment