Skip to content

Instantly share code, notes, and snippets.

View hj91's full-sized avatar
:octocat:

Harshad Joshi hj91

:octocat:
View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Full script used in blog post at http://h6o6.com/2013/03/using-python-and-the-nltk-to-find-haikus-in-the-public-twitter-stream
4-clause license (original "BSD License")
Copyright (c) 2013, h6o6
All rights reserved.
@hj91
hj91 / pull_fb_notifications.py
Created May 2, 2011 12:18
Get Facebook Notifications on sms using Python
# This code is meant to show how to get latest notifications on sms using python-gammu library
# Very simple and primitive code..
# To Do - Create a mysql backend and run this program every 10 minutes. The notifications sent before shoudent be sent on sms again (i need someone to write code for that ;)
import feedparser
import gammu
import urllib2
import gammu
sm = gammu.StateMachine()
@hj91
hj91 / identica_reply.py
Created April 27, 2011 11:54
A small python snippet to parse identi.ca replies for a particular user
# A small python snippet to parse identi.ca replies for a particular user..in this case, it is HJ91
# (c) 26 April 2011, Harshad Joshi
import urllib2
import feedparser
a=urllib2.urlopen("http://identi.ca/api/statuses/mentions/hj91.rss")
b=feedparser.parse(a)
for i in range(len(b.entries)):