mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
* Fix plamere/spotipy#560
* Adhere to code style
* Update CHANGELOG.md for changes in 939f869bbc
* open_browser passed to get_auth_response should take precedence over the same argument in the constructor
* Update FAQ
* Add information about headless auth
* Add headless auth example
8 lines
238 B
Python
8 lines
238 B
Python
import spotipy
|
|
|
|
from spotipy.oauth2 import SpotifyOAuth
|
|
|
|
# set open_browser=False to prevent Spotipy from attempting to open the default browser
|
|
spotify = spotipy.Spotify(auth_manager=SpotifyOAuth(open_browser=False))
|
|
|
|
print(spotify.me()) |