chromeã§ä¿åããcookieæ å ±ãdplyrã§èªã¿è¾¼ã¿ãã
Google Chromeã¯cookieãSQLiteã§ä¿åãã¦ããã
ãããdplyrã§èªã¿è¾¼ãã ã®ã§ä½æ¥ã¡ã¢ã
æ¬å½ã¯èªã¿è¾¼ãã å¾ã«ãã®å
容ã使ã£ã¦ããã¬ããããã£ãã®ã ãæå·åããã¦ãæ¶ã
ãªãããã¼ã¿ãã¼ã¹å
ã®ãã¼ãã«åãããããªãã£ãã®ã§src_tblsãç¨ããããsrc_sqliteã®å®è¡çµæï¼ä»¥ä¸ã§ã¯cookiedbï¼ãprintãã¦ãè¯ãã
library("dplyr") path <- sprintf("%s/AppData/Local/Google/Chrome/User Data/Default/Cookies", Sys.getenv("UserProfile")) cookiedb <- src_sqlite(path) src_tbls(cookiedb) # ãã¼ãã«ä¸è¦§ãç¢ºèª trg_db <- tbl(cookiedb, "cookies") trg_db %>% count(host_key)