Skip to main content

NBA data Scrapper for stats analysis

Project description

FU-Scrapper

PyPI GitHub GitHub top language GitHub code size in bytes


This package allow you to get data in csv format optimized for data analysis

Python tool that can save you a lot of time in research and modeling data for analysis. Here you can extract data from any listed source like NBA data and put it into a csv file.


Features

NBA api

  • Player stats data
  • Team stats data
  • Game stats data
  • Game details stats data
  • Ranking data

More comming soon ...


Installation

Use python package manager to install fu-scrapper (pip) :

pip install fu-scrapper

You can find this package available on PyPi here.


Usage

Initialize the source that you need and use the functions provided by the package :

# import and precise the source
# in our case it's nba
from fu-scrapper.nba.players import Players
from fu-scrapper.nba.teams import Teams
# import os package
import os

# Initialize url variable
url = os.path.dirname(os.path.abspath(__file__)) + "/target_folder/"

if __name__ = '__main__':
    # Player class instantiation with url parameter
    players = Players(url=url)
    # All players general stats into csv file
    players.extract_players()

    # team class instantiation with url parameter
    teams = Teams(url=url)
    # All teams total stats into csv file
    teams.extract_teams_details()

Functions

NBA Api :

Players

function descritpion
players.extract_players() Extract all players >informations and global stats for the current season into a csv >file

Teams

function descritpion
teams.extract_teams() Extract all teams >informations and global stats for the current season into a csv >file
teams.extract_teams_details() Extract all teams >details by games

Games

function descritpion
games.next_week_games() Get informations of all next >week games into csv file
games.last_week_games() Get all last week game >details
games.today_games() Get listing of today games into >csv file
games.new_games() Get all new game stats and ranking >into a csv file

License

Copyright (c) 2021 Fujyn
Licensed under the MIT license.


Contributing

Bugs & New Features

Please use the issue tracker to report any bugs or feature requests.

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

fu-scrapper-1.0.6.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

fu_scrapper-1.0.6-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file fu-scrapper-1.0.6.tar.gz.

File metadata

  • Download URL: fu-scrapper-1.0.6.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fu-scrapper-1.0.6.tar.gz
Algorithm Hash digest
SHA256 fcce7c57a1826cea19c09dc1fb8a3926849550c325b251d402267f2709655dd6
MD5 59bb20e68cc2b71bda5a043ee7c91b4c
BLAKE2b-256 bb581f92e7ea4098b50743dd769a798794f041e2f1d2676be31ab2cfc655c2f5

See more details on using hashes here.

File details

Details for the file fu_scrapper-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: fu_scrapper-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fu_scrapper-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a23727af3fc6c1e24bb876e32befca95dd1d20efab13a698df40380345b41dca
MD5 5247f6b9e0ecd687b07f1854d32f2b4e
BLAKE2b-256 b7ff21260a4aa274a3e69ac1bbba3290e7c78aaba3f7363364ca6b16b1e0908d

See more details on using hashes here.

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