Solution
from bs4 import BeautifulSoup
import requests
Html_Content_of_page = requests.get("https://nytimes.com").text
soup = BeautifulSoup(Html_Content_of_page, "html5lib")
print(soup.find("meta", property="og:title")["content"])
The New York Times - Breaking News, US News, World News and Videos