<jupyter_start><jupyter_text>SSS - Twitter Data  *Super simple script (SSS) on getting data from Twitter* Import the libraries<jupyter_code>import tweepy<jupyter_output><empty_output><jupyter_text>Assign your own API keys in the constants below<jupyter_code># Enter your own keys from your twitter account. 
API_KEY =''
API_SECRET =''
ACCESS_TOKEN =''
ACCESS_TOKEN_SECRET =''<jupyter_output><empty_output><jupyter_text>Enter the keys above into tweepy's API<jupyter_code>auth = tweepy.OAuthHandler(API_KEY, API_SECRET)
auth.set_access_token(ACCESS_TOKEN, ACCESS_TOKEN_SECRET)

api = tweepy.API(auth)<jupyter_output><empty_output><jupyter_text>List of users which you would like to get feeds from<jupyter_code>users = ['scottadamssays']<jupyter_output><empty_output><jupyter_text>Get tweets from the user's timeline<jupyter_code>user_timeline = api.user_timeline(screen_name=users[0], count=10)
for idx, tweet in enumerate(user_timeline):
    print(user_timeline[idx].text)<jupyter_output>@Angelo_Lutz @brithume That shall be my theme on today's Periscope.
@DLoffman @mitchellvii It does work wonders for anger management.
@bonafidecustom I block Nazis. Goodbye.
@PerryCampbell5 We don't bomb people because they don't have water.
@Igmoramis I don't care about my plumber's personal life either.
@Iggy_Semmelweis @JoshuaDav @rcktwit Your emoji game is strong.
@epkhouri @netanyahu You are what you do. He displayed empathy. Civilization doesn’t work if we judge people by wha… https://t.co/60kStgfUbV
@epkhouri No one does. Empathy is the opposite of war talk.
@epkhouri Is propaganda the derogatory word for persuasion toward a common good?
@JoshuaDav @rcktwit I block Nazi apologists like you. Goodbye.<jupyter_text>Hashtags that you would like to search<jupyter_code>topics = ['#infinitywars']<jupyter_output><empty_output><jupyter_text>Use the search API<jupyter_code>for tweet in tweepy.Cursor(api.search, 
                           q=topics[0], 
                           count=100,
                           lang='en',
                           since='2018-01-01').items():
    print(tweet.created_at, tweet.text)<jupyter_output>2018-07-30 10:34:46 Infinity Wars Prime saw the death of Thanos. #Thanos #InfinityWars #Marvel #MarvelComics https://t.co/0kpgjFkLFm
2018-07-30 09:21:33 Slink is... THANOS!

#thanos #infinitywars #gauntlet #marvel #marvelcomics #comics #comicbook #creating #creative… https://t.co/TFy5T44OFB
2018-07-30 09:13:24 Pull list 8/1/18:  #HuntForWolverineWeaponLost #4; #InfinityWars #1; #StarWars #52; #StarWarsTheLastJediAdaptation… https://t.co/RQfyenpmYS
2018-07-30 05:26:07 RT @dalew927: DEADPOOL BACKPACKS https://t.co/iTYRoCxycX

#backpackkid #Backpacks #backpacking #backpack #Backpackers #Deadpool #Deadpool2…
2018-07-30 02:49:38 RT @cparadize_pas: 🚨SIGNING THIS WEDNESDAY🚨
Join us on WEDNESDAY, AUGUST 1st for a special signing w/ writer GERRY DUGGAN for the release o…
2018-07-29 20:48:50 RT @JavierGarron: INFINITY WARS #2 comes 8/15 and that means the second piece of the 6-part dramatically epic connecting cover is officiall…
2018-07-29 20:28:15 RT @Renner4Real: That’s a wrap! #infinitywars [...]
{'fraction_non_alphanumeric': 0.0960559796437659, 'fraction_numerical': 0.04421119592875318, 'mean_word_length': 5.106796116504855, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '521294', 'license': 'MIT', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1117, 'n_words': 308, 'path': 'Twitter Data.ipynb', 'repo_name': 'playgrdstar/twitter', 'size': '3144'}