From 58bd461375dd86cdacfca16938dbe4bc856101f0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 Feb 2018 07:48:08 -0500 Subject: [PATCH 1/3] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index a2891a1..74e8391 100644 --- a/README.rst +++ b/README.rst @@ -65,7 +65,7 @@ Introspect an Element's attributes: .. code-block:: pycon >>> about.attrs - {'id': 'about', 'class': 'tier-1 element-1 ', 'aria-haspopup': 'true'} + {'id': 'about', 'class': ['tier-1', 'element-1'], 'aria-haspopup': 'true'} Select Elements within Elements: From c0d685ed8f9c438507a72c2cb0750c051a3bc315 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 Feb 2018 07:49:15 -0500 Subject: [PATCH 2/3] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 74e8391..86dbfca 100644 --- a/README.rst +++ b/README.rst @@ -65,7 +65,7 @@ Introspect an Element's attributes: .. code-block:: pycon >>> about.attrs - {'id': 'about', 'class': ['tier-1', 'element-1'], 'aria-haspopup': 'true'} + {'id': 'about', 'class': ('tier-1', 'element-1'), 'aria-haspopup': 'true'} Select Elements within Elements: From 290a87fff382aedca837d03d121e29cae057d7e9 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 26 Feb 2018 07:52:23 -0500 Subject: [PATCH 3/3] Update README.rst --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rst b/README.rst index 86dbfca..45b8ccb 100644 --- a/README.rst +++ b/README.rst @@ -73,6 +73,14 @@ Select Elements within Elements: >>> about.find('a') [, , , , , ] + +Search for links within an element: + +.. code-block:: pycon + + >>> about.absolute_links + {'http://brochure.getpython.info/', 'https://www.python.org/about/gettingstarted/', 'https://www.python.org/about/', 'https://www.python.org/about/quotes/', 'https://www.python.org/about/help/', 'https://www.python.org/about/apps/'} + Search for text on the page: