<commit_before><commit_msg>Download matchday page<commit_after>"""
	nbatrack.py
	Given a particular date, reads the scores page for the day and gives a list of games from that day.
"""

import urllib
import datetime
from bs4 import BeautifulSoup as Soup

def _read_page(link):
	u = urllib.urlopen(link)
	text = u.read()
	return text	

def _format_link(day):
	link = ["http://scores.espn.go.com", "/nba", "/scoreboard", "?date="]
	link.append(day.strftime("%Y%m") + str(int(day.strftime("%d")) - 1))
	scoreboard_link = "".join(link)
	return scoreboard_link

def matchday():
	day = datetime.datetime.now()
	day_page = _read_page(_format_link(day))
	
{'fraction_non_alphanumeric': 0.14528593508500773, 'fraction_numerical': 0.0030911901081916537, 'mean_word_length': 5.05607476635514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6662980', 'n_tokens_mistral': 239, 'n_tokens_neox': 230, 'n_words': 62}