mirror of https://github.com/witer33/nhtp.git
Update find.nim
This commit is contained in:
parent
7dcbe31573
commit
da123d6b6e
|
@ -1,7 +1,7 @@
|
||||||
import engine, httpclient, strtabs
|
import engine, httpclient, strtabs
|
||||||
|
|
||||||
var html = Engine(html: newHttpClient().getContent("http://example.com"))
|
var html = Engine()
|
||||||
html.run()
|
html.run(newHttpClient().getContent("http://example.com"))
|
||||||
|
|
||||||
echo html.find("title").getAllText()
|
echo html.find("title").getAllText()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue