Skip to contents

Mostly useful for internal workings of this package, this function extracts images at given URL and returns it in a data frame.

Usage

kitty_pics_df(url, ...)

Arguments

url

URL for the source from which individual image URLs are to be extracted.

...

Currently ignored.

Value

A tibble containing extracted details from the provided URL.

Examples

set.seed(123)
kittyR::kitty_pics_df("https://unsplash.com/s/photos/kitten/")
#> # A tibble: 98 × 3
#>    image_type    id url                                                         
#>    <chr>      <int> <chr>                                                       
#>  1 1              1 https://images.unsplash.com/photo-1513977055326-8ae6272d90a…
#>  2 1              2 https://images.unsplash.com/photo-1513977055326-8ae6272d90a…
#>  3 1              3 https://images.unsplash.com/photo-1513977055326-8ae6272d90a…
#>  4 1              4 https://images.unsplash.com/photo-1533743983669-94fa5c4338e…
#>  5 1              5 https://images.unsplash.com/photo-1533743983669-94fa5c4338e…
#>  6 1              6 https://images.unsplash.com/photo-1533743983669-94fa5c4338e…
#>  7 1              7 https://images.unsplash.com/photo-1555685812-4b943f1cb0eb?i…
#>  8 1              8 https://images.unsplash.com/photo-1555685812-4b943f1cb0eb?i…
#>  9 1              9 https://images.unsplash.com/photo-1555685812-4b943f1cb0eb?i…
#> 10 1             10 https://images.unsplash.com/photo-1557166984-b00337652c94?i…
#> # … with 88 more rows
#> # ℹ Use `print(n = ...)` to see more rows