Hi @Zita_Daniel_Nad , the {site} command cannot parse arbitrary HTML as a string (the string may come from another variable, urlload, etc.). The {site} only works on the live HTML of the actual current page where you're running the snippet.
In this case, you might be able to use extractregex to grab the information that you need. Have you tried that?
Thank you for the suggestion. I was trying to get it done without regex.
Is it possible to get what I am looking for at all using TB?
I need the user to be on one website and from the snippet entered in that website be able to type the ZIP and get the state and city inserted into the snippet from another wepage, using something like:
The website returns the results in the following format: 1 Ocean Beach 11770 United States New York Suffolk
My regex should match: [a-zA-Z]+[[:blank:]][a-zA-Z]+[[:blank:]]\d\d\d\d\d[[:blank:]][a-zA-Z]+[[:blank:]][a-zA-Z]+[a-zA-Z]+[[:blank:]][a-zA-Z]+[[:blank:]][a-zA-Z]+/gm
OR [a-zA-Z]+[[:blank:]]\d\d\d\d\d[[:blank:]][a-zA-Z]+[[:blank:]][a-zA-Z]+[a-zA-Z]+[[:blank:]][a-zA-Z]+[[:blank:]][a-zA-Z]+/gm
I am not familiar with the GeoNames api, but is it correct to say that the state name is always in adminName1 and the city name is always in adminName2?