我们可以与R中的Google Devtools应用程序元素进行交互吗?

问题描述 投票:0回答:1

我不希望下载附件屏幕中突出显示的cookie详细信息,并将其保存为R数据框。有办法吗?任何帮助将不胜感激!

enter image description here

r rselenium
1个回答
0
投票

这只会使您获得图像中列出的一个cookie,不确定如何获取所有cookie:

library(rvest)
url1 <- "enter_desired_url" #enter url you want to scrape
my_session <- html_session(url1)

library(httr)
cookie <- cookies(my_session) #cookies are saved in a table
cookie
© www.soinside.com 2019 - 2024. All rights reserved.