Skip to content

need12648430/OmegaPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OmegaPy

OmegaPy is a small but complete (MIT licensed) Python interface to Omegle.

  • Supports Classic, Interests, and Spy mode.
  • Simple programmable behavior using event handlers.
  • 2 simple usage demos - a Chatbot and a Man in the Middle attack.

Simple usage example:

from Omegle import *

class SimpleGreeter(OmegleHandler):
    def on_connect(self):
        print "y > hi!"
        self.omegle.send("hi!")
    
    def on_message(self, message):
        print "s > " + message
    
    def on_disconnect(self):
        self.omegle.start_chat(OmegleChat.Classic)

greeter = SimpleGreeter()
omegle = OmegleChat(greeter)
omegle.start_chat(OmegleChat.Classic)

Spy mode:

from Omegle import *

class QuestionDisplay(OmegleHandler):
	def on_connect(self):
		print "connected"

	def on_question(self, question):
		print question

question_dis = QuestionDisplay()
omegle = OmegleChat(question_dis)
omegle.start_chat(OmegleChat.Spy)

Interests mode:

from Omegle import *

class InterestsDisplay(OmegleHandler):
	def on_connect(self):
		print "connected"
	
	# called when common interests were found
	def on_interests(self, interests):
		print "shared interests:"
		for i in interests:
			print "  " + i

interests_dis = InterestsDisplay()
omegle = OmegleChat(interests_dis)
omegle.add_interests(["omegle", "github", "python", "beer"])
omegle.start_chat(OmegleChat.Interests)

About

Python library for interacting with Omegle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages