python - Beautiful soup to count frequency of particular word in page -


i using beautiful soup 1 task.

i have retrieved page , made soup object. soup = beautifulsoup(html, 'html.parser')

now want count number of times 1 keyword appears in this. example. "pants". should give me count of pants word in page. appreciated.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -