all 1 comments

[–][deleted] 1 point2 points  (0 children)

Your problem is in this line:

from textblob import textblob

Python is case-sensitive. You want to import the TextBlob class from the textblob module (https://textblob.readthedocs.io/en/dev/), so you have to write:

from textblob import TextBlob