我正在尝试从here中提取iframe src
:
<div class="video-wrapper">
<iframe src="http://www.youtube.com/embed/6KAG7kltnuE? autohide=1&color=white&fs=1&autoplay=0&iv_load_policy=3&rel=0&modestbranding=1&showinfo=0&hd=1" frameborder="0" width="940" height="526" allowfullscreen></iframe> </div>
我当前的XPath已关闭且为//div[@class="video-wrapper"]/iframe/[@src]
答案 0 :(得分:1)
试试这个XPath:
//div[@class="video-wrapper"]/iframe/@src