I am trying to parse the able from the site https://octopart.com/mcp3304-bi%2Fp-microchip-407390?r=sp#PriceAndStock. I have tried using xpath of a table with selenium but it fetches only first row. I have also tried html parse with beautifulsoup but I get unstructured text from table.
Code trials:
driver.get('https://octopart.com/search?q=PMEG120G20ELRX¤cy=USD&specs=0')
soup = BeautifulSoup(driver.page_source, 'html.parser')
table=soup.find('table')
for distributor in table.find_all('tbody'):
rows=distributor.find_all('tr')
for row in rows:
data=row.find('td')
print(data)