here is the original source code from udemy instructor:
from bs4 import BeautifulSoup as soupy
import urllib.request
import re
html = urllib.request.urlopen('https://twitter.com/HussamKhrais').read()
soup = soupy(html, features="html.parser")
x = soup.find("meta", {"name":"description"})['content']
filter = re.findall(r'"(.*)"', x)
tweet = filter[0]
print(tweet)
this is also doesnt working it throw this error:
x = soup.find("meta", {"name":"description"})['content']
TypeError: 'NoneType' object is not subscriptable