Python Forum

Full Version: [split] Catch all cookies from any website
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i am Unable to use chrome profile session using selenium webdriver on render deployment in my local machine its properly working for my chrome path but in render or any other cloud service which path i need to define because i used local chrome path in my local machine but render don't have direct access to my computer files right? , this is my code please tell me how to manage chrome sessions-

 CHROME_PROFILE_PATH = "C:/Users/DEEPSAHA/AppData/Local/Google/Chrome/UserData/Default" 

        chrome_options = webdriver.ChromeOptions()
        chrome_options.add_argument(f"user-data-dir={CHROME_PROFILE_PATH}")
        chrome_options.add_argument("--headless")
        chrome_options.add_argument("--disable-gpu")
        chrome_options.add_argument("--no-sandbox")
        chrome_options.add_argument("--disable-dev-shm-usage")

with webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) as driver: