Description Usage Arguments Details Value References Examples
The API is highly restrictive, even for paid plans, but even the free plan provides some insight into the makeup of the top 3 million web sites.
1 2 | source_code_search(query, snippets = FALSE,
pw_api_key = Sys.getenv("PUBLICWWW_API_KEY"))
|
query |
query string |
snippets |
if |
pw_api_key |
PublicWWW API KEY |
The API key can be provided at the time of calling, but it is recommended that
the caller store it in the PUBLICWWW_API_KEY
environment variable
(a good place for that is ~/.Renviron
).
data frame (tibble)
PublicWWW home; Query syntax; API Pricing
1 2 3 4 5 | # Sites using the WordPress theme "Twenty Sixteen":
source_code_search('"/wp-content/themes/twentysixteen/"')
# Sites running the coinhive JS miner:
source_code_search('"coin-hive.com/lib/coinhive.min.js"')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.