neocache

Save Data from the Twitter API to a Neo4J Graph Database

OTHER License

Stars
2

output: github_document

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

neocache

neocache facilitates robust sampling of the Twitter graph. The basic idea is to save any data into a local cache as you as you get it. neocache is build on top of rtweet, Docker, and Neo4J.

Installation

You can install the development version of neocache with:

install.packages("devtools")
devtools::install_github("alexpghayes/neocache")
library(neocache)

nc_sitrep()

Find the personalized pagerank of a Twitter user and cache the following network in the process

alexpghayes_ppr <- appr(
  neocache_graph(),
  "alexpghayes",
  epsilon = 1e-4
)

alexpghayes_ppr$stats