如何从R中的html格式检索url?

时间:2014-04-05 06:11:26

标签: html r xpath

在网站" http://www.amazon.com/Logitech-910-002974-Wireless-Mouse-Scrolling/dp/B007T1CTDE/ref=sr_1_4?ie=UTF8&qid=1396676617&sr=8-4&keywords=logitech+mouse"

我想检索链接

"/product-reviews/B002HWRJBC/ref=sp_detail_page_cr_lnk"

in

<a class="a-size-base" href="/product-reviews/B002HWRJBC/ref=sp_detail_page_cr_lnk">520</a>

任何人都可以帮我使用Xpath吗? 谢谢!

1 个答案:

答案 0 :(得分:1)

您是否想要抓取亚马逊的评论?我写了package for this来回复another StackOverflow question