Skip to main content

A package for scraping NBA trades and transactions.

Project description

NBA Trades and Transactions Scraper

This is a simple library to scrape NBA ProSports trades and transactions data.

Usage

pip install nba-transactions-scraper

Methods

run(team, start, end)

returns a Pandas dataframe of NBA transactions for a specific team from start date to end date (defaults to current date). Date format: ('yyyy-mm-dd')

Example

from nba_transactions_scraper.main import ProSports_Scraper

scraper = ProSports_Scraper()

results = scraper.run('Lakers', '2021-01-01')

Next Additions

  • Multi-team argument

  • Extracting trade $ values

  • Draft Pick transactions

  • Category of transactions

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

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

Source Distribution

nba_transactions_scraper-1.0.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

nba_transactions_scraper-1.0.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

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