Created
October 24, 2020 08:28
-
-
Save shravankumar147/34e7e67f64e43fc9ba347218ebb4986c to your computer and use it in GitHub Desktop.
tweet_search.ipynb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "tweet_search.ipynb", | |
"provenance": [], | |
"authorship_tag": "ABX9TyN25PHOm0mME+1g66IGZP4r", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/shravankumar147/34e7e67f64e43fc9ba347218ebb4986c/tweet_search.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "aE_Dsllq-gYQ" | |
}, | |
"source": [ | |
"import os\n", | |
"import tweepy as tw\n", | |
"import pandas as pd\n", | |
"from google.colab import drive # to mount Drive to Colab notebook\n", | |
"import json\n", | |
"import csv\n", | |
"from datetime import date\n", | |
"from datetime import datetime\n", | |
"import time\n", | |
"\n", | |
"import matplotlib.pyplot as plt\n", | |
"import seaborn as sns\n", | |
"import itertools\n", | |
"import collections\n", | |
"\n", | |
"import nltk\n", | |
"from nltk.corpus import stopwords\n", | |
"import re\n", | |
"import networkx\n", | |
"\n", | |
"import warnings\n", | |
"warnings.filterwarnings(\"ignore\")\n", | |
"\n", | |
"sns.set(font_scale=1.5)\n", | |
"sns.set_style(\"whitegrid\")\n", | |
"\n", | |
"def remove_url(txt):\n", | |
" \"\"\"Replace URLs found in a text string with nothing \n", | |
" (i.e. it will remove the URL from the string).\n", | |
"\n", | |
" Parameters\n", | |
" ----------\n", | |
" txt : string\n", | |
" A text string that you want to parse and remove urls.\n", | |
"\n", | |
" Returns\n", | |
" -------\n", | |
" The same txt string with url's removed.\n", | |
" \"\"\"\n", | |
"\n", | |
" return \" \".join(re.sub(\"([^0-9A-Za-z \\t])|(\\w+:\\/\\/\\S+)\", \"\", txt).split())" | |
], | |
"execution_count": 1, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "urWcSXEWAxX4", | |
"outputId": "d60663bd-8917-4ff2-d4d0-0b99500a6b57", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
} | |
}, | |
"source": [ | |
"# Connect Google Drive to Colab\n", | |
"drive.mount('/content/gdrive')" | |
], | |
"execution_count": 2, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"Mounted at /content/gdrive\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "RabttSrDC_UK" | |
}, | |
"source": [ | |
"path = \"/content/gdrive/My Drive/deep_learning/data/\"" | |
], | |
"execution_count": 6, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "t3CbPY-SDDss" | |
}, | |
"source": [ | |
"# Load Twitter API secrets from an external JSON file\n", | |
"secrets = json.loads(open(path + 'secrets.json').read())\n", | |
"api_key = secrets['api_key']\n", | |
"api_secret_key = secrets['api_secret_key']\n", | |
"access_token = secrets['access_token']\n", | |
"access_token_secret = secrets['access_token_secret']" | |
], | |
"execution_count": 7, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "cNEvUnOU-38L" | |
}, | |
"source": [ | |
"auth = tw.OAuthHandler(api_key, api_secret_key)\n", | |
"auth.set_access_token(access_token, access_token_secret)\n", | |
"api = tw.API(auth, wait_on_rate_limit=True)" | |
], | |
"execution_count": 8, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "r-GoXgSw_MoM", | |
"outputId": "ecf772e4-4428-4a31-b627-8c272776feb6", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 35 | |
} | |
}, | |
"source": [ | |
"new_search = \"What kind of monster doesn't\"# + \" -filter:retweets\"\n", | |
"new_search" | |
], | |
"execution_count": 9, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"application/vnd.google.colaboratory.intrinsic+json": { | |
"type": "string" | |
}, | |
"text/plain": [ | |
"\"What kind of monster doesn't\"" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 9 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "BbHGOI5x_UhS" | |
}, | |
"source": [ | |
"tweets = tw.Cursor(api.search,\n", | |
" q=new_search,\n", | |
" lang=\"en\",\n", | |
" since='1990-01-01')\n" | |
], | |
"execution_count": 10, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "7aDRcmg_qF4S" | |
}, | |
"source": [ | |
"tw_pgs = tweets.pages(10)" | |
], | |
"execution_count": 11, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "N0lot5ddqaJM" | |
}, | |
"source": [ | |
"tw_itms = tweets.items()" | |
], | |
"execution_count": 12, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "cjlUl8s3rSKv", | |
"outputId": "55373b05-df8a-4549-a19d-2a743c49d6f3", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 54 | |
} | |
}, | |
"source": [ | |
"tw_itms.next()" | |
], | |
"execution_count": 13, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"Status(_api=<tweepy.api.API object at 0x7f19c1ec8630>, _json={'created_at': 'Sat Oct 24 03:23:46 +0000 2020', 'id': 1319841989299441664, 'id_str': '1319841989299441664', 'text': \"@GavinNewsom @ReflectingMan If this doesn't break your heart, then you're not human. On the day Trump conceived of… https://t.co/AspiAkfoGp\", 'truncated': True, 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [{'screen_name': 'GavinNewsom', 'name': 'Gavin Newsom', 'id': 11347122, 'id_str': '11347122', 'indices': [0, 12]}, {'screen_name': 'ReflectingMan', 'name': 'D.K.R. Boyd', 'id': 235357157, 'id_str': '235357157', 'indices': [13, 27]}], 'urls': [{'url': 'https://t.co/AspiAkfoGp', 'expanded_url': 'https://twitter.com/i/web/status/1319841989299441664', 'display_url': 'twitter.com/i/web/status/1…', 'indices': [116, 139]}]}, 'metadata': {'iso_language_code': 'en', 'result_type': 'recent'}, 'source': '<a href=\"http://twitter.com/#!/download/ipad\" rel=\"nofollow\">Twitter for iPad</a>', 'in_reply_to_status_id': 1319492367821406209, 'in_reply_to_status_id_str': '1319492367821406209', 'in_reply_to_user_id': 11347122, 'in_reply_to_user_id_str': '11347122', 'in_reply_to_screen_name': 'GavinNewsom', 'user': {'id': 881746816823431168, 'id_str': '881746816823431168', 'name': 'TIKdOffPinsNThings', 'screen_name': 'TIKdOffPinsNTh1', 'location': 'Upstate NY', 'description': \"Ain't got time 4 hate,bigotry,racial intolerance & injustice. Will RESIST all who do #RESIST#NoWallNoBan##BlackLivesMatter#AntiTrump#Impeach#ACL#NotMyPresident\", 'url': None, 'entities': {'description': {'urls': []}}, 'protected': False, 'followers_count': 3127, 'friends_count': 4979, 'listed_count': 5, 'created_at': 'Mon Jul 03 05:29:58 +0000 2017', 'favourites_count': 11664, 'utc_offset': None, 'time_zone': None, 'geo_enabled': False, 'verified': False, 'statuses_count': 44577, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': '000000', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/881746816823431168/1499066254', 'profile_link_color': 'E81C4F', 'profile_sidebar_border_color': '000000', 'profile_sidebar_fill_color': '000000', 'profile_text_color': '000000', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none'}, 'geo': None, 'coordinates': None, 'place': None, 'contributors': None, 'is_quote_status': False, 'retweet_count': 0, 'favorite_count': 2, 'favorited': False, 'retweeted': False, 'lang': 'en'}, created_at=datetime.datetime(2020, 10, 24, 3, 23, 46), id=1319841989299441664, id_str='1319841989299441664', text=\"@GavinNewsom @ReflectingMan If this doesn't break your heart, then you're not human. On the day Trump conceived of… https://t.co/AspiAkfoGp\", truncated=True, entities={'hashtags': [], 'symbols': [], 'user_mentions': [{'screen_name': 'GavinNewsom', 'name': 'Gavin Newsom', 'id': 11347122, 'id_str': '11347122', 'indices': [0, 12]}, {'screen_name': 'ReflectingMan', 'name': 'D.K.R. Boyd', 'id': 235357157, 'id_str': '235357157', 'indices': [13, 27]}], 'urls': [{'url': 'https://t.co/AspiAkfoGp', 'expanded_url': 'https://twitter.com/i/web/status/1319841989299441664', 'display_url': 'twitter.com/i/web/status/1…', 'indices': [116, 139]}]}, metadata={'iso_language_code': 'en', 'result_type': 'recent'}, source='Twitter for iPad', source_url='http://twitter.com/#!/download/ipad', in_reply_to_status_id=1319492367821406209, in_reply_to_status_id_str='1319492367821406209', in_reply_to_user_id=11347122, in_reply_to_user_id_str='11347122', in_reply_to_screen_name='GavinNewsom', author=User(_api=<tweepy.api.API object at 0x7f19c1ec8630>, _json={'id': 881746816823431168, 'id_str': '881746816823431168', 'name': 'TIKdOffPinsNThings', 'screen_name': 'TIKdOffPinsNTh1', 'location': 'Upstate NY', 'description': \"Ain't got time 4 hate,bigotry,racial intolerance & injustice. Will RESIST all who do #RESIST#NoWallNoBan##BlackLivesMatter#AntiTrump#Impeach#ACL#NotMyPresident\", 'url': None, 'entities': {'description': {'urls': []}}, 'protected': False, 'followers_count': 3127, 'friends_count': 4979, 'listed_count': 5, 'created_at': 'Mon Jul 03 05:29:58 +0000 2017', 'favourites_count': 11664, 'utc_offset': None, 'time_zone': None, 'geo_enabled': False, 'verified': False, 'statuses_count': 44577, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': '000000', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/881746816823431168/1499066254', 'profile_link_color': 'E81C4F', 'profile_sidebar_border_color': '000000', 'profile_sidebar_fill_color': '000000', 'profile_text_color': '000000', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none'}, id=881746816823431168, id_str='881746816823431168', name='TIKdOffPinsNThings', screen_name='TIKdOffPinsNTh1', location='Upstate NY', description=\"Ain't got time 4 hate,bigotry,racial intolerance & injustice. Will RESIST all who do #RESIST#NoWallNoBan##BlackLivesMatter#AntiTrump#Impeach#ACL#NotMyPresident\", url=None, entities={'description': {'urls': []}}, protected=False, followers_count=3127, friends_count=4979, listed_count=5, created_at=datetime.datetime(2017, 7, 3, 5, 29, 58), favourites_count=11664, utc_offset=None, time_zone=None, geo_enabled=False, verified=False, statuses_count=44577, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='000000', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=False, profile_image_url='http://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/881746816823431168/1499066254', profile_link_color='E81C4F', profile_sidebar_border_color='000000', profile_sidebar_fill_color='000000', profile_text_color='000000', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none'), user=User(_api=<tweepy.api.API object at 0x7f19c1ec8630>, _json={'id': 881746816823431168, 'id_str': '881746816823431168', 'name': 'TIKdOffPinsNThings', 'screen_name': 'TIKdOffPinsNTh1', 'location': 'Upstate NY', 'description': \"Ain't got time 4 hate,bigotry,racial intolerance & injustice. Will RESIST all who do #RESIST#NoWallNoBan##BlackLivesMatter#AntiTrump#Impeach#ACL#NotMyPresident\", 'url': None, 'entities': {'description': {'urls': []}}, 'protected': False, 'followers_count': 3127, 'friends_count': 4979, 'listed_count': 5, 'created_at': 'Mon Jul 03 05:29:58 +0000 2017', 'favourites_count': 11664, 'utc_offset': None, 'time_zone': None, 'geo_enabled': False, 'verified': False, 'statuses_count': 44577, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': '000000', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': False, 'profile_image_url': 'http://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/881746816823431168/1499066254', 'profile_link_color': 'E81C4F', 'profile_sidebar_border_color': '000000', 'profile_sidebar_fill_color': '000000', 'profile_text_color': '000000', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none'}, id=881746816823431168, id_str='881746816823431168', name='TIKdOffPinsNThings', screen_name='TIKdOffPinsNTh1', location='Upstate NY', description=\"Ain't got time 4 hate,bigotry,racial intolerance & injustice. Will RESIST all who do #RESIST#NoWallNoBan##BlackLivesMatter#AntiTrump#Impeach#ACL#NotMyPresident\", url=None, entities={'description': {'urls': []}}, protected=False, followers_count=3127, friends_count=4979, listed_count=5, created_at=datetime.datetime(2017, 7, 3, 5, 29, 58), favourites_count=11664, utc_offset=None, time_zone=None, geo_enabled=False, verified=False, statuses_count=44577, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='000000', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=False, profile_image_url='http://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/928588282560118784/lpFsNwVJ_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/881746816823431168/1499066254', profile_link_color='E81C4F', profile_sidebar_border_color='000000', profile_sidebar_fill_color='000000', profile_text_color='000000', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none'), geo=None, coordinates=None, place=None, contributors=None, is_quote_status=False, retweet_count=0, favorite_count=2, favorited=False, retweeted=False, lang='en')" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 13 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "RWC2yLPIqESr" | |
}, | |
"source": [ | |
"\n", | |
"tweet_list = [tweet.text for tweet in tweets.items()]" | |
], | |
"execution_count": 14, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "WPCpGU6prpkO", | |
"outputId": "4323c1a0-1da3-4582-8e14-2fa318f07b30", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 1000 | |
} | |
}, | |
"source": [ | |
"tweet_list" | |
], | |
"execution_count": 15, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"[\"McGee, what the fuck kind of *monster* doesn't like pickles?!\\n#NCIS #Blasphemy\",\n", | |
" '@naked_pops26 @ParodyPutin The little squares on waffles lol, also what kind of monster doesn’t use syrup 😔',\n", | |
" '@jkutik What kind of monster doesn’t drink it?!?',\n", | |
" 'RT @AdamScotti: The home they tore down a tree for, applied plethora of variances despite neighbourhood opposition, said would be a family…',\n", | |
" 'RT @AdamScotti: The home they tore down a tree for, applied plethora of variances despite neighbourhood opposition, said would be a family…',\n", | |
" \"@chaneznicholas What kind of evil doing is this. They still want to gain from the poor, this is so painful and I'm… https://t.co/sCMBjvvrkM\",\n", | |
" 'RT @AdamScotti: The home they tore down a tree for, applied plethora of variances despite neighbourhood opposition, said would be a family…',\n", | |
" 'The home they tore down a tree for, applied plethora of variances despite neighbourhood opposition, said would be a… https://t.co/HenpT3E7Fn',\n", | |
" '@johncardillo What kind of monster doesn’t kiss their kids?',\n", | |
" '@Susan_Hennessey Don’t forget that this old man is senile. He probably doesn’t know what kind of monster his addict… https://t.co/yBu4E18NbZ',\n", | |
" 'If you can, read this article & ignore for a minute the tactical discussion. Imagine what kind of a person Trump i… https://t.co/ids1bKrBIt',\n", | |
" 'RT @roboticspider: Also what does is matter what the parents are doing?? It’s too late for that now. We are talking about children. Literal…',\n", | |
" 'Also what does is matter what the parents are doing?? It’s too late for that now. We are talking about children. Li… https://t.co/i73ZC2QOxW',\n", | |
" \"@EmirichuYT What kind of monster doesn't like coconut? AND CHOCOLATE?!?! https://t.co/QzNW70TJBr\",\n", | |
" \"@MapsCats @pattinichols What kind of a monster doesn't like candy corn?\",\n", | |
" 'RT @singoffpitch: What kind of monster doesn’t do the arm motions for YMCA when it’s playing? That’s like not singing along with Bohemian R…',\n", | |
" 'What kind of monster doesn’t do the arm motions for YMCA when it’s playing? That’s like not singing along with Bohe… https://t.co/ITVgNGcbWH',\n", | |
" \"@EliseStefanik What kind of ignorant monster doesn't support a ban of ASSAULT weapons?!?!\\n\\nThe word is right there.… https://t.co/bzm05qru9V\",\n", | |
" \"What kind of monster makes french fries but doesn't season them with salt? Answer: my father\\nI don't need them to b… https://t.co/fd9CnmJ6zf\",\n", | |
" '@DanRather This made me physically ill. I have always known what kind of monster trump was and is, but this is unc… https://t.co/pqXuP9Cvop',\n", | |
" '@GregFrisbeeShow @itsalexclark What kind of monster doesn’t press the clear button?!',\n", | |
" '@IamTheSherm @CrabCrisp @TeltheTrekkie @RosemaryChapman @Scififootball @3illSweet And seriously, what kind of monst… https://t.co/41ZOpqNst8',\n", | |
" 'Anyone that doesn’t understand why anyone would want to fight human trafficking is probably involved in it... Serio… https://t.co/tF5wMk9aEr',\n", | |
" \"@CuckoldressS Actually no but what kind of monster doesn't love Office gifs. All the ladies love The Office gifs. https://t.co/enVpGmTpW3\",\n", | |
" \"@CaliTSB What kind of monster doesn't eat tomatoes on their own 😱\",\n", | |
" 'What kind of monster orders @PopeyesChicken and doesn’t meet the delivery driver on the street? https://t.co/b6rOO6BDNS',\n", | |
" \"@MissTashaV Devour all of the frosting. What kind of monster doesn't?\",\n", | |
" \"What kind of monster DOESN'T have butter on Milk Arrowroots https://t.co/iHbb1jWOog\",\n", | |
" \"@YoKiwi_ @Cynical_CJ I have absolutely no idea what you're assuming here, but you're acting like I'm some kind of m… https://t.co/Y8mtfiSzdT\",\n", | |
" '@TomKattman @WriteGrlProbs @pipandbaby “What kind of monster doesn’t like lasagna?” - statement from Garfield.',\n", | |
" \"also i don't trust anyone who hates jump scares because half the time it's a cat, and what kind of monster doesn't want to see a cat???\",\n", | |
" 'Really though, what kind of monster doesn’t have room spray in their bathroom?',\n", | |
" \"@hailsvsce is what i love the most tbh it doesn't count if they delete bc they're scared as if justin was some kind of monster\",\n", | |
" '@ProperBadger What kind of a monster doesn’t like gingerbread?! 😱😂 And, well, I also got chocolate and orange sprin… https://t.co/59cdQAqbFx',\n", | |
" \"@Artemisapphire Only 7 for me, because I don't do Christmas cards!\\n\\n(Seriously though, what kind of monster doesn't… https://t.co/BE7pI5bSqo\",\n", | |
" 'RT @TrikaBaa: @altonbrown Without science, we do not have baking. Without baking, we do not have cake or cookies. Therefore, the only concl…',\n", | |
" \"@Rlovett_23 He doesn't deserve anything else what kind of monster are you to do that to a 7 year old?!\",\n", | |
" \"My brother asked me what I make for dinner that doesn't have pasta, rice or potatoes. All I can think of is pizza.… https://t.co/1Dfk6VY30e\",\n", | |
" '@TheMicroJ J, what do you take me for!? Some kind of monster hell bent on revenge for being mentally abused by his… https://t.co/sxZJt3cGrR',\n", | |
" 'RT @TrikaBaa: @altonbrown Without science, we do not have baking. Without baking, we do not have cake or cookies. Therefore, the only concl…',\n", | |
" 'What kind of monster doesn’t use Twitter in dark mode',\n", | |
" '@altonbrown Without science, we do not have baking. Without baking, we do not have cake or cookies. Therefore, the… https://t.co/6g0k4plkHy',\n", | |
" '@0xabad1dea What kind of monster would use different casing for the positive and negative class? In fact, what kind… https://t.co/TErjdzeQmH',\n", | |
" \"@needy4headpats WHAT KIND OF MONSTER DOESN'T LIKE TMNT\",\n", | |
" '@evilgenius780 What kind of monster doesn’t?!?!',\n", | |
" 'RT @lLedford3Tammy: I know I was just saying that to my mom tonight what the hell kind of president doesn’t have a dog? He must be a monster',\n", | |
" 'RT @lLedford3Tammy: I know I was just saying that to my mom tonight what the hell kind of president doesn’t have a dog? He must be a monster',\n", | |
" 'I know I was just saying that to my mom tonight what the hell kind of president doesn’t have a dog? He must be a mo… https://t.co/8SNreyz4As',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" \"@princessamiira That's a deal changer... what kind of monster doesn't love tacos?\",\n", | |
" 'RT @DeidreEversull: @Jarnocan @nikasnook @CaslerNoel @MSNBC @CNN @NPR @cspan @ABC @CBSNews Marisela Pino was known as Maria. The police rep…',\n", | |
" \"@RepsForBiden How about grandchildren? What kind of a monster doesn't love his grandchildren?\",\n", | |
" 'RT @DeidreEversull: @Jarnocan @nikasnook @CaslerNoel @MSNBC @CNN @NPR @cspan @ABC @CBSNews Marisela Pino was known as Maria. The police rep…',\n", | |
" '@TellySwann @LoveAndyC Yes there are! But when you tell your child what a jerk their Father is for not seeing them,… https://t.co/TeJklIqjZe',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'What kind of monster doesn\\'t skip right to the \"personal life\" section on Wikipedia??',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'RT @nmatini: What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort to retri…',\n", | |
" 'What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effo… https://t.co/bxYprY1pMH',\n", | |
" 'RT @nmatini: @ditord What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort…',\n", | |
" 'RT @nmatini: @ditord What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort…',\n", | |
" '@TH38THWARCR1M3 @messymalfoy @tiktok_us @TomFelton he did apologize actually and in an interview said he doesn’t sp… https://t.co/n0zT9XvwUl',\n", | |
" 'RT @nmatini: @ditord What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort…',\n", | |
" 'RT @nmatini: @ditord What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names, no effort…',\n", | |
" '@ditord What kind of a monster is @presidentaz? For three weeks he doesn’t realease any casualty numbers, no names,… https://t.co/LDPLI26mRS',\n", | |
" '@DTC_RileyB It’s Snickers but what kind of monster doesn’t like any of those choices?',\n", | |
" '@zlind76 My brother saw them on the Monster tour. I was always jealous of that. What kind of a dickhead older broth… https://t.co/suz4Ss6s1W',\n", | |
" \"@Stormisnub @SirClashin What kind of monster doesn't collect the rewards instantly 😰\",\n", | |
" 'What kind of monster makes this tweet and doesn’t put 3 Musketeers in it because that’s the obvious choice😷 https://t.co/1QJpenNIZK',\n", | |
" \"@UzamakiJ MILKY WAY. Also, what kind of monster doesn't like chocolate and peanut butter? https://t.co/iPBdlaBAEL\",\n", | |
" \"@smjraphael @Andrew_Adonis Yeah, what kind of monster doesn't support a military coup against an elected government?\",\n", | |
" '@amscanlon What kind of monster doesn’t say hello to a dog?',\n", | |
" \"@SpringB90 @JanetSwasey @lemon_lymann @robbie_couch Also what kind of monster doesn't freeze larger reese's to improve them anyhow?\",\n", | |
" '@DanielleVEsq What kind of monster doesn’t say hello to their pet when they see them?!',\n", | |
" \"What kind of monster doesn't do this?! https://t.co/XBk6KMXead\",\n", | |
" '@NiamhFitz What kind of monster doesn’t?',\n", | |
" \"Got a feeling gabriel doesn't know what kind of a monster aguero is. 60% chance he's getting murdered\",\n", | |
" 'What kind of monster turns off my alarm and doesn’t bother to wake me up for it?\\n\\nThe monster in question: https://t.co/i8ABqhtsIz',\n", | |
" '@NiamhFitz What kind of monster doesn’t?',\n", | |
" '@SonyaOldsSom What kind of monster doesn’t greet their pets? Why get a pet if you do t want to pretend that it’s a… https://t.co/remazCogG7',\n", | |
" \"What kind of monster doesn't? https://t.co/KDtd3l1pvJ\",\n", | |
" \"RT @SAGES_Updates: What kind of monster doesn't?\",\n", | |
" '@NiamhFitz What kind of monster doesn’t? Mine is gone 8 years now but I always did.',\n", | |
" 'What kind of sociopathic monster doesn’t say hi to their pet when they walk into a room? https://t.co/INa8eAFGSD',\n", | |
" \"RT @rosstmiller: What kind of monster doesn't?!\",\n", | |
" \"@LD_Habie sure, each character has their own fatal flaw but johan's monstrosity doesn't hold the same weight as the… https://t.co/RrX4uOphjm\",\n", | |
" \"@random_tourist What kind of monster doesn't think better of Joe Biden after seeing this?\",\n", | |
" 'What kind of monster are you if the last “Okay.” In The Fault in Our Stars doesn’t absolutely destroy you....',\n", | |
" \"What kind of monster doesn't greet their critters? https://t.co/FgKbIzErho\",\n", | |
" \"@Theswiftyilian What kind of monster doesn't?\",\n", | |
" \"RT @SAGES_Updates: What kind of monster doesn't?\",\n", | |
" \"What kind of monster doesn't? https://t.co/DRhWZ7o47W\",\n", | |
" '@NiamhFitz What kind of monster doesn’t?!?!?!?',\n", | |
" \"Q4. Is there a kind of monster that doesn't often show up in books or on screen that you wish more stories were wri… https://t.co/TVGfXW8yiR\",\n", | |
" \"RT @adampreston88: What kind of absolute monster DOESN'T say hello to their children when they walk into the room?\",\n", | |
" '@axios It doesn\\'t matter what \"kind of person you would like to see.\" What matters is getting this monster out of t… https://t.co/YnRiAsOUGI',\n", | |
" '@TNJed615 More importantly, what kind of monster doesn’t order a pepperoni pizza on a NY style pie?',\n", | |
" \"What kind of absolute monster DOESN'T say hello to their children when they walk into the room? https://t.co/FxwqQfRZMZ\",\n", | |
" \"RT @rosstmiller: What kind of monster doesn't?! https://t.co/1csoBYhMov\",\n", | |
" \"RT @rosstmiller: What kind of monster doesn't?!\",\n", | |
" \"What kind of monster doesn't?! https://t.co/1csoBYhMov\",\n", | |
" '@NiamhFitz I say hello (in a special tone of voice) to pretty much every animal I see.... dog, cat, squirrel, swan.… https://t.co/OqlNFTY6Xn',\n", | |
" 'RT @Tucker5law: @NiamhFitz What kind of monster doesn’t?',\n", | |
" '@NiamhFitz What kind of monster doesn’t?!',\n", | |
" '@realDonaldTrump What kind of third world leader doesn’t support a state that just had the worst wildfire disaster… https://t.co/PA40dRyEZd',\n", | |
" '@NiamhFitz What kind of monster doesn’t?',\n", | |
" \"@NiamhFitz What kind of monster doesn't? https://t.co/3vJfNfenhY\",\n", | |
" 'What kind of monster doesn’t do this? https://t.co/XrwAY99rqn',\n", | |
" 'RT @Tucker5law: @NiamhFitz What kind of monster doesn’t?',\n", | |
" \"what kind of monster doesn't do this? https://t.co/4xSngUS5WI\",\n", | |
" 'RT @Tucker5law: @NiamhFitz What kind of monster doesn’t?',\n", | |
" 'Seriously!!! What kind of monster doesn’t like Mr Rogers??? https://t.co/TyTsGMmI71 https://t.co/VkK2JSmlbW',\n", | |
" '@NiamhFitz What kind of monster doesn’t?',\n", | |
" \"#Trump would be the kind of monster who hates Mr. Rogers. If that doesn't show you his true self IDK what is wrong… https://t.co/BgbOlEmCat\",\n", | |
" \"@mercedesschlapp @JoeBiden @ABCPolitics What kind of monster doesn't like Mister Rogers?\",\n", | |
" '@therealsinead What kind of monster doesn’t??',\n", | |
" 'RT @Sgarcia81: FACT: Donald Trump hates dogs. \\n\\nWhat kind of monster doesn’t like dogs? \\n\\n#BidenTownHall #TrumpTownHall #dogsforbiden #vote…',\n", | |
" 'RT @Sgarcia81: FACT: Donald Trump hates dogs. \\n\\nWhat kind of monster doesn’t like dogs? \\n\\n#BidenTownHall #TrumpTownHall #dogsforbiden #vote…',\n", | |
" 'FACT: Donald Trump hates dogs. \\n\\nWhat kind of monster doesn’t like dogs? \\n\\n#BidenTownHall #TrumpTownHall #dogsforbiden #vote #biden2020',\n", | |
" 'Is this supposed to be an insult???\\nWhat kind of monster doesn’t love Mr. Rogers??? America becoming Mr. Rogers’ ne… https://t.co/yDPsDSjZtK',\n", | |
" 'RT @NikJoy2020: What kind of monster doesn’t like Mr. Rogers?\\nOh, the kind of people that think keeping babies and children in cages as a d…',\n", | |
" 'What kind of monster doesn’t like Mr. Rogers?\\nOh, the kind of people that think keeping babies and children in cage… https://t.co/MREqsey62i',\n", | |
" \"@mercedesschlapp @JoeBiden @ABCPolitics What kind of monster doesn't like Mr. Rodgers?\",\n", | |
" '@mercedesschlapp @JoeBiden @ABCPolitics What kind of monster doesn’t even know how Mr. Rogers’ last name is spelled?',\n", | |
" \"@mercedesschlapp @JoeBiden @ABCPolitics What kind of monster doesn't like Mr. Rogers?\",\n", | |
" 'RT @menstralkrampus: She is saying this as an insult which I do not understand in the slightest. What kind of fucking monster doesn’t like…',\n", | |
" \"JFC.\\n\\nWhat kind of monster doesn't like Mr. Rogers?\\n\\n@JoeBiden\\n @ABCPolitics https://t.co/jvqaDgnwgH\",\n", | |
" 'She is saying this as an insult which I do not understand in the slightest. What kind of fucking monster doesn’t li… https://t.co/a6vsT6edNn']" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 15 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "AmaVt0XLr7R9", | |
"outputId": "b1918445-79e8-4404-e893-c792a84f3be7", | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
} | |
}, | |
"source": [ | |
"len(tweet_list)" | |
], | |
"execution_count": 16, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"135" | |
] | |
}, | |
"metadata": { | |
"tags": [] | |
}, | |
"execution_count": 16 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Rz8CIKUnuU0n" | |
}, | |
"source": [ | |
"" | |
], | |
"execution_count": null, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment