Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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])
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user