Skip to content

Instantly share code, notes, and snippets.

View jerinisready's full-sized avatar
💭
A catalyst of Change

JK jerinisready

💭
A catalyst of Change
View GitHub Profile
@jerinisready
jerinisready / fetch_live_tweets.py
Last active April 20, 2018 13:07
Fun @ GDGCochin #DevFest17
class A:
KEY = 'u5NeFqa------------tZ2UM'
SECRET = 'WgWtW3tL_--------------------------IlKD5GTHCfTjrLBsrC'
TOKEN = '1495931731-r----------------------------kjpfcMAjXxk'
TOKEN_SECRET = 'Im24KQ------------------------------fMJyK'
api_keys = A()
@jerinisready
jerinisready / twitter_avg_post_length.py
Created September 6, 2017 15:58
HBase-Spark-Twitter-API-Streaming-Python A sample Code to find Average length of tweets in Twitter. Prerequests: HBASE database : with table name "twitter" and a column family "json" feeded with twitter api stream. Each row name starts with tweet Used Happybase to connect HBASE Database structure is mentioned in https://github.com/jerinisready/K…
# HBASE Database Design Here : https://github.com/jerinisready/Kafka-Twittter-Streaming
from __future__ import print_function
import json
import happybase
# from happybase import connection as Connection
## START bin/hbase rest start -p <port>
## VARS
LISTENING_TOPIC = 'myWorld'