diff --git a/README.md b/README.md index 9a73fbb..6332f73 100644 --- a/README.md +++ b/README.md @@ -547,8 +547,15 @@ Examples to clear any confusion :) >> page.find_all('div', {'class': 'quote'}, lambda e: "world" in e.css_first('.text::text')) [
Quote...' parent='<html lang="en"><head><meta charset="UTF...'>, + <data='<body> <div class="container"> <div clas...' parent='<html lang="en"><head><meta charset="UTF...'>, +...] + # Find all elements that contains the word 'world' in its content. ->> page.find_all(lambda e: "world" in e.text) +>> page.find_all(lambda element: "world" in element.text) [<data='<span class="text" itemprop="text">“The...' parent='<div class="quote" itemscope itemtype="h...'>, <data='<a class="tag" href="/tag/world/page/1/"...' parent='<div class="tags"> Tags: <meta class="ke...'>]