{"id":28750524,"url":"https://github.com/agermanidis/gym-omegle","last_synced_at":"2026-02-13T00:02:17.774Z","repository":{"id":141074005,"uuid":"80067807","full_name":"agermanidis/gym-omegle","owner":"agermanidis","description":"OpenAI Gym Environment for Omegle","archived":false,"fork":false,"pushed_at":"2017-02-14T05:06:54.000Z","size":2,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T18:40:20.250Z","etag":null,"topics":["openai-gym"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agermanidis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-25T23:18:55.000Z","updated_at":"2021-10-01T17:39:05.000Z","dependencies_parsed_at":"2023-07-06T10:46:33.246Z","dependency_job_id":null,"html_url":"https://github.com/agermanidis/gym-omegle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/agermanidis/gym-omegle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agermanidis%2Fgym-omegle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agermanidis%2Fgym-omegle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agermanidis%2Fgym-omegle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agermanidis%2Fgym-omegle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agermanidis","download_url":"https://codeload.github.com/agermanidis/gym-omegle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agermanidis%2Fgym-omegle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29387697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T22:07:52.078Z","status":"ssl_error","status_checked_at":"2026-02-12T22:07:49.026Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openai-gym"],"created_at":"2025-06-16T21:39:29.071Z","updated_at":"2026-02-13T00:02:17.755Z","avatar_url":"https://github.com/agermanidis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![gym-omegle](http://i.imgur.com/XQOIR1B.gif)\n\n# gym-omegle: An OpenAI Gym environment for Omegle\n\nDefines an [OpenAI Gym](https://gym.openai.com/) environment (`omegle-v0`) for training agents to chat with strangers on Omegle. \n\nUses Selenium with Chrome to perform the actions on the Omegle website.\n\n### Environment\n\n__Observation space__: last message received by the stranger; each word is encoded using the [GloVe](http://nlp.stanford.edu/projects/glove/) algorithm trained on the Common Crawl corpus.\n\n__Action space__: 98 actions in total; 95 actions for each of the [printable ASCII characters](http://www.ascii-code.com/), plus the following 3 actions:\n\n1. send current message\n\n2. clear current message\n\n3. wait for 1 second\n\n__Reward__: 1 if the stranger has written a new message; 0 otherwise. \n\n### Installation\n\n```\n$ pip install .\n```\n\n### Usage\n\n```python\nimport gym\nimport gym_omegle\n\nclass RandomAgent(object):\n    \"\"\"The world's simplest agent!\"\"\"\n    def __init__(self, action_space):\n        self.action_space = action_space\n\n    def act(self, observation, reward, done):\n        return self.action_space.sample()\n\nenv = gym.make(\"omegle-v0\")\nagent = RandomAgent(env.action_space)\n\nreward = 0\ndone = False\nepisode_count = 3\n\nfor i in range(episode_count):\n    ob = env.reset()\n    while True:\n        action = agent.act(ob, reward, done)\n        ob, reward, done, _ = env.step(action)\n        if done:\n            break\n\nenv.close()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagermanidis%2Fgym-omegle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagermanidis%2Fgym-omegle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagermanidis%2Fgym-omegle/lists"}