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

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)

 

tonghopkinhnghiem

Kỹ sư có nhiều năm trong nghề, được tiếp cận và học hỏi rất nhiều từ những bậc tiền bối đáng kính, nên cảm thấy phải có trách nhiệm chia sẻ lại với những người đi sau. Hy vọng đóng góp được những hiểu biết, kiến thức nhất định.