Skip to content

Commit

Permalink
Troubleshooting aid for headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin-St authored Nov 23, 2024
1 parent db3fb9a commit aa2c5b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/headless.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from spotipy.oauth2 import SpotifyOAuth

# set open_browser=False to prevent Spotipy from attempting to open the default browser
# Note that some browsers might hide the URL redirected to, if this happens test another browser
spotify = spotipy.Spotify(auth_manager=SpotifyOAuth(open_browser=False))

print(spotify.me())

0 comments on commit aa2c5b4

Please sign in to comment.