Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

issue when i try to open specific Chromium profile with seleniumbase #3347

iMADzero0 started this conversation in General
Discussion options

hi, sorry for the dumb question, but when i try to open specific Chromium profile with seleniumbase doesn't work for me.
this is my simple code:

from seleniumbase import SB
import time
import os
def open():
 Profile_Path = fr"C:\Users\{os.getlogin()}\profiles\ConnectBoite\Profile12" # C:\Users\{os.getlogin()}\AppData\Local\Chromium\User Data\Profile 12
 Bnry_Path = fr"C:\Users\{os.getlogin()}\browser\chrome.exe"
 with SB(user_data_dir=Profile_Path,binary_location=Bnry_Path) as sb:
 url = "https://pixelscan.net"
 sb.open(url)
 sb.sleep(5*60)
if __name__ == '__main__':
 open()

i used regular path and custom path for my profile location and i remove space in the custom path but doesn't work, i'm found 'default 'added to the path.
can someone help me please and thank u

Screenshot 2024年12月17日 210434

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Duplicate of #2596 (comment) / #2432 (comment) / #2331 (comment).

If you need multiple profiles, set a different user_data_dir for each one that you want. Only the Default profile is supported.

If you're setting the user_data_dir while using UC Mode, then make sure you read #2118 (comment) first. (Don't mix a regular user_data_dir with one that is used by UC Mode Chrome, as the two formats are not compatible.)

You must be logged in to vote
1 reply
Comment options

understood, thank you sir for your time & help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /