How to only get data of first table on a Wikipedia page using BeautifulSoup?
<p>I am trying to scrape data from a Wikipedia page.</p>

<p><strong>Page URL: <a href="https://en.wikipedia.org/wiki/2015_in_hip_hop_music" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/2015_in_hip_hop_music</a></strong></p>

<p>This is the code I've currently come up with.</p>

<p>Code: </p>

<pre><code>from bs4 import BeautifulSoup
import urllib.request
def make_soup(url):
    thepage=urllib.request.urlopen(url)
    soupdata=BeautifulSoup(thepage, "html.parser")
    return soupdata

soup= make_soup("https://en.wikipedia.org/wiki/2015_in_hip_hop_music")
albumdatasaved=""
for record in soup.findAll('tr'):
    albumdata=""
    for data in record.findAll('td'):
        albumdata=albumdata+","+data.text
    albumdatasaved=albumdatasaved+"\n"+albumdata[1:]

print(albumdatasaved)
</code></pre>

<p>However, my code gives the data of all 4 tables on the page.
Is there any way I can get the data of just the first one? (Released Albums)</p>

<p>Any help would be well appreciated.</p>