how to find the iframe src and print the url ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to find the iframe src and print the url ?

i've tried multiple times but... please tell me how to do it, here is my code that i tried: from selenium import webdriver from bs4 import BeautifulSoup import time import html5lib from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait as wait chrome_path = r"C:\Users\666\Desktop\New folder (8)\chromedriver.exe" driver=webdriver.Chrome(chrome_path) url = 'https://www.milversite.club/milver/outsiders-1x01-video_060893d7a.html' driver.set_page_load_timeout(15) driver.get(url) iframe = driver.find_elements_by_tag_name('iframe') print (iframe)("utf-8")

5th Oct 2018, 1:01 PM
Andre Coolman
Andre Coolman - avatar
2 Answers
0
url link that you mean is 404 page not found
6th Oct 2018, 3:09 AM
Wongvarit
6th Oct 2018, 3:19 AM
Steven M
Steven M - avatar