This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)): |