Skip to content

Instantly share code, notes, and snippets.

View ejgutierrez74's full-sized avatar

Eduardo Gutierrez ejgutierrez74

View GitHub Profile
@ejgutierrez74
ejgutierrez74 / Formattedjson
Last active June 21, 2019 09:44
Tweeter json file
{
"created_at":"Tue May 03 13:58:16 +0000 2016",
"id":727497507362734080,
"id_str":"727497507362734080",
"text":"RT @NolteNC: Morning Joe gives huge credit to Hillary for confronting a critic but laughs hysterically when Cruz \"shows up\" to do same.",
"source":"\u003ca href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter for iPhone\u003c\/a\u003e",
"truncated":false,
"in_reply_to_status_id":null,
"in_reply_to_status_id_str":null,
"in_reply_to_user_id":null,
@ejgutierrez74
ejgutierrez74 / JupyterError.txt
Last active July 8, 2019 12:16
Load json filteing by language and save as SequenceFile
Twiter from AmeriGirl ->RT @NolteNC: Morning Joe gives huge credit to Hillary for confronting a critic but laughs hysterically when Cruz "shows up" to do same.
Operation completed in 0.093 seconds
-------------------------------FIRST DATA READ ----------------------
{u'contributors': None, u'truncated': False, u'text': u'RT @NolteNC: Morning Joe gives huge credit to Hillary for confronting a critic but laughs hysterically when Cruz "shows up" to do same.', u'is_quote_status': False, u'in_reply_to_status_id': None, u'id': 727497507362734080, u'favorite_count': 0, u'source': u'<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>', u'retweeted': False, u'coordinates': None, u'timestamp_ms': u'1462283896662', u'entities': {u'user_mentions': [{u'indices': [3, 11], u'screen_name': u'NolteNC', u'id': 16163639, u'name': u'John Nolte', u'id_str': u'16163639'}], u'symbols': [], u'hashtags': [], u'urls': []}, u'in_reply_to_screen_name': None, u'in_reply_to_user_id': None, u'retweet_cou
@ejgutierrez74
ejgutierrez74 / GettinData.py
Created July 15, 2019 17:23
Code for downloading data for @udl
import tweepy
import json
consumer_key = "r8y13uUfAduFvj8X4dsEdAMWG"
consumer_secret = "gBAaLFgxTXXnLlnqAmPJKpD22Cg3L0I6tW9yy0kdY34pv8cEZO"
access_token = "1150328765597310976-Sww8Yua53EmGOnkr09cPkUylS1hSuO"
access_token_secret = "OIIurB22pKTax4FYbs9QNRuXTLFhasSLfqI0Zd4lkjkm4"
#Now it’s time to create our API object.
# Creating the authentication object