25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
boB Rudis
b4de168550
|
4 yıl önce | |
---|---|---|
R | 4 yıl önce | |
inst/tinytest | 4 yıl önce | |
man | 4 yıl önce | |
tests | 4 yıl önce | |
.Rbuildignore | 4 yıl önce | |
.codecov.yml | 4 yıl önce | |
.gitignore | 4 yıl önce | |
.travis.yml | 4 yıl önce | |
CONDUCT.md | 4 yıl önce | |
DESCRIPTION | 4 yıl önce | |
LICENSE | 4 yıl önce | |
LICENSE.md | 4 yıl önce | |
NAMESPACE | 4 yıl önce | |
NEWS.md | 4 yıl önce | |
README.Rmd | 4 yıl önce | |
README.md | 4 yıl önce | |
statically.Rproj | 4 yıl önce |
README.md
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")
# or
remotes::install_git("https://git.rud.is/hrbrmstr/statically.git")
# or
remotes::install_git("https://git.sr.ht/~hrbrmstr/statically")
# or
remotes::install_gitlab("hrbrmstr/statically")
# or
remotes::install_bitbucket("hrbrmstr/statically")
# or
remotes::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 | (%) |
---|---|---|---|---|---|---|---|---|
R | 4 | 0.8 | 38 | 0.78 | 11 | 0.34 | 29 | 0.44 |
Rmd | 1 | 0.2 | 11 | 0.22 | 21 | 0.66 | 37 | 0.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.