From 3c8a07531bae91be6a3a2e0aca7da28b65635127 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 25 Feb 2018 09:57:56 -0500 Subject: [PATCH] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index b0e59be..58c47f9 100644 --- a/README.rst +++ b/README.rst @@ -102,7 +102,7 @@ More complex CSS Selector example (copied from Chrome dev tools): >>> r = session.get('https://github.com/') >>> sel = 'body > div.application-main > div.jumbotron.jumbotron-codelines > div > div > div.col-md-7.text-center.text-md-left > p' - >>> print(r.html.find(sel)[0].text) + >>> print(r.html.find(sel, first=True).text) GitHub is a development platform inspired by the way you work. From open source to business, you can host and review code, manage projects, and build software alongside millions of other developers. XPath is also supported: