From 3e0e0c2260d559bd349acd391f71d740e64a5350 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 10 Feb 2024 18:55:05 +0100 Subject: [PATCH] test login fetlife with selenium --- test_scrap_fl.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test_scrap_fl.py diff --git a/test_scrap_fl.py b/test_scrap_fl.py new file mode 100644 index 0000000..ea0d28c --- /dev/null +++ b/test_scrap_fl.py @@ -0,0 +1,11 @@ +from selenium import webdriver #Webdriver de Selenium qui permet de contrĂ´ler un navigateur +from webdriver_manager.chrome import ChromeDriverManager #Assure la gestion du webdriver de Chrome +from selenium.webdriver.chrome.options import Options + +chrome_options = Options() +#chrome_options.add_argument("--headless=new") # for Chrome >= 109 + +browser = webdriver.Chrome() #Initialisation du driver +browser.get("https://fetlife.com/login") +print(browser.page_source.encode("utf-8")) +browser.quit()