tree2node: extract nodes from a html tree without having to write xpath!

Description Usage Arguments Value Examples

Description

extract nodes from a html tree without having to write xpath!

Usage

1
  tree2node(tree, select, children = NULL)

Arguments

tree

a html tree returned from url2tree

select

a css selector to navigate to, e.g. 'class="keyword"'. This can also be a node attribute, e.g. 'cellpadding="1"'. Make sure to include double quotes around the value associated with the class/id.

children

OPTIONAL subsequent children nodes to navigate to. e.g. "a", "ul/li/a" etc.

Value

a list of nodes matching the constructed xpath expression

Examples

1
# see example in the README

abelsonlive/scraply documentation built on May 10, 2019, 4:09 a.m.