如何在新选项卡中打开或弹出 Spotify 身份验证 window
How to get Spotify authentication open in new tab or pop up window
我需要我的 url 中的信息,但是当我需要验证 spotify 时,它会在应用程序运行的同一个选项卡中打开它,有没有办法更改它在哪个选项卡中打开?
import webbrowser
webbrowser.open(url, new=2)
来自docs:
Display url using the default browser. If new is 0, the url is opened in the same browser window if possible. If new is 1, a new browser window is opened if possible. If new is 2, a new browser page (“tab”) is opened if possible. If autoraise is True, the window is raised if possible (note that under many window managers this will occur regardless of the setting of this variable).
ps。 webbrowser
是一个 python 图书馆
我需要我的 url 中的信息,但是当我需要验证 spotify 时,它会在应用程序运行的同一个选项卡中打开它,有没有办法更改它在哪个选项卡中打开?
import webbrowser
webbrowser.open(url, new=2)
来自docs:
Display url using the default browser. If new is 0, the url is opened in the same browser window if possible. If new is 1, a new browser window is opened if possible. If new is 2, a new browser page (“tab”) is opened if possible. If autoraise is True, the window is raised if possible (note that under many window managers this will occur regardless of the setting of this variable).
ps。 webbrowser
是一个 python 图书馆