elif (len(line) == 1) & (line[0].endswith("</td>") == False):
                    dum1 = line[0].split("<td>")[1]
                    alldata[colheads[jj]][salescnt] = dum1

                salescnt += 1

            if colheads[jj] == "Album":
                albumURLs.append(tdata[i + jj + 1].split()[1][6:-1])


alldata["Album URL"] = albumURLs


musicinfo = DataFrame(alldata)

musicinfo.Year = musicinfo.Year.astype(float)
musicinfo["Sales (millions)"] = musicinfo["Sales (millions)"].astype(float)

# plt.hist(musicinfo.Year, bins=range(1988,2014))
# # plt.scatter(musicinfo.Year, musicinfo['Sales (millions)'])
# plt.title("Number of Albums on RIAA\nList of Top Hip Hop Albums")
# plt.ylabel('# Albums')
# plt.xlabel("Year")
# plt.minorticks_on()
# plt.show()


#################################################################
## Now, we have our Album URLs.  Let's get the album pages...
#################################################################
fout = open("./albums/albumlist.txt", "w")