powered by
Extracts HTML comments (<!-- comment -->) from a webpage. Useful for detecting hidden notes, debug info, or developer messages.
comments_scrap(link, askRobot = FALSE)
A character vector of HTML comments found on the page.
Character. The URL of the web page to scrape.
Logical. Should the function check robots.txt before scraping? Default is FALSE.
# \donttest{ link <- "https://example.com" comments_scrap(link) # }
Run the code above in your browser using DataLab