Skip to content

Instantly share code, notes, and snippets.

View keshavramaswamy's full-sized avatar

Keshav Ramaswamy keshavramaswamy

View GitHub Profile
@keshavramaswamy
keshavramaswamy / hashtag_graph.py
Created April 6, 2016 22:29
Twitter Hashtag Graph Analyzer - Code Sample
import networkx as nx
import datetime
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class HashtagGraph(object):
"""
a class which updates the graph and calculates its average degree
"""
@keshavramaswamy
keshavramaswamy / twitter_hashtag_graph_analyzer.py
Created April 6, 2016 22:31
Twitter hashtag Graph Analyzer - Code Sample
import json
from src.modules.tweet import Tweet
from src.modules.hashtag_graph import HashtagGraph
import argparse
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
def get_tweet(json_data):
@keshavramaswamy
keshavramaswamy / README.md
Created July 7, 2016 16:05 — forked from GilLevi/README.md
Age and Gender Classification using Convolutional Neural Networks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@keshavramaswamy
keshavramaswamy / sec_s1_scraper.py
Created October 15, 2017 15:45
Script to scrape S1 Document URLs for any company
from bs4 import BeautifulSoup
import requests
import pandas as pd
"""
This script prints the URL of the S1 Document given the company name and the path of the cik lookup, more to be added
make sure the dependencies are installed. Runs on python 2.7.