Old_Stats class is complete

This commit is contained in:
Brendan McDevitt 2017-08-02 17:24:22 -04:00
parent 9832e77ba3
commit 3588bee494

View file

@ -1,12 +1,10 @@
#!/usr/bin/env python #!/usr/bin/env python2
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
import requests, urllib, os import requests, urllib, os
#### FIRST THREE YEARS 2010/2011/2012 ARE DIFFERENT WAYS TO RETRIEVE THAN 13-17 #### FIRST THREE YEARS 2010/2011/2012 ARE DIFFERENT WAYS TO RETRIEVE THAN 13-17
class Old_Stats: class Old_Stats:
'Retrieve the mens volleyball statistics data from years 2010, 2011, 2012 for MAMVIC NAIA Cardinal Stritch' 'Retrieve the mens volleyball statistics data from years 2010, 2011, 2012 for MAMVIC NAIA Cardinal Stritch'
@ -47,7 +45,3 @@ class Old_Stats:
response = requests.get(self.get_box_score_links()[url_step]) response = requests.get(self.get_box_score_links()[url_step])
with open('./data/' + filename, "wb") as code: with open('./data/' + filename, "wb") as code:
code.write(response.content) code.write(response.content)
old_stats = Old_Stats()
old_stats.download_html_links()