Skip to content

Instantly share code, notes, and snippets.

@greevex
Created October 15, 2014 09:12
Show Gist options
  • Save greevex/84f65900f287b4754fa5 to your computer and use it in GitHub Desktop.
Save greevex/84f65900f287b4754fa5 to your computer and use it in GitHub Desktop.
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