Using Get Webpage Source works for valid URLs and not for invalid ones.
If a URL is invalid, I get a red error message.
How do I capture the fact that this URL is invalid beyond seeing the error message?
Using Get Webpage Source works for valid URLs and not for invalid ones.
If a URL is invalid, I get a red error message.
How do I capture the fact that this URL is invalid beyond seeing the error message?
I guess my question would be what is your criteria for a “valid” URL?
eg. is it:
I’m asking Chat GPT 4o to find the URL.
Sometimes the URL is incorrect, e.g. .com.au instead of .com, or pureorganic.com vs pure-organic.com.
So based on “is this the correct URL for the company”.
If there is a technical issue with accessing the URL then that is fine, I at least want to have the correct one, but am not sure how to determine this.
If URL is wrong, then I can enter it manually after finding the right one based on company name.
What about sending a GET request to the URL? I think it probably returns something that you can determine an error, if it is not a valid URL.
this would work, only issue I could see with that is if the url chatgpt generates is still a valid link but incorrect to the company