R 语言网页抓取
Timo Grossenbacher
Instructor

response <- GET('http://example.com', user_agent("Hey, it's me, Timo!
Reach me at [email protected]."))
另一种方式:
set_config(add_headers(`User-Agent` = "Hey, it's me, Timo!
Reach me at [email protected]."))
response <- GET('http://example.com')
R 语言网页抓取