Skip to content

Instantly share code, notes, and snippets.

import pandas as pd
import tweepy
import jsonpickle
# Consume:
CONSUMER_KEY = '<Your key here>'
CONSUMER_SECRET = '<Your key here>'
# Access:
ACCESS_TOKEN = '<Your key here>'
@vallantin
vallantin / 01tt.py
Last active October 16, 2018 15:46
def tweets_to_df(path):
tweets = list(open('tweets_bkp.json', 'rt'))
text = []
weekday = []
month = []
day = []
hour = []
hashtag = []
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.