Created
June 13, 2020 14:28
-
-
Save mjgpy3/6c23eafe0790bd6e4c0dba90b372385e to your computer and use it in GitHub Desktop.
Red Links
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
Red [ | |
Title: "Download links" | |
] | |
args: system/script/args | |
comment { | |
- Accept a URL as input to program | |
- HTTP GET URL | |
- Parse response as HTML | |
- Extract a links | |
} | |
raw-html: read (to-url system/script/args) | |
foreach part (split raw-html "href=") [ | |
foreach part2 (split part "^"") [ | |
if find/match part2 "https://" [ | |
print part2 | |
] | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi MIchael. Someone posted your video to our Gitter channel (where most chat occurs), and I wanted to thank you for posting it. In return, here's a
parse
-based version for you to check out.