Need help building forum scraper workflow

I’m trying to build a webscraper for a Xenforo forum, focusing on specific posts containing stories.

I’ve got it setup this way:

  1. Manual trigger
  2. Get data from datatable (thread URLs and post numbers)
  3. Aggregate post numbers (postNum)
  4. HTTP request using the thread URLs
  5. Merge the aggregated postNum array and HTTP query requests
  6. Pass postNum array and data from HTTP queries to code node to filter

I have to do it this way because the HTTP requests pull the entire page, and I’m trying to filter down to the specific post. However, I can’t seem to come up with any function that will actually generate a filtered output to pass to the HTML extraction node.

The error I keep getting is Missing HTML or postNums., which doesn’t really tell me anything useful.

Here’s what I’ve got: