data = soup.find('div', class_='info').text
The message is telling you that
soup.find
did not find a
div
with that class type, so the find result is
None
. So when you try to access the
text
attribute it raises the
AttributeError
exception. And if you go to
Example Domain[
^] and inspect the page source you can see that there is no such
div
.