Description Usage Arguments Details Value Examples
Use phantomjs to get a page from ECOS
1 |
url |
The URL of the species' ECOS page |
file |
The path to which the HTML will be written |
A significant amount of content on ECOS pages is rendered from
javascript functions, and 'standard' scraping tools like read_html
miss those components. phantomjs
provides a function (phantomjs
) to render the full page, complete with
javascript elements, and write them to file.
This function should be preferred over get_species_page in most cases even though it is slightly slower with the scrape because it will get certain tables (e.g., the petitions table) and content like the species' range map data.
The status of the phantomjs scrape (1 or 0) or NULL if an HTTP error
1 2 3 4 | ## Not run:
An example, not run
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.