Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
389 views1 page

Quotex Bot - Py

The document outlines a Python script for a bot named QuotexSnifferBot that automates the login and data retrieval process from the Quotex trading platform using Selenium. It includes configuration for Chrome options to prevent detection and allows for manual login. The bot fetches the leaderboard after a specified wait time and is designed to be extended with additional scraping logic and live trading functionalities.

Uploaded by

nogopom237
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
389 views1 page

Quotex Bot - Py

The document outlines a Python script for a bot named QuotexSnifferBot that automates the login and data retrieval process from the Quotex trading platform using Selenium. It includes configuration for Chrome options to prevent detection and allows for manual login. The bot fetches the leaderboard after a specified wait time and is designed to be extended with additional scraping logic and live trading functionalities.

Uploaded by

nogopom237
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

from selenium import webdriver

from selenium.webdriver.chrome.service import Service


from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
import time
import os

class QuotexSnifferBot:
def __init__(self):
# Chrome options
chrome_options = Options()

# Add your Chrome profile path (escape backslashes)


chrome_options.add_argument(r"user-data-dir=C:\Users\YourName\AppData\
Local\Google\Chrome\User Data")
chrome_options.add_argument("profile-directory=Default")

# Enable automation extension to avoid detection


chrome_options.add_experimental_option("excludeSwitches", ["enable-
automation"])
chrome_options.add_experimental_option('useAutomationExtension', False)

# Initialize driver
self.driver = webdriver.Chrome(
service=Service(ChromeDriverManager().install()),
options=chrome_options
)
self.driver.maximize_window()

def run(self):
try:
print("Launching Quotex...")
self.driver.get("https://qxbroker.com/en/sign-in")

# Wait for manual login (remove after first run)


print("Please login manually if needed... (you can remove this in
config)")
time.sleep(30) # Give time to login

print("Fetching leaderboard...")
self.driver.get("https://qxbroker.com/en/leaderboard")
time.sleep(5)

# Add your scraping logic here


# Example: top_traders = self.scrape_top_traders()

print("Opening live trading...")


# Add live trading page navigation

except Exception as e:
print(f"Error occurred: {str(e)}")
finally:
print("Press Enter to exit...")
input()
self.driver.quit()

if __name__ == "__main__":
bot = QuotexSnifferBot()
bot.run()

You might also like