Forrest logo
back to the xidel tool

xidel:ai:e22c4

How to print every row of a table in a separate variable using xidel
$ xidel input.html -e 'table_rows:=(//table//tr)', --output-format=json
try on your machine

This command uses xidel to extract all table rows from input.html and assigns them to a variable called 'table_rows'. The '--output-format=json' option is used to convert the output to JSON format.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how to print every row of a table in a separate variable using xidel?
back to the xidel tool