Skip to content

Web Data Frames

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

mkearney/wibble

Repository files navigation

wibble

lifecycle

Web Data Frames

Install

Install the dev version from Github:

## from github
remotes::install_github("mkearney/wibble")

Example

Scrape/wrangle CNN US site

## load pkg
library(wibble)

## scrape CNN
cnn <- webble("https://cnn.com/us")

## wibble and wobble
cnn %>%
  wibble() %>%
  wobble("body div") %>%
  wobble("ul")
#> # A tibble: 37 x 3
#>    li         a         h2       
#>    <list>     <list>    <list>   
#>  1 <lgl [1]>  <lgl [1]> <lgl [1]>
#>  2 <list [4]> <lgl [1]> <lgl [1]>
#>  3 <list [9]> <lgl [1]> <lgl [1]>
#>  4 <list [4]> <lgl [1]> <lgl [1]>
#>  5 <list [6]> <lgl [1]> <lgl [1]>
#>  6 <list [2]> <lgl [1]> <lgl [1]>
#>  7 <list [5]> <lgl [1]> <lgl [1]>
#>  8 <list [5]> <lgl [1]> <lgl [1]>
#>  9 <list [7]> <lgl [1]> <lgl [1]>
#> 10 <list [7]> <lgl [1]> <lgl [1]>
#> # … with 27 more rows