translate these 2 classes from java to python
note the timegate class is a bit different than the one you've already translated
package LG_Core;
import java.util.Calendar;
import java.util.Date;
public class TimeGate {
// a gate that only opens x minutes after it has been set
private...
Permission DPermitter and Personality
''' PERMISSION CLASS '''
class Permission:
'''
* uses two names as lv1,2 permission levels
* requires password to change password or said names
'''
singleton: Permission = None
def __init__(self, password: str, lv1Name: str...
selenium forum miner
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
s = Service('C:\chrome driver\chromedriver.exe')
driver = webdriver.Chrome(service=s)...
.send_keys('') and .click() methodes on an element example
in this code the bot logs in then makes a post
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
s = Service('C:\chrome driver\chromedriver.exe')
driver =...
Selenium : automating the browser
https://chromedriver.chromium.org/downloads
see which version you need :
chrome browser, help, about
put the drive inside some folder and copy the location link of the file you extracted
in pycharm :
from selenium import webdriver
chrome_driver_path: str =...
translate from java to python
package LG_Core;
public class Permission {
/*
* uses two names as lv1,2 permission levels
* requires password to change password or said names
*/
private static Permission singleton;
private String password, lv1Name, lv2Name;
private...