Get all lego sets in a category

lego_get_sets(url)

Arguments

url

url of the base page (additional pages will be retrieved automatically)

Examples

library(LegoR) lego_get_sets("https://shop.lego.com/en-US/category/creator-3-in-1")
#> Warning: 1 parsing failure. #> row col expected actual #> 6 -- a number .
#> # A tibble: 25 x 5 #> set_flag set_id set_price set_title set_link #> <chr> <chr> <dbl> <chr> <chr> #> 1 New 31097 80.0 Townhouse Pet Sh… https://shop.lego.com/en-US/prod… #> 2 New 31096 60.0 Twin-Rotor Helic… https://shop.lego.com/en-US/prod… #> 3 New 31095 50.0 Fairground Carou… https://shop.lego.com/en-US/prod… #> 4 New 31098 30.0 Outback Cabin https://shop.lego.com/en-US/prod… #> 5 NA 31084 90.0 Pirate Roller Co… https://shop.lego.com/en-US/prod… #> 6 NA 31083 60.0 Cruising Adventu… https://shop.lego.com/en-US/prod… #> 7 NA 31081 40.0 Modular Skate Ho… https://shop.lego.com/en-US/prod… #> 8 NA 31077 40.0 Modular Sweet Su… https://shop.lego.com/en-US/prod… #> 9 NA 31093 40.0 Riverside Houseb… https://shop.lego.com/en-US/prod… #> 10 NA 31079 35.0 Sunshine Surfer … https://shop.lego.com/en-US/prod… #> # … with 15 more rows