Hi, I'm struggling to make a web-scrapping bot analyze certain words: I guess I'm using the wrong syntax but I couldn't find anything helpful online.
The problem is: I get a text list and save it on a variable, after that I want to check the words contained in the variable. If certain words are found in the list I want to execute certain commands, like closing a tab on the browser. I have tried in different ways, using the command "If the web page contains" or saving the text on a variable and after using the command "If" to check if the variable contains those words. The first approach requires to check multiple time the web page, which makes the bot slow, the second doesn't seem to check for multiple values.. can you help me?
I think the quickest way would be to use the command 'IF-contains', but I think I'm doing something wrong because it's not working..
Solved! Go to Solution.
That step only accepts a single text value, not a list. You need to use nested ifs or loops.
or like this
That step only accepts a single text value, not a list. You need to use nested ifs or loops.
or like this
Thanks, I've used your second suggestion and it works smoothly