View source: R/comments_scrap.R
comments_scrap | R Documentation |
Extracts HTML comments (<!– comment –>) from a webpage. Useful for detecting hidden notes, debug info, or developer messages.
comments_scrap(link, askRobot = FALSE)
link |
Character. The URL of the web page to scrape. |
askRobot |
Logical. Should the function check robots.txt before scraping? Default is FALSE. |
A character vector of HTML comments found on the page.
link <- "https://example.com"
comments_scrap(link)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.