Skip to main content

A package for retrieving ivy league sports data

Project description

Introduction

ivypy is a package to retrieve ivy league sports statistics via scraping. It provides a few method for doing so.

retrieve

retrieve is a method which allows a user to get dat as a list of dictionaries. retrieve has the following call pattern:

retrieve(sport, endpoint, gender=”m”, year=”current”)

where sport is the relevant sport, endpoint is the data you want, gender is the gender for the sport and year is either “current” for the current year or an integer for a previous year. For example to get the standings for men’s basketball in 2013:

>>> standings = retrieve("basketball", "standings", year=2013)
>>> for row in standings: print(row)
{'overall': u'27-5', 'ivy': u'13-1', 'team': 'Harvard'}
{'overall': u'19-14', 'ivy': u'9-5', 'team': 'Yale'}
{'overall': u'21-9', 'ivy': u'8-6', 'team': 'Princeton'}
{'overall': u'21-13', 'ivy': u'8-6', 'team': 'Columbia'}
{'overall': u'15-14', 'ivy': u'7-7', 'team': 'Brown'}
{'overall': u'12-16', 'ivy': u'5-9', 'team': 'Dartmouth'}
{'overall': u'8-20', 'ivy': u'5-9', 'team': 'Penn'}
{'overall': u'2-26', 'ivy': u'1-13', 'team': 'Cornell'}

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ivypy-0.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file ivypy-0.1.tar.gz.

File metadata

  • Download URL: ivypy-0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ivypy-0.1.tar.gz
Algorithm Hash digest
SHA256 3f128a84c7c3de31021d3c6341ce5c7bee19a3f86b09ddb202b40dab75bb4b31
MD5 51b2abc70ebce4b7a44d5ee692d0d3b4
BLAKE2b-256 761b82bcdf01d07803f5bae6eade8609baf22a83098bc1f6d5224eda2b37b237

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page