Skip to content

Repository files navigation

Project Status: Active – The project has reached a stable, usable state and is being actively developed.Signed bySigned commit %Linux build Status
Minimal R VersionLicense

statically

Generate Webpage Screenshots Using the Statically API

Description

Statically (https://statically.io/screenshot/) maintains a free API to generate screenshots of webpages. Tools are provided to capture website screenshots using this API.

What’s Inside The Tin

The following functions are implemented:

  • generate_screenshot: Generate a webpage screenshot

Installation

install.packages("statically", repos="https://cinc.rud.is")
# orremotes::install_git("https://git.rud.is/hrbrmstr/statically.git")
# orremotes::install_git("https://git.sr.ht/~hrbrmstr/statically")
# orremotes::install_gitlab("hrbrmstr/statically")
# orremotes::install_bitbucket("hrbrmstr/statically")
# orremotes::install_github("hrbrmstr/statically")

NOTE: To use the ‘remotes’ install options you will need to have the {remotes} package installed.

Usage

library(statically)
# current version
packageVersion("statically")
## [1] '0.1.0'

Default:

generate_screenshot("https://www.latimes.com/")

Mobile:

generate_screenshot("https://www.latimes.com/", mobile=TRUE)

Full page (not shown b/c it’s super duper long):

generate_screenshot("https://rud.is/b", full_page=TRUE)

statically Metrics

Lang# Files(%)LoC(%)Blank lines(%)# Lines(%)
R40.8380.78110.34290.44
Rmd10.2110.22210.66370.56

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

About

📸 Generate Webpage Screenshots Using the Statically API

Topics

Resources

Stars

26 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages