https://github.com/mohammadreza-mohammadi94/nba-players-scraper-and-dataset
A web scraper and dataset collection project focused on NBA players, providing tools to extract, process, and analyze player data. Perfect for basketball enthusiasts and data analysts interested in sports statistics.
https://github.com/mohammadreza-mohammadi94/nba-players-scraper-and-dataset
dataset datasets python scraper webcrawler
Last synced: 3 days ago
JSON representation
A web scraper and dataset collection project focused on NBA players, providing tools to extract, process, and analyze player data. Perfect for basketball enthusiasts and data analysts interested in sports statistics.
- Host: GitHub
- URL: https://github.com/mohammadreza-mohammadi94/nba-players-scraper-and-dataset
- Owner: mohammadreza-mohammadi94
- Created: 2023-11-26T17:37:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-26T18:10:07.000Z (over 1 year ago)
- Last Synced: 2025-05-16T11:09:51.528Z (3 days ago)
- Topics: dataset, datasets, python, scraper, webcrawler
- Language: Jupyter Notebook
- Homepage:
- Size: 39.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basketball Players Information Scraper

## OverviewThis Python script allows you to scrape detailed information about basketball players from basketball-reference.com. It iterates through the alphabet, collecting data for players whose last names start with each letter ('a' to 'z').
## Dependencies
- Python 3.x
- Requests
- BeautifulSoup
- Pandas## Setup
### 1. Clone the repository:
```bash
git clone https://github.com/jigsaw1313/NBA-Players-Scraper-Plus-Dataset.git
```
### 2. Navigate to the project directory:```bash
cd basketball-players-scraper
```### 3. Create and activate a virtual environment (Optional but recommended):
```bash
# On Windows
python -m venv venv
.\venv\Scripts\activate
```### 4. Install the required dependencies:
```bash
pip install -r requirements.txt
```### 5. Run the script:
```bash
python scrape_players.py
```The script will create a CSV file named `basketball_players_data.csv` containing player information.
## Code Structure
- `scrape_players.py`: The main script for scraping player information.
- `requirements.txt`: Lists the required Python packages.## Contribution
Contributions are welcome! If you find any issues or want to enhance the functionality, feel free to create a pull request.
## License
This project is licensed under the [MIT License](LICENSE).