Trying to scrape Gumloop forum

Trying to get a recurring email update of new posts to the Gumloop forum. I’d like to filter the results to posts that have 1) fewer than 3 replies and 2) have been posted <48 hours ago. I’m trying to use Extract data inside an “if-else” to do that filtering but the if-else keeps failing w/ an ambiguous error message that sends me to the forum. Any ideas on what I can do to get around this?

Run Link: https://www.gumloop.com/pipeline?workbook_id=tpd7VppYQ8iLutEkUjDAnc&run_id=mkmLU43kJUU73MZTJz3pXV
Flow link: https://www.gumloop.com/pipeline?workbook_id=tpd7VppYQ8iLutEkUjDAnc&run_id=mkmLU43kJUU73MZTJz3pXV

I tried a different way and since a post with zero replies has a blank reply value, the filter breaks. How can I get these blank values to show up as a zero? Open to other suggestions beyond just this specific question.
https://www.gumloop.com/pipeline?workbook_id=hcGWUnCQ821nWsCZuAUAsB

Hey @chris_dyer - The IF-ELSE node does not natively work on list outputs like that, we’re going to resolve this soon. Meanwhile you can use a Combine Text node as an intermediary and then wrap that in an IF-ELSE node.

Example: https://www.gumloop.com/pipeline?workbook_id=fYaAMEWv5BALFa3WVfihZT&run_id=HS3ws6bhBmk6fbYnR6zPHv

A much better approach here would be to use a Filter node and for your second question you can specify in the Extract Data node not to output blank values, use zero instead.

Example: https://www.gumloop.com/pipeline?workbook_id=fYaAMEWv5BALFa3WVfihZT&run_id=PH6HpR7KgUEQzeMu6dkmpz

Let me know if this works for you.

Thanks for the reply @Wasay-Gumloop. I’m focusing on the second solution but this still didn’t work. I’m still getting blank values in my run. It looks like the run you had in your example didn’t have any blank values from the extracted data. I also tried filtering to Number is equal to “1, 2” and that had the same failure error.

https://www.gumloop.com/pipeline?workbook_id=hcGWUnCQ821nWsCZuAUAsB&run_id=jhprfvBwHjNUM3Pb7oSCvY

Hey @chris_dyer - You’re right that the Filter node failed because one of the inputs was blank:

There are two options here:

  1. You can add another filter node before the current one that filters out empty values. You can use the Is not Empty condition here.

  2. Or you can bump up the AI model in the Extract Data node so that it sticks closely to this prompt: Reply count on the posts. Never output a blank value here, output 0 instead.

Let me know if these options work for you.

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