Hello guys, I am new here, and I couldnt find the right category to post(ask for help) about a python script I found on github.
It would help me alot in a game its called onlinesoccermanager (not posting links)
Script is this:
Origian file is here(not posting links again):
github/karpug/OnlineSoccerManager
If someone can fix and make it works somehow would save me alot of pain(time xD)
Thanks in advance
It would help me alot in a game its called onlinesoccermanager (not posting links)
Script is this:
Code:
from selenium import webdriver
from selenium.webdriver.firefox.service import Service as FirefoxService
from webdriver_manager.firefox import GeckoDriverManager
import time
service = FirefoxService(executable_path=GeckoDriverManager().install())
driver = webdriver.Firefox(service=service)
def login(user,password):
driver.get('https://en.onlinesoccermanager.com/Dashboard')
time.sleep(10)
driver.find_element("xpath",'/html/body/div[2]/div[2]/div/div/div[2]/div[3]/div/button').click()
time.sleep(5)
driver.find_element("xpath",'/html/body/div[2]/div[1]/div[3]/div[4]/div[2]/button').click()
time.sleep(5)
driver.find_element("xpath",'//*[@id="manager-name"]').send_keys(user)
driver.find_element("xpath",'//*[@id="password"]').send_keys(password)
driver.find_element("xpath",'//*[@id="login"]').click()
time.sleep(15)
def getBusinessTokens():
driver.get('https://en.onlinesoccermanager.com/BusinessClub')
time.sleep(20)
for j in range (3):
driver.find_element("xpath",'/html/body/div[3]/div[4]/div/div/div[2]/div[2]/div/div[1]/div/div/div/div[2]').click()
time.sleep(70)
user=input('Online Soccer Manager User: ')
password=input('Online Soccer Manager Password: ')
login(user,password)Origian file is here(not posting links again):
github/karpug/OnlineSoccerManager
If someone can fix and make it works somehow would save me alot of pain(time xD)
Thanks in advance