我有困难从下面的网站链接刮地址,请帮我刮地址。在
http://www.salatomatic.com/d/Revesby+17154+Ahlus-Sunnah-Wal-Jamaah-Revesby
上面的weblink的源代码如下
<td width="100%"><div class="titleBM">Bankstown Masjid </div>Meredith Street, Bankstown, New South Wales 2200</td>
我试图在</div>
之后立即获取该值
我当前的代码还没有完成,但看起来像下面这样
^{pr2}$
这是因为JavaScript,您应该使用selenium webdriver来解决这个问题:
在此处查找更多信息Link
文本是
<div>
元素的下一个同级,因此使用next_sibling
:运行方式如下:
^{pr2}$它产生:
相关问题 更多 >
编程相关推荐