Code Monkey home page Code Monkey logo

pyomegle's People

Contributors

beeblebroxian avatar danny-burrows avatar elias94 avatar eliascotto avatar hafizur046 avatar ikoide avatar onsagere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pyomegle's Issues

Error on python 2.7

I get the following error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/pyomegle/pyomegle.py", line 32, in run
    self.instance.client_id = data['clientID']
KeyError: 'clientID'

Is this problem related to the api?

Unhandled event: ['error', 'Please reload Omegle to continue.']

When starting the script i get this error, never got this error before. always worked today it started this error.

Unhandled event: ['error', 'Please reload Omegle to continue.']

I heard it was due to Omegles update today about clicking the ToS. I am not very good at coding python yet and would like help if possible thanks!

Unhandled event: [u'error', u'You are temporarily banned.']

I keep getting an error Unhandled event: [u'error', u'You are temporarily banned.']
Although I don't believe I am actually banned, I can acceess omegle through my browser and there are no issues.

from pyomegle import OmegleClient
from pyomegle import OmegleHandler
import time

h = OmegleHandler(loop=True)
c = OmegleClient(h, wpm=47, lang="en")
c.start()

input_str = "message"

while 1:
    time.sleep(5)
    c.send(input_str)
    c.next()

wait for connection

I've used pyomegle to make a bot of sorts. However I've had an issue with the bot sending messages immediately, while it's still connecting. This leads to people not seeing every message. I've used time.sleep() as a temporary solution but it's really hacky. How do I check that a stranger before sending messages?

EDIT: I think I found a lead with h.connected(), but the output is "Request disallowed by robots.txt"

"def captcha_required():" needs major rewrite

Hello,

I was trying out your library on my Linux Mint 18.1 computer, however the recaptchas do not work, as the "def captcha_required():" function has assignments that conflict with each other, and so I am getting a lot of "variable referenced before assignment" errors. Please fix!!!

Regards,
Matthew

Tags

How do you connect according to tags?

'RECAPTCHA_CHALLENGE_URL' is not defined when a CAPTCHA is detected

I copied and pasted the setup code in the readme and started running, I knew I would face a captcha as I normally do however I received an error. Is this because the reCaptcha has changed slightly???

Traceback (most recent call last):
  File "/Users/harryday/.pyenv/versions/3.9.0/lib/python3.9/threading.py", line 950, in _bootstrap_inner
    self.run()
  File "/Users/harryday/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pyomegle/pyomegle.py", line 33, in run
    self.instance._handle_events(data['events'])
  File "/Users/harryday/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pyomegle/pyomegle.py", line 98, in _handle_events
    self._event_selector(event)
  File "/Users/harryday/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pyomegle/pyomegle.py", line 126, in _event_selector
    self.events_handler.captcha_required()
  File "/Users/harryday/.pyenv/versions/3.9.0/lib/python3.9/site-packages/pyomegle/pyomegle.py", line 291, in captcha_required
    url = RECAPTCHA_CHALLENGE_URL % challenge
NameError: name 'RECAPTCHA_CHALLENGE_URL' is not defined

Getting Banned error

Whenever I try the sample code it throws this error in the console.
just after omegle.start()
Unhandled event: [u'error', u'You are temporarily banned.']

What does this code do?

`while 1:
while True:
input_str = raw_input('') # string input

if input_str.strip() == '/next':
    c.next()                        # new conversation
elif input_str.strip() == '/exit':
    c.disconnect()                  # disconnect chat session
    break
else:
    c.send(input_str)        `

I know there's comments, and I know I'm retarded. But what does it do exactly? Where do you put /next and /exit? Input for the bot or for you? What's the difference between c.send() and omegle.send()?

Unhandled event: ['antinudeBanned', 'http://wawadmin.omegle.com/redir/x']

why am I keep getting this error, is there any workaround to bypass the ban? This is my code

from pyomegle import OmegleClient, OmegleHandler
from time import sleep as s

h = OmegleHandler(loop=True)
c = OmegleClient(h,wpm=450,lang='en')
c.start()

msg = "Hi"


while True:
    sleep(3)
    c.send(msg)
    c.next()

Issue with ClientID in example code

This happens when i try to run the example code in the README.md

Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Users\[user]\AppData\Local\Programs\Python\Python38-32\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Users\[user]\Downloads\omeglebot\pyomegle\pyomegle.py", line 31, in run
    self.instance.client_id = data['clientID']
KeyError: 'clientID'

Edit: Fixed. You can't use VPN's or proxy's while using Pyomegle.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.