What i\'m trying to do is use beautiful soup to get the value of an html attribute.
What i have so far is:
soup = BeautifulSoup(html, \"html.parser\")
you should try the following
soup = BeautifulSoup(html, "html.parser") print("data-sitekey=" + soup.find("div", attrs={"class" : "data-sitekey"})) return soup.find("div", attrs={"class" : "data-sitekey"})