mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
12 lines
244 B
V
12 lines
244 B
V
import net.http
|
|
|
|
fn main() {
|
|
html := http.get_text('https://news.ycombinator.com')
|
|
mut pos := 0
|
|
for {
|
|
pos = html.index_after('https://', pos + 1) or { break }
|
|
end := html.index_after('"', pos) or { break }
|
|
println(html[pos..end])
|
|
}
|
|
}
|