Forums

Find answers, ask questions, and connect with our
community all around the world.

Feed › Forum › Omnis General Forum › Parsing OBrowser HTML content

  • Andreas Pfeiffer

    Administrator
    August 7, 2025 at 2:07 pm

    Hi Nathanaël,

    You could read the URL and use the HTTPParse, HTTPPage or any of those commands. Alternatively you can use the HTTP client worker object and fire up a get to the URL.

    Best,

    Andreas

    • Nathanaël

      Member
      August 21, 2025 at 3:59 pm

      Thanks Andreas, that’s a good idea but the content of the webpage we are trying to parse is dependant on a previous visit (information stored in a cookie), and OBrowser and the HTTP object don’t share those 😉

  • Doug Easterbrook

    Member
    September 4, 2025 at 12:27 am

    There are many ways to skin the cat.

    since its in obrowser, you have the URL (as Andreas says). I get the feeling that it was a web page that was rendered by you, since you say that you may know the contents.

    I was not aware that you couldn’t get cookies from obrowser, but if you re-read the web page using the omnis http commands using the URL in the $currentURL (as I recall), you should be able to retrieve the page a second time, within omnis.

    I had a look at methods and properties, and I didn’t see anything that would let you get the actual HRML content after rendering.

    anyway, if you can get the HTML content, but no cookies, then make your own equivalent.

    within the html, you can add any amount of comments you want. such as

    and so you can tag it such as

    so, now all you need to do is stick encrypted string after that ‘comment:’ .. then read it, find it, and decrypt it.

    Its like having hidden variables in the html code that meet the structure you want.

    I am only suggesting this way …. since I don’t know about cookie retrieval from oBrowser. I don’t know why you couldn’t, and may have to ask for an enhancement …. But the comments thing might work in the meantime if it duplicates the cookie

  • Doug Easterbrook

    Member
    November 23, 2026 at 10:19 pm

    hi Nathaniel:

    I know this is a post from a year ago … but new idea for you.

    after seeing the AI demonstration at Euromnis in Studio 12, I rather get the sense that you could be able to parse a web page any way you want or extract specific info from it using the AI workers.

    It could do interpretation for you, if you are looking for some specific content. There was an AI topic on that at Euromnis as well where a developer was extracting names addresses, products from PDF purchase orders for their system. The actual document type (html, pdf, etc) its somewhat irrelevant to AI as it can analyze most things.

Log in to reply.