blob: 2a0b775886e84ca90b765d7c9760740efc969c57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import net.http
fn main() {
html := http.get_text('https://news.ycombinator.com')
mut pos := 0
for {
pos = html.index_after('https://', pos + 1)
if pos == -1 {
break
}
end := html.index_after('"', pos)
println(html[pos..end])
}
}
|