Feb-07-2018, 04:06 PM
I am doing a project.
I don't know how to find a given word in a webpage and I want to count the occurrence of the given word.
I need a help in doing it.
I don't know how to code the process.
Can anybody give me correct code?
THIS IS MY CODE TILL NOW:
I don't know how to find a given word in a webpage and I want to count the occurrence of the given word.
I need a help in doing it.
I don't know how to code the process.
Can anybody give me correct code?
THIS IS MY CODE TILL NOW:
import requests from bs4 import BeautifulSoup url = input("Enter the url: ") r = requests.get(url) soup = BeautifulSoup(r.content,'lxml')