get_species_page_summary_: Get a summary data.frame of an ECOS page scrape

Description Usage Arguments Details Note

Description

Note the trailing underscore, to separate from get_species_page_summary

Usage

1
get_species_page_summary_(url, species, pause = TRUE)

Arguments

url

The url of the species page

species

The scientific name of the species

pause

Pause for 0.5-3s during scraping [default = TRUE]

Details

By default, get_species_page_summary will fetch the species' ECOS page given the URL, but there may be times when the page has already been fetched. In those cases, the page can be specified to save time.

Note

Apparently, FWS does not serve the same version of a species' page up twice in a row. Instead, the same information will be presented in different orders. We have to use strsplit along with str_trim to get clean lines, then sort before doing the MD5 hash.


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