Currently trying to loop the following web scraping...

My current problem is that I can only get the first footballer from the table **(I have the table HTML down below)** and not the full 10 players, my immediate thoughts are that the loop isn't working and I'm unsure where I'm going wrong. I'm using the BeautifulSoup Method of gathering the data.

***TD;DR My error is that only 1 player is appearing in my CSV file instead of the 10 players available from the HTML***

**Python Code**

```
 from urllib.request import urlopen as uReq
 from urllib.request import Request
 from bs4 import BeautifulSoup as soup

 my_url = "https://www.fctables.com/teams/stoke-194901/"

 #opening up connection , grabbing page
 uClient = uReq(my_url)
 page_html = uClient.read()
 uClient.close()

 #html parsing
 page_soup = soup(page_html, "html.parser")

 topScorers = page_soup.findAll("table",{"class":"table table-striped table-bordered table-hover stage-table table-condensed top_scores"})

 filename = "stokeGoals.csv"
 f = open(filename, "w")

 headers = "player, goal_scored, average_goal"

 f.write(headers)

 for topScorer in topScorers:
 #top 10 players who scored
 player = topScorer.a["title"]

#top 10 goalscorers for the team
goalpp = topScorer.findAll("div", {"class": "progress"})

#average goal per game
avg = topScorer.findAll("div", {"class": "label label-primary"})
avgpp = avg[0].text.strip()

print("player: " + player)
print("goal_scored: " + goalpp)
print("AVG: "+ avgpp)

f.write(player + "," +goalpp.replace("," , "|")+ "," + avgpp +"\n")

f.close()   

```

**HTML Code** for the table/website I'm scraping data from

```
 <table class="table table-striped table-bordered table-hover stage-table table-condensed top_scores">
<thead>
    <tr>
        <th>#</th>
        <th class="tl">Player</th>
        <th data-toggle="tooltip" title="Goals scores by player / Goals scores by his team">goals</th>
        <th data-toggle="tooltip" title="Average goals">
            Avg
        </th>
    </tr>
</thead>
<tbody>
    <tr>
        <td>1</td>
        <td class="tl psh" data-id="212996">
            <img alt="Benik Afobe" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/s4/s4glg58a2350823d58/benik-afobe.png" width="20" /> <a href="/players/benik_afobe-212996/" title="Benik Afobe">Afobe</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 100%;">
                    <span class="goal_p">6</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.4</div>
        </td>
    </tr>
    <tr>
        <td>2</td>
        <td class="tl psh" data-id="320050">
            <img alt="Thomas Ince" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/t5/t5ni157c703a92110b/thomas-ince.jpg" width="20" /> <a href="/players/thomas_ince-320050/" title="Thomas Ince">Ince</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 83.333333333333%;">
                    <span class="goal_p">5</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.6</div>
        </td>
    </tr>
    <tr>
        <td>3</td>
        <td class="tl psh" data-id="308648">
            <img alt="Saido Berahino" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/po/poyhu58a234e0da106/saido-berahino.png" width="20" /> <a href="/players/saido_berahino-308648/" title="Saido Berahino">Berahino</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 66.666666666667%;">
                    <span class="goal_p">4</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.3</div>
        </td>
    </tr>
    <tr>
        <td>4</td>
        <td class="tl psh" data-id="257340">
            <img alt="Joe Allen" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/6w/6w45558a234deae78e/joe-allen.png" width="20" /> <a href="/players/joe_allen-257340/" title="Joe Allen">Allen</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 50%;">
                    <span class="goal_p">3</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.4</div>
        </td>
    </tr>
    <tr>
        <td>5</td>
        <td class="tl psh" data-id="234407">
            <img alt="Erik Pieters" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/et/et08558a234dd63b68/erik-pieters.png" width="20" /> <a href="/players/erik_pieters-234407/" title="Erik Pieters">Pieters</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 50%;">
                    <span class="goal_p">3</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.4</div>
        </td>
    </tr>
    <tr>
        <td>6</td>
        <td class="tl psh" data-id="299368">
            <img alt="Peter Crouch" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/qp/qptn558a234df86f1f/peter-crouch.png" width="20" /> <a href="/players/peter_crouch-299368/" title="Peter Crouch">Crouch</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 33.333333333333%;">
                    <span class="goal_p">2</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.3</div>
        </td>
    </tr>
    <tr>
        <td>7</td>
        <td class="tl psh" data-id="214479">
            <img alt="Bojan Krkic" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/pl/pleyv57eaedf0afeac/bojan-krkic.jpg" width="20" /> <a href="/players/bojan_krkic-214479/" title="Bojan Krkic">Krkic</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 33.333333333333%;">
                    <span class="goal_p">2</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.4</div>
        </td>
    </tr>
    <tr>
        <td>8</td>
        <td class="tl psh" data-id="253114">
            <img alt="James McClean" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/gb/gbjmm58a234f55a560/james-mcclean.png" width="20" /> <a href="/players/james_mcclean-253114/" title="James McClean">McClean</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 16.666666666667%;">
                    <span class="goal_p">1</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.1</div>
        </td>
    </tr>
    <tr>
        <td>9</td>
        <td class="tl psh" data-id="309022">
            <img alt="Sam Clucas" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/g7/g7dig58a234cb144a3/sam-clucas.png" width="20" /> <a href="/players/sam_clucas-309022/" title="Sam Clucas">Clucas</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 16.666666666667%;">
                    <span class="goal_p">1</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.3</div>
        </td>
    </tr>
    <tr>
        <td>10</td>
        <td class="tl psh" data-id="215724">
            <img alt="Bruno Martins Indi" class="img-circle" height="20" src="https://static.fctables.com/upload/images/20x20/hk/hkung58a234de0dfaa/bruno-martins-indi.png" width="20" /> <a href="/players/bruno_martins_indi-215724/" title="Bruno Martins Indi">Indi</a>
            <div class="slider">
                <div class="inner"></div>
            </div>
        </td>
        <td width="30%">
            <div class="progress">
                <div aria-valuemax="100" aria-valuemin="0" aria-valuenow="55" class="progress-bar progress-bar-primary" role="progressbar" style="width: 16.666666666667%;">
                    <span class="goal_p">1</span>
                </div>
            </div>
        </td>
        <td>
            <div class="label label-primary">0.2</div>
        </td>
    </tr>
</tbody>

```