<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - Keef</title>
<link>http://snipplr.com/users/Keef/tags/omegle</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 14:33:53 GMT</pubDate>
<item>
<title>(Python) Omegle class</title>
<link>http://snipplr.com/view/27621/omegle-class/</link>
<description><![CDATA[ <p>This is one of my first python programs so it's probably written very poorly...

Example use:

	print 'Connecting to omegle...'
	om = omegle()
	
	if om.chatid:
		print 'Chatid: '+ om.chatid
	else:
		if om.error:
			print om.error
		else:
			print 'No chatid given, we\'re possibly blocked.'
	
	# Wait for our connection
	while (not om.connected):
		om.getevents()
		sleep(0.5)
		
	# Connected; Drop a message
	om.send('HAI, ASL!? LOLO')
	
	# Main loop, check for responses
	while (om.connected):
		om.getevents()
		
		if not om.error:
			if om.message:
				print 'Stranger: ' + om.message
		else:
			print om.error
		
		sleep(0.5)
	else:
		print 'Disconnecting...'
	del om</p> ]]></description>
<pubDate>Wed, 03 Feb 2010 09:36:15 GMT</pubDate>
<guid>http://snipplr.com/view/27621/omegle-class/</guid>
</item>
</channel>
</rss>