Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Using XMPP to post content on blog/sms/facebook

branch: master
README
Author       - Harshad Joshi
Email        - firewalrus@gmail.com
Twitter      - @hj91  
Date         - 10 June 2010 / 2 Jan 2011

Requirements 
- Wordpress blog with xml-rpc publishing enabled.
- XMPP chat server (openfire)
- Python 2.5 with xmpp and xml-rpc library.
- Gammu SMS library version 1.27.
- PyNotify to get updates on desktop (Linux only).

Features     
- Unicode enabled

This programs runs on a localhost xmpp server and logs all the messages sent to it on wordpress blog.
Its a sort of federated microblogging with a database backend. Useful for storming sessions. 

Check this example - http://moiblogging.wordpress.com/2010/10/02/what-i-typed-today-from-im-client-firewalrus-at-gmail-dot-com-54/


ToDo      
- Bot gets kicked off after being idle for 5 or 6 minutes on openfire server. Works well on gtalk server 
- Needs to send 'KeepALive' packet.
- After getting logged in, it posts 'None' as the first message. Need to remove it.
- Add some more scalability to the bot, ie instead of hardcoding the blog/user/passwd within the program, 
   should ask for it once and store it in the backend.
- Needs some mysql or postgresql backend to check for user registration..


Affiliated Project  
- http://sourceforge.net/projects/djangolive/
- http://code.google.com/p/indiaforcekernel/

Files included in this repository 
- README
- gtalkautoreplybot.py    
- send_sms_to_get_gmail.py  
- xmpp_to_facebook_sms_and_wordpress.py  
- xmpp_to_wordpress.py
- xmpp_to_posterous.py
- wp_post_class.py
- wp_script.py
Something went wrong with that request. Please try again.