Pitchjx.jl

Tools for extracting MLB pitching data.
Author prs-watch
Popularity
3 Stars
Updated Last
3 Years Ago
Started In
April 2019

pitchjx

Tools for extracting Statcast pitching data.

Note

Be sure this package no longer supports PITCH f/x data. This package name has been inspired by pitchRx, but MLB has ended PITCH f/x support.

Install

julia -e 'using Pkg; Pkg.add("Pitchjx")'

How to use

Extract specific date's pitching data

using Pitchjx

data = pitchjx("2018-10-20")

Extract Multiple dates' pitching data

This is recommended for getting short range dates' data.

using Pitchjx

data = pitchjx("2018-10-20", "2018-10-22")

Extract Multople dates' pitching data with multiprocessing

This is recommended for getting long range dates' data (faster than previous way).

using Distributed
@everywhere using Pitchjx

Distributed.addprocs(2)

dates = ["2018-07-01", "2018-07-02", "2018-07-03", "2018-07-04"]
# get datas as DataFrame's array
result = pmap(d -> pitchjx(d), dates)

Reference

Used By Packages

No packages found.