News for hackers. Stuff that matters.
Re:Show HN: Crul || Query Any Webpage or API by throwaway_e9463 on Tuesday February 28, 2023 @05:30PM (#34975858)
Do you have an example of how to turn an html table element into a CSV? I saw the open and the scrape commands, but wasn't sure where to go from there.
Re:Show HN: Crul || Query Any Webpage or API by portInit on Tuesday February 28, 2023 @05:47PM (#34976026)
Ah! We didn't quite get an html table command in this release but it will be in the next one.

Here's a query that shows an option, but the table command will be far more straightforward.

open https://www.w3schools.com/html/html_tables.asp --dimension || filter "(nodeName == 'TD')" || groupBy boundingClientRect.top || table _group.0.innerText _group.1.innerText _group.2.innerText