You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a bunch of APIs that serve minimal webpages with itables in them.
Up to a certain point, curl-ing these endpoints would return a usable HTML table with all rows, which on loading the scripts would get styled and sliced into pages. It was very important to have the full table available, as I could read those endpoints using pd.read_html or using other software capable of parsing HTML tables (specifically, JMP).
Now, the table body only displays Loading ITables v2.2.4 from the internet...; the data is there in JS code and the pages load as expected in browser, but not through curl or pd.read_html.
Is there a way to make the full HTML table available again?
The text was updated successfully, but these errors were encountered:
liquidcarbon
changed the title
Render HTML table prior to loading JS/CSS resources
Render unfiltered HTML table prior to loading JS/CSS resources
Jan 16, 2025
This seems to be working - may be useful to document?
fromitables.utilsimportUNPKG_DT_BUNDLE_URL_NO_VERSIONhtml_table=to_html_datatable(
df,
autoWidth=False,
# connected = False # doesn't seem to make a differenceuse_to_html=True# returns full table but remains unstyled and non-interactivedt_url=UNPKG_DT_BUNDLE_URL_NO_VERSION# until you supply this kwarg
)
returnf"<div>{html_table}</div>"
I have a bunch of APIs that serve minimal webpages with itables in them.
Up to a certain point, curl-ing these endpoints would return a usable HTML table with all rows, which on loading the scripts would get styled and sliced into pages. It was very important to have the full table available, as I could read those endpoints using
pd.read_html
or using other software capable of parsing HTML tables (specifically, JMP).Now, the table body only displays
Loading ITables v2.2.4 from the internet...
; the data is there in JS code and the pages load as expected in browser, but not through curl orpd.read_html
.Is there a way to make the full HTML table available again?
The text was updated successfully, but these errors were encountered: