Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/limagabri/nba-player-statistics-scraper
This is a Python script to scrape NBA player statistics data from the official NBA website.
https://github.com/limagabri/nba-player-statistics-scraper
beautifulsoup json pyhton selenium webscraper webscraping
Last synced: 29 days ago
JSON representation
This is a Python script to scrape NBA player statistics data from the official NBA website.
- Host: GitHub
- URL: https://github.com/limagabri/nba-player-statistics-scraper
- Owner: limagabri
- License: mit
- Created: 2024-05-14T21:27:28.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-16T14:08:22.000Z (9 months ago)
- Last Synced: 2024-11-09T09:25:13.940Z (3 months ago)
- Topics: beautifulsoup, json, pyhton, selenium, webscraper, webscraping
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NBA Player Statistics Scraper
**Language Order / Ordem dos Idiomas:**
- **English:** Instructions in English are provided first, after portuguese.
- **Português:** As instruções em inglês são fornecidas primeiro, depois em português.This is a Python script to scrape NBA player statistics data from the official NBA website. The script uses Selenium to automate web navigation and BeautifulSoup to parse HTML.
Este é um script Python para realizar scraping dos dados de estatísticas dos jogadores da NBA a partir do site oficial da NBA. O script utiliza Selenium para automatizar a navegação web e BeautifulSoup para analisar o HTML.
## How to Use / Como usar
1. **Prerequisites / Pré-requisitos:**
- Python 3.x installed on your system / Python 3.x instalado no seu sistema.
- Install Python dependencies listed in the `requirements.txt` file using `pip install -r requirements.txt` / Instalar as dependências do Python listadas no arquivo `requirements.txt` utilizando `pip install -r requirements.txt`.2. **Environment Setup / Configuração do ambiente:**
- Make sure you have Firefox browser installed on your system / Certifique-se de ter o navegador Firefox instalado no seu sistema.3. **Running the Script / Execução do script:**
- Run the `main.py` script / Execute o script `main.py`.
- NBA player data will be scraped from the website and saved to a JSON file / Os dados dos jogadores da NBA serão raspados do site e salvos em um arquivo JSON.4. **Results / Resultados:**
- The `Stats_Players_NBA.json` JSON file will be generated in the current directory, containing player statistics / O arquivo JSON `Stats_Players_NBA.json` será gerado no diretório atual, contendo as estatísticas dos jogadores.## Note / Nota
This script was developed as a web scraping demonstration for educational purposes. Use it responsibly and in accordance with the NBA website's terms of service.
Este script foi desenvolvido como uma demonstração de scraping web com fins educacionais. Utilize-o com responsabilidade e em conformidade com os termos de serviço do site da NBA.