I scraped data from a Wikipedia page and am now trying to create a function that tells me if a phrase is within the results. When I do the command print(soup) I can clearly see that the word "December" is in the content but when I run the phrase through my function, it says it's not there. I have listed my code below and I can't figure out why it's not showing up. Any help would be greatly appreciated.
req = requests.get("https://en.wikipedia.org/wiki/Christmas")
soup = BeautifulSoup(req.content, "html.parser")
def function(x):
if x in soup:
print("here")
else:
print("not here")
function("December")