https://github.com/pysiakk/nba-salary-scraper
This repo contains a script for scraping NBA players' salaries from ESPN page.
https://github.com/pysiakk/nba-salary-scraper
Last synced: 3 months ago
JSON representation
This repo contains a script for scraping NBA players' salaries from ESPN page.
- Host: GitHub
- URL: https://github.com/pysiakk/nba-salary-scraper
- Owner: pysiakk
- License: mit
- Created: 2020-05-10T12:01:37.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T16:59:47.000Z (about 5 years ago)
- Last Synced: 2025-01-29T11:11:29.606Z (5 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NBA-Salary-Scraper
This repo contains a script for scraping NBA players' salaries from ESPN page.## Usage
```python
salary_scrape(year)
```## Output
`Pandas.DataFrame` containing a position in the salary ranking, the name of a player, the team of a player and his salary in dollars.
## Examples
```python
l = salary_scrape(2019)
print(sal.iloc[0])
``````python
RK 1
NAME Stephen Curry
TEAM Golden State Warriors
SALARY 40231758
Name: 0, dtype: object
```