dp查找iframe元素
from DrissionPage import ChromiumPage dp = ChromiumPage() # # 同域的直接拿 dp.get('https://www.qiju.cc/vod/play/id/367/sid/2/nid/1.html') aa = dp.ele('text=第01集') print(aa.text) # 不同域的先拿iframe # dp.get('https://DrissionPage.cn/demos/iframe_diff_domain.html') # iframe = dp.get_frame('tag:iframe') # aa = iframe.ele('网易首页') # print(aa.text)