Rvest在R中提供了类似Python-Beautiful-Soup的API:
library(rvest)
session <- html_session("https://example.com",
proxy = "socks5h://gateway.proxied.com:1080")
title <- session %>% html_node("h1") %>% html_text()
通过Proxied传递请求,每个Rvest调用继承一个真实的移动IP,为偏好R生态系统的分析师提高成功率。