Created
October 15, 2014 09:12
-
-
Save greevex/84f65900f287b4754fa5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package "sds.test" | |
Var Integer $attempts | |
Block start { | |
$attempts = 5 | |
If $attempts <= 0 | |
- set break true | |
$url = "http://solncevo.com/forum/" | |
Call this.processLink $url | |
- put result to $data | |
Call SDS.debug.dump $data | |
} | |
Block processLink { | |
Input $url | |
Load $url | |
- set proxy "auto" | |
- set userAgent "auto" | |
- put result to $content | |
Parse:template $content | |
- set force true | |
- set url $url | |
- put result to $data | |
$attempts = $attempts - 1 | |
Return $data | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment