Welcome folks today in this post we will be building a omegle
bot which will increase your website traffic fast in python using selenium
. All the full source code of the application will be given below.
Get Started
In order to get started you need to install the following library using the pip
command as shown below
pip install selenium
And also you need to download the chrome
driver for your particular browser version from here
After installing this library make an app.py
file and copy paste the following code
app.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from selenium import webdriver from time import sleep while True: driver = webdriver.Chrome()#provide the local download location of chrome driver for my case it is in downloads driver.get('https://www.omegle.com/') driver.maximize_window() sleep(2) loginbtn = driver.find_element_by_xpath("/html/body/div[3]/table/tbody/tr[2]/td[1]/div/div/div[1]/input") loginbtn.send_keys('youtube')#Type your common intrest here cli=driver.find_element_by_xpath("/html/body/div[3]/table/tbody/tr[2]/td[2]/img") cli.click() sleep(2) lol=driver.find_element_by_xpath("/html/body/div[5]/div/div/div[2]/table/tbody/tr/td[2]/div/textarea") lol.send_keys('Want to learn coding for free? Then check this out https://codingshiksha.com')#Type your text that you want to spam sleep(2) zaz=driver.find_element_by_xpath("/html/body/div[5]/div/div/div[2]/table/tbody/tr/td[3]/div/button") zaz.click() sleep(3) driver.close() |
In this python omegle
bot you can make slight modifications for example
You can change the interest to something else instead of youtube
And also you can change the text
and website url
inside the message that needs to be sent to strangers
at omegle.
After doing the modifications run this python
script by typing the below command
python app.py