The problem I'm having at the moment is where the program is seemingly running through the loop once and is never returning to the top of the original loop to run through it again, something must be breaking out of the top loop for it to do this, otherwise it would be working.

Code:
import urllib.request

def GetPointsRowDark():
    PlayersFile = open("players.csv","r")
    PlayersFileRead = PlayersFile.read()

    PlayersFileReadRowSplit = PlayersFileRead.split('\n')
    
    AssistsData = urllib.request.urlopen('http://www.football-league.co.uk/page/DivisionalAssists/0,,10794~20127,00.html')
    GoalsData = urllib.request.urlopen('http://www.football-league.co.uk/page/DivisionalScorers/0,,10794~20127,00.html')
    CleansheetsData = urllib.request.urlopen('http://www.football-league.co.uk/page/GamesCount/0,,10794~20127,00.html')

    e = AssistsData.read()
    e2 = GoalsData.read()
    e3 = CleansheetsData.read()

    m = e.decode('utf8')
    m2 = e2.decode('utf8')
    m3 = e3.decode('utf8')
    
    a = m.count('<tr class="rowDark">')
    a2 = m2.count('<tr class="rowDark">')
    a3 = m3.count('<tr class="rowDark">')

    splitted_page = m.split('<div class=statistics>')
    splitted_page = splitted_page[1].split('</div>')

    splitted_pagem2 = m2.split('<div class="statistics">')
    splitted_pagem2 = splitted_pagem2[1].split('</div>')

    splitted_pagem3 = m3.split('<div class=statistics>')
    splitted_pagem3 = splitted_pagem3[1].split('</div>')
    
    Points1 = 0
    Points2 = 0
    Points3 = 0

    for x in range(int((a)-1)):
        #Assists
        try:
            splitted_page2 = splitted_page[0].split('<tr class="rowDark">')
            splitted_page2 = splitted_page2[1].split('</tr>')
        except:
            break
        splitted_page3 = splitted_page2[0].split('<td style="text-align:center;">')
        splitted_page3 = splitted_page3[1].split('</td>')
        splitted_page4 = splitted_page2[0].split('<td>')
        splitted_page4 = splitted_page4[1].split('</td>')
        try:   
            splitted_page5 = splitted_page4[0].split('>')
            splitted_page5 = splitted_page5[1].split('<')
        except:
            splitted_page5[0] = splitted_page4[0]

        #Goals
        try:
            splitted_page6 = splitted_pagem2[0].split('<tr class="rowDark">')
            splitted_page6 = splitted_page6[1].split('</tr>')
        except:
            break
        splitted_page7 = splitted_page6[0].split('<td style="text-align:center;">')
        splitted_page7 = splitted_page7[1].split('</td>')
        splitted_page8 = splitted_page6[0].split('<td>')
        splitted_page8 = splitted_page8[1].split('</td>')
        try:   
            splitted_page9 = splitted_page8[0].split('>')
            splitted_page9 = splitted_page9[1].split('<')
        except:
            splitted_page9[0] = splitted_page8[0]

        #Cleansheets
        try:
            splitted_page10 = splitted_pagem3[0].split('<tr class="rowDark">')
            splitted_page10 = splitted_page10[1].split('</tr>')
        except:
            break
        splitted_page11 = splitted_page10[0].split('<td>')
        splitted_page11 = splitted_page11[1].split('</td>')
        splitted_page12 = splitted_page11[0].split('>')
        splitted_page12 = splitted_page12[1].split('<')
        splitted_page13 = splitted_page10[0].split('<td style="text-align:center;">')
        splitted_page13 = splitted_page13[1].split('</td>')
            
        for y in range(len(PlayersFileReadRowSplit)-1):
            PlayersFileReadCommaSplit = PlayersFileReadRowSplit[y].split(',')
            if PlayersFileReadCommaSplit[0] in str(splitted_page5[0].upper()):
                Points1 = int(splitted_page3[0])*1
            if PlayersFileReadCommaSplit[0] in str(splitted_page9[0].upper()):
                Points2 = int(splitted_page7[0])*2
                PlayersFileReadRowSplit[y] = str(PlayersFileReadCommaSplit[0]+','+PlayersFileReadCommaSplit[1]+','+PlayersFileReadCommaSplit[2]+','
                                                 +PlayersFileReadCommaSplit[3]+','+PlayersFileReadCommaSplit[4]+','+PlayersFileReadCommaSplit[5]+','
                                                 +PlayersFileReadCommaSplit[6]+','+str(int(Points1+Points2+Points3))+','+str(Points1)+','+
                                                 str(Points2)+','+'0')
                y = 0
                PlayersFileWrite = open("players.csv","w")
                while y<600:
                    PlayersFileWrite.write(PlayersFileReadRowSplit[y])
                    PlayersFileWrite.write('\n')
                    y+=1
                
        splitted_page[0] = splitted_page[0].replace('<tr class="rowDark">','',1)
        continue
    PlayersFileWrite.close()
What I'm trying to do is re-write player's scores by obtaining information from a web-page, and splitting it up into particular elements to gain the information needed, unfortunately, it's only going through it once, whereas this:

Code:
import urllib.request

data = urllib.request.urlopen('http://www.football-league.co.uk/page/DivisionalScorers/0,,10794~20127,00.html')

e = data.read()

m = e.decode('utf8')

a = m.count('<tr class="rowDark">')
b = m.count('<tr class="rowLight">')

splitted_page = m.split('<div class="statistics">')
splitted_page = splitted_page[1].split('</div>')

for x in range(int((a+b)-1)):
    try:
        splitted_page2 = splitted_page[0].split('<tr class="rowDark">')
        splitted_page2 = splitted_page2[1].split('</tr>')
    except:
        break
    splitted_page3 = splitted_page2[0].split('<td style="text-align:center;">')
    splitted_page3 = splitted_page3[1].split('</td>')
    splitted_page4 = splitted_page2[0].split('<td>')
    splitted_page4 = splitted_page4[1].split('</td>')
    try:   
        splitted_page5 = splitted_page4[0].split('>')
        splitted_page5 = splitted_page5[1].split('<')
    except:
        splitted_page5[0] = splitted_page4[0]

    try:
        splitted_page6 = splitted_page[0].split('<tr class="rowLight">')
        splitted_page6 = splitted_page6[1].split('</tr>')
    except:
        break
    splitted_page7 = splitted_page6[0].split('<td style="text-align:center;">')
    splitted_page7 = splitted_page7[1].split('</td>')
    splitted_page8 = splitted_page6[0].split('<td>')
    splitted_page8 = splitted_page8[1].split('</td>')
    try:
        splitted_page9 = splitted_page8[0].split('>')
        splitted_page9 = splitted_page9[1].split('<')
    except:
        splitted_page9[0] = splitted_page8[0]

    print(splitted_page5[0].upper())
    print(splitted_page3[0])
    print(splitted_page9[0].upper())
    print(splitted_page7[0])

    splitted_page[0] = splitted_page[0].replace('<tr class="rowDark">','',1)
    splitted_page[0] = splitted_page[0].replace('<tr class="rowLight">','',1)
Used to loop through the entire thing and fetch every goalscorer.

Players file can be found here.