From e4674cb8e17113e2f78df4d2ceccb2ea069dc496 Mon Sep 17 00:00:00 2001 From: SakthiMahendran <84713203+SakthiMahendran@users.noreply.github.com> Date: Tue, 19 Jul 2022 15:22:42 +0530 Subject: [PATCH] examples: replace "resp.text" with "resp.body". (#15123) --- examples/web_crawler/web_crawler.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/web_crawler/web_crawler.v b/examples/web_crawler/web_crawler.v index 76aec55523..1503f1db56 100644 --- a/examples/web_crawler/web_crawler.v +++ b/examples/web_crawler/web_crawler.v @@ -11,7 +11,7 @@ fn main() { return } // html.parse() parses and returns the DOM from the given text. - mut doc := html.parse(resp.text) + mut doc := html.parse(resp.body) // html.DocumentObjectModel.get_tag_by_attribute_value() retrieves all the tags in the document that has the given attribute name and value. tags := doc.get_tag_by_attribute_value('class', 'list_article_item') for tag in tags {