vishaalagartha / basketball_reference_scraper

A python module for scraping static and dynamic content from Basketball Reference.
MIT License
254 stars 91 forks source link

Can't get playoff game logs for players to work #26

Closed Mor880 closed 3 years ago

Mor880 commented 3 years ago

Hi all,

Bear with me, I'm very novice with Python and instead of finding out how to scrape Basketball-Reference myself I figured why not try this module first.

The game logs for regular season games seem to work fine using get_game_logs('LaMarcus Aldridge', '2013-04-20', '2017-08-01', playoffs=False), but if I want to look at playoff game logs and do get_game_logs('LaMarcus Aldridge', '2013-04-20', '2017-08-01', playoffs=True) I get the following error on the first try:

C:\Users\myname\Anaconda3\lib\site-packages\pandas\core\ops__init__.py:1115: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison result = method(y)

What I get is an empty Pandas Dataframe. I also tried this with Damian Lillard and it also didn't work.

Am I doing something wrong?

P.S I tried get_game_logs('LeBron James', '2006-04-01', '2020-11-01', True) and this seems to work partially, I get a Dataframes containing the latest game logs, the only problem is that all game logs before 2011 are missing.

vishaalagartha commented 3 years ago

Closed at 175d44b