andrewgiessel / basketballcrawler

DEFUNCT - This is a python module to scrape basketball-reference.com and convert various stats into usable data structures for analysis
123 stars 56 forks source link

savePlayerDictionary error #10

Closed Worville closed 6 years ago

Worville commented 7 years ago

I've been trying to create the player dictionary, but having problems with bc.savePlayerDictionary. players = bc.buildPlayerDictionary() works fine, but then running the following command:

bc.savePlayerDictionary(players, "/path/to/playerJson.bk.json")

I get the following error:

AttributeError: 'NavigableString' object has no attribute 'to_json'

Any ideas as to why it's failing? Great work with this by the way, really like this module!

wilsonchaney commented 7 years ago

Hey @Worville,

Not sure why this was incorrect in the first place, but I just created #11 to fix it - Thanks for letting us know!

Worville commented 7 years ago

Awesome, thanks @wilsonchaney !