Analyze Websites and Resources They Request
The
The following functions are implemented:
urlscan_search
: Perform a urlscan.io queryurlscan_result
: Retrieve detailed results for a given scan IDurlscan_submit
: Submit a URL for scanningdevtools::install_git("https://git.sr.ht/~hrbrmstr/urlscan") # or devtools::install_gitlab("hrbrmstr/urlscan") # or devtools::install_github("hrbrmstr/urlscan")
options(width=120)
library(urlscan) library(tidyverse) # for demos # current verison packageVersion("urlscan")
x <- urlscan_search("domain:r-project.org") as_tibble(x$results$task) %>% bind_cols(as_tibble(x$results$page)) %>% mutate( time = anytime::anytime(time), id = x$results$`_id` ) %>% arrange(desc(time)) %>% select(url, country, server, ip, id) -> xdf ures <- urlscan_result(xdf$id[2], include_dom = TRUE, include_shot = TRUE) ures magick::image_write(ures$screenshot, "img/shot.png")
cloc::cloc_pkg_md()
Please note that the 'urlscan' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.