Python Forum
[split] How to find a specific word in a webpage and How to count it.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] How to find a specific word in a webpage and How to count it.
#1
Hey, I'm new here

Can someone please explain this line:
words = soup.find(text=lambda text: text and the_word in text)
I don't understand what is happening in lambda (I know what it is)

Thanks in advance
Reply


Messages In This Thread
[split] How to find a specific word in a webpage and How to count it. - by marpop - Mar-11-2019, 09:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beautiful Soap can't find a specific section on the page Pavel_47 1 2,414 Jan-18-2021, 02:18 PM
Last Post: snippsat
  How to fix looking specific word in a webpage BSOD 0 1,844 Jun-16-2020, 08:01 PM
Last Post: BSOD
  Flask-Sqlalchemy count products in specific category imawesome 2 28,073 Mar-12-2020, 08:14 PM
Last Post: imawesome
  How to get the href value of a specific word in the html code julio2000 2 3,187 Mar-05-2020, 07:50 PM
Last Post: julio2000
  How do I extract specific lines from HTML files before and after a word? glittergirl 1 5,094 Aug-06-2019, 07:23 AM
Last Post: fishhook
  XML Parsing - Find a specific text (ElementTree) TeraX 3 4,046 Oct-09-2018, 09:06 AM
Last Post: TeraX
  How to find a specific word in a webpage and How to count it. pratheep 11 45,139 Feb-08-2018, 04:07 PM
Last Post: pratheep

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020