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 ()