get_species_links: Return all links on a species' ECOS page

Description Usage Arguments Value Note See Also Examples

Description

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

Usage

1
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

1
2
3
4
5
## Not run: 
  res <- get_species_url("Gila purpurea") %>% get_species_links()
  head(res)

## End(Not run)

jacob-ogre/ecosscraper documentation built on May 18, 2019, 8 a.m.