{"id":13857599,"url":"https://github.com/rstudio/webshot2","last_synced_at":"2025-10-24T03:06:23.912Z","repository":{"id":39793095,"uuid":"174575762","full_name":"rstudio/webshot2","owner":"rstudio","description":"Take screenshots of web pages from R","archived":false,"fork":false,"pushed_at":"2025-04-16T21:03:30.000Z","size":3336,"stargazers_count":113,"open_issues_count":31,"forks_count":17,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-17T07:06:58.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rstudio.github.io/webshot2/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rstudio.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-08T16:57:59.000Z","updated_at":"2025-04-16T21:03:36.000Z","dependencies_parsed_at":"2024-02-09T01:57:01.260Z","dependency_job_id":"31f2e59e-f1fd-41b4-95d4-be16e002ad26","html_url":"https://github.com/rstudio/webshot2","commit_stats":{"total_commits":63,"total_committers":11,"mean_commits":"5.7272727272727275","dds":"0.31746031746031744","last_synced_commit":"37a47513d86768fb2f0865d3ec8e70ee7b0df1b8"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fwebshot2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fwebshot2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fwebshot2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fwebshot2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstudio","download_url":"https://codeload.github.com/rstudio/webshot2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T03:01:41.617Z","updated_at":"2025-10-24T03:06:23.908Z","avatar_url":"https://github.com/rstudio.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# webshot2\n\n\u003c!-- badges: start --\u003e\n[![R build status](https://github.com/rstudio/webshot2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/webshot2/actions)\n[![CRAN status](https://www.r-pkg.org/badges/version/webshot2)](https://CRAN.R-project.org/package=webshot2)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/webshot2?color=brightgreen)](https://www.r-pkg.org/pkg/webshot2)\n[![RStudio community](https://img.shields.io/badge/community-webshot2-blue?style=social\u0026logo=rstudio\u0026logoColor=75AADB)](https://forum.posit.co/new-topic?category=shiny\u0026tags=webshot2)\n\u003c!-- badges: end --\u003e\n\n**webshot2** is meant to be a replacement for [webshot](https://wch.github.io/webshot/), except that instead of using PhantomJS, it uses headless Chrome via the [Chromote](https://github.com/rstudio/chromote) package.\n\n\n## Installation\n\n```R\n# CRAN\ninstall.packages(\"webshot2\")\n\n# Development\nremotes::install_github(\"rstudio/webshot2\")\n```\n\nYou also need to have the Chrome browser installed on your system. You can also use other browsers based on Chromium, such as Chromium itself, Edge, Vivaldi, Brave, or Opera.\n\n\n## Usage\n\n``` r\nlibrary(webshot2)\n\n# Single page\nwebshot(\"https://www.r-project.org\")\n```\n\n\u003cimg src=\"man/figures/README-demo-1.png\" width=\"100%\" alt=\"A screenshot of the R Project website.\" /\u003e\n\n``` r\n# Multiple pages (in parallel!)\nwebshot(c(\"https://www.r-project.org\", \"https://shiny.posit.co\"))\n```\n\n\u003cimg src=\"man/figures/README-demo-1.png\" width=\"48%\" alt=\"The same screenshot of the R Project website.\" /\u003e\u003cimg src=\"man/figures/README-demo-2.png\" width=\"48%\" alt=\"A screenshot of the Shiny website.\" /\u003e\n\n``` r\n# Specific height and width\nwebshot(\"https://www.r-project.org\", vwidth = 1600, vheight = 900, cliprect = \"viewport\")\n```\n\n\u003cimg src=\"man/figures/README-demo-3.png\" width=\"100%\" alt=\"A screenshot of the R project website, clipped to the first 900 pixels in height.\" /\u003e\n\n```{r demo-eval, eval = FALSE, echo = FALSE}\n# Run this code to update the images above\nlibrary(webshot2)\n\n# Multiple pages (in parallel!)\nwebshot(c(\"https://www.r-project.org\", \"https://shiny.posit.co\"), c(\"man/figures/README-demo-1.png\", \"man/figures/README-demo-2.png\"))\n\n# Specific height and width\nwebshot(\"https://www.r-project.org\", \"man/figures/README-demo-3.png\", vwidth = 1600, vheight = 900, cliprect = \"viewport\")\n\n# Shrink screenshots\nshrink(dir(\"man/figures\", pattern = \"png$\", full.names = TRUE))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fwebshot2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstudio%2Fwebshot2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fwebshot2/lists"}