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

harvestacexchange

harvestacexchange provides function to harvest animalcrossingexchange.com.

Installation

You can install from GitHub with:

# install.packages("remotes")
remotes::install_github("abichat/harvestacexchange")

You need to have Node.js installed on your computer.

Harvesting

library(harvestacexchange)

When you install harvestacexchange, you need to install the JS dependencies once.

install_js_dep()

Harvest

You can harvest turnips prices from r url_turnips

df_turnips <- turnips()
df_turnips

and list of events from r url_events

df_events <- events()
df_events

Filter

harvestacexchange provides some useful filtering functions

df_turnips %>% 
  filter_price_min(price_min = 500) %>% 
  filter_no_tag()

df_events %>% 
  filter_words("gold") %>% 
  filter_grade_min(grade_min = 90)

You can also compare these data to old versions and keep only the new lines with filter_old_turnips() and filter_old_events().

Telegram

If you have configured a Telegram bot, you can send messages with message_turnips() and message_events().



abichat/harvestacexchange documentation built on May 12, 2020, 1:05 a.m.