Maam my code is not working

from bs4 import BeautifulSoup

from urllib.request import urlopen

handle = “india”

url = “https://www.instagram.com/

page = urlopen(url+handle).read()

soup = BeautifulSoup(page,“html.parser”)

#print(soup)

string = soup.find(“meta”,property = “og:description”)[‘content’]

print(string)

Dear Learner,

Welcome to LearnVern! We are happy to serve you.

Could you please post a screenshot of the entire error you are getting in your ide or jupyter notebook! I will be able to help you much better that way.


Thanks and Regards,
Siddhant
Team LearnVern.