【发布时间】:2021-10-30 13:10:45
【问题描述】:
我正在尝试从 coinbase pro 获取硬币的名称。 html_nodes 返回 {xml_nodeset (0)}。知道如何解决这个问题吗?
网站:https://pro.coinbase.com/markets
selectorGagate.dOEGza
检查标签:xpath = '//[contains(concat( " ", @class, " " ), concat( " ", "dOEGza", " " ))]'*
url = "https://pro.coinbase.com/markets"
pg <- read_html(url)
html_nodes(pg, '.dOEGza')
{xml_nodeset (0)}
即使使用 xpath:
html_nodes(pg, xpath = '//*[contains(concat( " ", @class, " " ), concat( " ", "dOEGza", " " ))]')
{xml_nodeset (0)}
【问题讨论】:
标签: css r screen-scraping rvest