Unable to Extract HTMlL Data

Describe the issue/error/question

I’m having a hard time extracting HTML data from a table. Could someone take a look to let me know where I went wrong.

What is the error message (if any)?

No error message, simply missing information.

Please share the workflow

Share the output returned by the last node

Ideally the contents of the td tags should be in the “Course Requirement Select” field.

Information on your n8n setup

  • n8n version: 0.182.0
  • Database you’re using (default: SQLite): Default
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Desktop App

Hi @kenepas, hope you’re having a good day thus far?

This extraction will most likely fail because the td elements aren’t in a valid HTML table. A workaround could be to simply wrap these in a table. In the example workflow below I’ve added a Set node doing exactly that:

This is the result:

Hope this helps :slight_smile:

Thank you so much! That worked like a charm.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.