mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Nyoba selenium
This commit is contained in:
parent
faa63ab324
commit
5e71386823
1 changed files with 2 additions and 2 deletions
|
|
@ -14,12 +14,12 @@ LOGGER = getLogger(__name__)
|
|||
@capture_err
|
||||
async def pahe(_, msg):
|
||||
# chromedriver_autoinstaller.install()
|
||||
os.chmod("/MissKaty/chromedriver", 755)
|
||||
os.chmod("chromedriver", 755)
|
||||
chrome_options = webdriver.ChromeOptions()
|
||||
chrome_options.binary_location = "/usr/bin/google-chrome"
|
||||
chrome_options.add_argument("--headless")
|
||||
chrome_options.add_argument("--no-sandbox")
|
||||
chrome_options.add_argument("--disable-dev-shm-usage")
|
||||
wd = webdriver.Chrome("/MissKaty/chromedriver", chrome_options=chrome_options)
|
||||
wd = webdriver.Chrome("chromedriver", chrome_options=chrome_options)
|
||||
wd.get("https://pahe.li/")
|
||||
LOGGER.info(wd.page_source)
|
||||
|
|
|
|||
Loading…
Reference in a new issue