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

Errors in Python 3 #19

Open cztaylor opened 7 years ago

cztaylor commented 7 years ago

I ran into some errors running buildPlayerDictionary in Python 3, and had to make some changes.

For example:

I changed print url to print(url)

and

I changed name_data = n.children.next() to name_data = next(n.children)

There were a few other changes I had to make as well. I am fairly new to Python, but my understanding is that the newer Python 3 syntax is also supported by Python 2, so would it make sense to update the syntax to what works for both?

andrewgiessel commented 6 years ago

Yes, please open a PR!