Extract Data from Google Takeout

Provides functions to analyze data exported from 'Google Takeout'. The package supports unzipping archives and extracting user review data from Google Business Profile exports into tidy data frames for further analysis.


gtakeout

R-CMD-check

The goal of gtakeout is to extract data from Google Takeout.

Installation

You can install the development version of gtakeout like so:

install.packages("gtakeout", repos = "https://jrosell.r-universe.dev")

Examples

Google Business Profiles

This is a basic example which shows you how to extract the reviews form a Takedown zip file.

library(gtakeout)

# devtools::load_all()

takeout_zipfile <- fs::dir_ls(here::here("data", "input"), glob = "*.zip") |>
  head(1)

output_path <- fs::dir_create(here::here("data", "output"))

gtakeout_reviews(takeout_zipfile, exdir = output_path)
#> # A tibble: 1 × 9
#>   account         location   reviewer star_raw comment created updated review_id
#>   <chr>           <chr>      <chr>    <chr>    <chr>   <chr>   <chr>   <chr>    
#> 1 account-example location-… Example… FIVE     exampl… 2025-0… 2025-0… accounts…
#> # ℹ 1 more variable: listing_name <chr>

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("gtakeout")

0.1.0 by Jordi Rosell, 9 months ago


https://github.com/jrosell/gtakeout


Report a bug at https://github.com/jrosell/gtakeout/issues


Browse source code at https://github.com/cran/gtakeout


Authors: Jordi Rosell [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, fs, here, jsonlite, purrr, rlang, stringr, zip

Suggests testthat


See at CRAN