jn08 Posted February 16, 2013 Posted February 16, 2013 I'm using the web viewer to scrape data from a website on a daily basis. The script loops through my records and loads the web page. I use a loop script like the below to make sure the page has loaded before scraping data. Loop Pause/Resume Script [ Duration (seconds): 1 ] Set Variable [ $html; Value:GetLayoutObjectAttribute("source";"content") ] Exit Loop If [ PatternCount($html; "<head>") ] End Loop The problem is that occasionally the web viewer returns a "the request timed out" error in the status bar and this causes the script to just loop infinitely and not complete. If I come across this error and manually load the page again it continues with issues. Is there any way I can pull this error into the script somehow to avoid having to manually check it?
webko Posted February 20, 2013 Posted February 20, 2013 I'd also set a counter in the loop and exit if it reaches say 30...
Recommended Posts
This topic is 4562 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 accountSign in
Already have an account? Sign in here.
Sign In Now