Skip to content

Instantly share code, notes, and snippets.

View fndiaz's full-sized avatar
:octocat:

Fernando fndiaz

:octocat:
  • São Paulo
View GitHub Profile
@fndiaz
fndiaz / face_client.py
Created May 21, 2013 01:47
xmpp facebook client
#!/usr/bin/python
# coding: utf-8
import sys, xmpp, os, signal, time, re, commands, requests, json
reload(sys)
sys.setdefaultencoding("utf-8")
def messageCB(conn,msg):
mess=str(msg.getBody())
rec=str(msg.getFrom())
rec0=rec.split('/')[0]