I was wondering how to pull an exact line from a website or simply make it print everything where a certain word is. Example "my dog is a beautiful dog" if I use the word beautiful I want Python to locate the whole sentence and return it.
import bs4 as bs
import urllib.request
sauce = urllib.request.urlopen('http://prisleje.dk/?page_id=2').read()
soup = bs.BeautifulSoup(sauce,"html.parser")
print(soup.find("eksempler"))