Вот как я создаю таблицу в Python:
Код: Выделить всё
res = []
for row in table.find_all('tr'):
row_data = []
for td in row.find_all('td'):
td_check = td.find('a')
if td_check is not None:
link = td.find('a')
row_data.append(link)
else:
not_link = ''.join(td.stripped_strings)
if not_link == '':
not_link = None
row_data.append(not_link)
res.append(row_data)
Код: Выделить всё
sangerDF = sangerDF.to_html(classes=["table-bordered", "table-striped", "table-hover",], index=False, justify="initial")
[img]https://i.sstatic .net/ZNut1.png[/img]
Я не понимаю, почему это не кликабельно? Если я проверю ячейку таблицы с помощью браузера, HTML будет выглядеть так:
Код: Выделить всё
<a href="https://www.sanger.ac.uk/htgt/wge/crispr/1006029202">1006029202</a>
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/552 ... -clickable
Мобильная версия