Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

get html source without rendering?


This topic is 5582 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am currently running an automated script that scrapes data from an HTML based lab system in my hospital. I collect study data this way. I was wondering if there was a way to get the html source without having to render HTML page first, as this would, theoretically, cut my data capture time significantly. Right now I use a loop to detect when the page has loaded in the webviewer and then scrape the code using getlayoutobjectattribute and then parse the code. It works great, but I'm always looking for ways to shorten the data collection time and this is the major limiting factor in the script.

Any thoughts would be appreciated.

Thanks

Posted

You may be able to produce an XML from that system that FileMaker can then grab.

Posted

I believe you are correct. I have tried this in the past without much luck, probably because my XML knowledge is just not advanced enough, actually almost non-existent. I suppose I would need to create an XSL style sheet, but I really don't have much experience with this.

Posted

There are many examples of XSLT stylesheets on these forums (both the Importing & Exporting section, and the XML/XSL section).

Another option is to use Applescript to run some shell commands. IIRC, a combination of curl and textutil can fetch the rendered text from a site.

Posted

I am currently running an automated script that scrapes data from an HTML based lab system in my hospital. I collect study data this way. I was wondering if there was a way to get the html source without having to render HTML page first, as this would, theoretically, cut my data capture time significantly. Right now I use a loop to detect when the page has loaded in the webviewer and then scrape the code using getlayoutobjectattribute and then parse the code. It works great, but I'm always looking for ways to shorten the data collection time and this is the major limiting factor in the script.

Any thoughts would be appreciated.

Thanks

Perform applescript

Do shell script "curl http://www.filemaker.com"

copy result to cell "Source" of current record

Posted

Thanks for all the help. I will give it a go. I'll see if I can get the applescript to work for me.

I found the Troi URL plug-in which seems like it has promise, so I may just take the easy way out.

This topic is 5582 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.