Jump to content

Return Infomation from Web Viewer?


Salesman0Gil
 Share

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

Recommended Posts

Do a search on these forums for "scraping". There should be a few threads on here regarding using the technique of web scraping via the function Genx has posted.

Link to comment
Share on other sites

  • 2 months later...

I have read this document several times and checked in the manual.

I need a field to display the current url - I have named the web viewer object as "webviewer1"

but I can't get my calculation right - this is what I put:

GetLayoutObjectAttribute(webviewer1;Source)

can anyone tell me what I'm doing wrong -

Thanks

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 weeks later...

Here is an example of "scraping" a web page for information. This file takes an address, city, and state and returns address, city, st, zip, +4Zip, and County in the USPS Standard Address Format. It uses USPS.com loaded in a web viewer to do it.

Address_Check__zipped__Folder.zip

Link to comment
Share on other sites

Hi To All,

I am using this technique to good effect and it's great!

One question I have is on how to detect a 'timeout'. This happens when the web engine tries to get info from the site and it takes more than one minute. This can happen simply because the site is running slow. I am dealing with it but it is set to a timed count of the loops which will add to more than that time.

If someone has a way, I would appreciate the tip.

Thanks,

Lance

Link to comment
Share on other sites

in the lookup script, in the loop create a counter

set variable [$X , 0]

Loop

check for web page loading...

Exit loop if [loaded or $X > Number of secs for time out]

pause[1 sec]

end loop

If[ $X > Number of secs for time out]

Show Message[ It timed out!]

end if

or somthing like that.

Edited by Guest
Link to comment
Share on other sites

  • 7 months later...

This sounds really like what I am looking for... One problem when I unzip it and open it I get an error "Unknown Script step" I've attached a screen shot of the script if anyone can tell me what is supposed to go here I would greatly appreciate it.

Is it possible that since I'm using 8 that this is unavailable to me?

Picture_1.pdf

Link to comment
Share on other sites

Is it possible that since I'm using 8 that this is unavailable to me?

Yes, the example uses filemaker's webviewer (Availible in ver 8.5 and above)

Before ver8.5 came out I was doing this with a VBS script (would need to use applescript on a mac) and there are advantages to using an OS level script to scrape a page but it is alot more involved than using the web view.

Link to comment
Share on other sites

This topic is 5364 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
 Share

×
×
  • Create New...

Important Information

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