Return a data.frame with links (and anchor text) from a species' ECOS page.

get_species_links(url, clean = TRUE, pause = TRUE, verbose = TRUE)

Arguments

url
The URL of a species' page on ECOS or path to the HTML file
clean
Remove useless links (e.g., www.usa.gov) [default = TRUE]
pause
0.5-3 second pause to be nice to the server [default = TRUE]
verbose
Message the species being processed [default = TRUE]

Value

A data.frame with variables:

Scientific_Name
The species' scientific name, as given by ECOS
href
The link as given on the ECOS page, if available
link
The link, in absolute form, if available
text
The anchor text of the <a> tag, if available

Note

Either url or page must be specified.

See also

remove_silly_links get_bulk_species_links

Examples

## Not run: ------------------------------------ # res <- get_species_url("Gila purpurea") %>% get_species_links() # head(res) ## ---------------------------------------------