Learn practical skills, build real-world projects, and advance your career
!pip install jovian tweepy pandas matplotlib  --upgrade --quiet
import pandas as pd 
import jovian 
import tweepy 
import matplotlib.pyplot as plt
pip install textblob
Collecting textblob Downloading textblob-0.15.3-py2.py3-none-any.whl (636 kB) |████████████████████████████████| 636 kB 4.5 MB/s eta 0:00:01 Collecting nltk>=3.1 Downloading nltk-3.5.zip (1.4 MB) |████████████████████████████████| 1.4 MB 11.0 MB/s eta 0:00:01 Requirement already satisfied: click in /opt/conda/lib/python3.8/site-packages (from nltk>=3.1->textblob) (7.1.2) Requirement already satisfied: joblib in /opt/conda/lib/python3.8/site-packages (from nltk>=3.1->textblob) (0.17.0) Collecting regex Downloading regex-2020.11.13-cp38-cp38-manylinux2014_x86_64.whl (738 kB) |████████████████████████████████| 738 kB 17.8 MB/s eta 0:00:01 Requirement already satisfied: tqdm in /opt/conda/lib/python3.8/site-packages (from nltk>=3.1->textblob) (4.50.2) Building wheels for collected packages: nltk Building wheel for nltk (setup.py) ... done Created wheel for nltk: filename=nltk-3.5-py3-none-any.whl size=1434676 sha256=a3ae44d8cb151075efd09e3372d6380f5960a030b0d0838398e00b4b174e79b7 Stored in directory: /home/jovyan/.cache/pip/wheels/ff/d5/7b/f1fb4e1e1603b2f01c2424dd60fbcc50c12ef918bafc44b155 Successfully built nltk Installing collected packages: regex, nltk, textblob Successfully installed nltk-3.5 regex-2020.11.13 textblob-0.15.3 Note: you may need to restart the kernel to use updated packages.
from textblob import TextBlob
consumer_key="YkKYjjhejZcZBqpjQjAF6NWm2"
consumer_secret="SPBVQ0EVD5Y8L1O5NHvvIF6xvidctl3QCwIuoeQ8J41LUSTpuY"
access_token="815946042428493824-FFxGOCRS9NcHReK1wa93iXRW14sUWzi"
access_token_secret="LEo7VGp1dtDAipf0lR0oHjOm5OH2HbM87VriCKy4aHl4B"