Skip to content

verhalenn/pytchfx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Out of Date

mlb.com has changed their api structure, so the current version of this scraper will no longer work.

Pytchfx

A Python implementation of the PitchRx package.

Getting Started

Pytchfx requires an sqlalchemy engine to function. Instructions on how to configure an sqlalchemy engine can be found here. link.

Below is a simple example that creates a database in memory from games between 2016/06/06 and 2016/06/09. Dates should be in the format 'YYYY/MM/DD'.

from pytchfx import scrape
from sqlalchemy import create_engine

engine = create_engine("sqlite://")
scrape(start='2016/06/06', end='2016/06/09', engine=engine)

About

PITCHf/x scraper written in python.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages