def writePlayerInfo(): #create csv file with prefixed header tags out = open(playerprofilepath,'a') tags = 'Player,From,To,Pos,Ht,Wt,DOB,College\n' out.write(tags) out.close() print("starting to get all players information...") urls = CompareMethods.getPlayersIndexUrls(True) for url in urls: href = mainurl + url PlayerInfo.getPlayerInfo(True, href, playerprofilepath) print ('Player Info All Done!') return;