Python code mở một trình duyệt bất kỳ theo profile

Python code mở một trình duyệt bất kỳ theo profile

import webbrowser
profile = “Profile 3″
url = ‘ ‘
chrome_path = ‘C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe –profile-directory=”{}” %s’.format(profile)
webbrowser.get(chrome_path).open(url)

profile = “Profile 4″
url = ”
chrome_path = ‘C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe –profile-directory=”{}” %s’.format(profile)
webbrowser.get(chrome_path).open(url)

 

Facebook Comments