I am using python 3.6, and i'm trying to scrap a table from an website, while scrapping i got all the datas from table but at the end of the result i got the below error message.
IndexError Traceback (most recent call last)
<ipython-input-29-45703b14c6ee> in <module>()
1 for tr in soup.find_all('tr')[2:]:
2 tds = tr.find_all('td')
----> 3 print(tds[0].text, tds[1].text, tds[2].text)
IndexError: list index out of range
what is wrong in this code? what is the solution?please help