You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, in essence, that's not a big deal, there is plenty of ways I can split my output in half and just get the text I want once.
But the thing is, I really don't understand, that's weird. I don't like not understanding.
I'm looking for the understanding, more than the solution itself.
Here is everything I did:
My script is a quote creator with ChatGPT. I make him create quotes from a given book, one by one. So I can write them one by one in my Sheet. Clean job. As you might see in the Regex, what I did is ask GPT to write my quote in between the character ' ! '
And then with Regex, I just retrieve what is written between ! . Looks smart to me, and it's working. Kinda. But that's not due to Regex. Unless I'm wrong.
Thing is, in the logs and in the sheet it writes to, I can see that the variable that is created, named quote, has the quote from GPT written 2 times.
But whyyy. When I try the get text directly from the CSS i'm retrieving, on ChatGPT website, I do get the sentence once.
But when I retrieve it using the getText in Automa, I get it twice!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there, in essence, that's not a big deal, there is plenty of ways I can split my output in half and just get the text I want once.
But the thing is, I really don't understand, that's weird. I don't like not understanding.
I'm looking for the understanding, more than the solution itself.
Here is everything I did:
My script is a quote creator with ChatGPT. I make him create quotes from a given book, one by one. So I can write them one by one in my Sheet. Clean job. As you might see in the Regex, what I did is ask GPT to write my quote in between the character ' ! '
And then with Regex, I just retrieve what is written between ! . Looks smart to me, and it's working. Kinda. But that's not due to Regex. Unless I'm wrong.
Thing is, in the logs and in the sheet it writes to, I can see that the variable that is created, named quote, has the quote from GPT written 2 times.
But whyyy. When I try the get text directly from the CSS i'm retrieving, on ChatGPT website, I do get the sentence once.
But when I retrieve it using the getText in Automa, I get it twice!
what the heck?
Beta Was this translation helpful? Give feedback.
All reactions