From bcc012f76338e9b330e255da49aff924d6909785 Mon Sep 17 00:00:00 2001 From: Kanezoh <47489839+Kanezoh@users.noreply.github.com> Date: Wed, 2 Jun 2021 14:46:26 +0900 Subject: [PATCH] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9609e1b..994aa89 100644 --- a/README.md +++ b/README.md @@ -45,15 +45,6 @@ page = agent.post("http://example.com/", query: query) # => request body is foo=foo_value&bar=bar_value ``` -### search node - -You can use css selector to search html nodes by using `#css` method. -This method is from [myhtml](https://github.com/sparklemotion/mechanize),so if you want to explore more, please refer the repository. - -```crystal -puts page.css("h1").first.inner_text -``` - ### add query params, request_headers You can add any query parameters and headers to requests. @@ -85,6 +76,15 @@ agent.submit(form) agent.get("#{web page only logged-in users can see}" ``` +### search node + +You can use css selector to search html nodes by using `#css` method. +This method is from [myhtml](https://github.com/sparklemotion/mechanize), so if you want to explore more, please refer the repository. + +```crystal +puts page.css("h1").first.inner_text +``` + ## Contributing 1. Fork it ()