Karin

by wernerkruger888

Karin/karin_horse_results.ipynb

import requests
from IPython.core.display import display, HTML
url = "http://eqspec.com/getresults.php"
r = requests.get(url)
a = r.text.split('<br>')
finalhtml = '<head> <style> table, th, td {  border: 1px solid black;} </style> </head> <body><table style="border: 1px solid black;"><tr><th>' + a[0].replace(',','</th><th>') + '</tr>'
for i in range(1,len(a)):
    finalhtml = finalhtml + '<tr><td>' + a[i].replace(',','</td><td>') + '</tr>'
finalhtml = finalhtml + '</table></body>'
display(HTML(finalhtml))
Horse nameHorse ageBreedUseInjuriesIllnessTreatmentsOwnership_yearsOwnership_monthsLast performing wellCompetitionConcernsFrequencySurfaceShoesShoe typeShod/TrimDetails of Sessions
JannieSarel|||
|||
Derik15StoutRA493|||||||||||||||||||{Horse name||||||||||||||||||||||
Werner41NorickerSHWOpgekrok x 14Lam siek en mank012406-2007BlahHier is nie genoeg plek nieSealyNONE06-20195|||||||||||||||||||||||||||||||||