HI Please can somebody help me with this code on PythonAnywhere?
import requests
from bs4 import BeautifulSoup
url = 'http://CNN.com'
url_get = requests.get(url)
soup = BeautifulSoup(url_get.content, 'html.parser')
tag = soup.find('title')
print(tag.text)
I got AttributeError: 'NoneType' object has no attribute 'text' Thank you