Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

get html source without rendering?

Featured Replies

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

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

  • Author

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.

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.

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

  • Author

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.