[PR #528] [MERGED] Allow for total headless mode by instructing the user to open the URL in a browser. #928

Closed
opened 2026-02-28 00:02:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/528
Author: @foobuzz
Created: 7/6/2020
Status: Merged
Merged: 7/8/2020
Merged by: @stephanebruckert

Base: masterHead: headless-oauth


📝 Commits (5)

  • 1bcb590 Allow for total headless mode by instructing the user to open the URL in a browser.
  • 5cd4931 Fix line too long
  • dc93093 Update changelog
  • 1bea9b6 Clarify changelog entry
  • 33e0c14 Remove reduntant log about pasting the URL.

📊 Changes

2 files changed (+20 additions, -8 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 spotipy/oauth2.py (+18 -8)

📄 Description

This adds a new option open_browser in get_auth_response which, if False, will simply print the authorization URL and ask the user to visit it and paste the URL is has been redirected to (existing interactive way to get the authorization code). This allows the setup of Spotipy on a remote machine (e.g. Raspberry Pi or VPS) in a fully headless way.

open_browser defaults to True for backward compatibility.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/528 **Author:** [@foobuzz](https://github.com/foobuzz) **Created:** 7/6/2020 **Status:** ✅ Merged **Merged:** 7/8/2020 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `headless-oauth` --- ### 📝 Commits (5) - [`1bcb590`](https://github.com/spotipy-dev/spotipy/commit/1bcb5905bb85e2ebd2400999ec62d8f635532e1e) Allow for total headless mode by instructing the user to open the URL in a browser. - [`5cd4931`](https://github.com/spotipy-dev/spotipy/commit/5cd49310e0ae7db9ab4e7b1978ad9025126e6095) Fix line too long - [`dc93093`](https://github.com/spotipy-dev/spotipy/commit/dc930939992dea469c5c4ad3de3fdfb6b446c507) Update changelog - [`1bea9b6`](https://github.com/spotipy-dev/spotipy/commit/1bea9b668f48f1643722b8c0aafd1d6d1a825d5a) Clarify changelog entry - [`33e0c14`](https://github.com/spotipy-dev/spotipy/commit/33e0c14e9715a4c9b0a6c440bca6278bd4d04184) Remove reduntant log about pasting the URL. ### 📊 Changes **2 files changed** (+20 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `spotipy/oauth2.py` (+18 -8) </details> ### 📄 Description This adds a new option `open_browser` in `get_auth_response` which, if False, will simply print the authorization URL and ask the user to visit it and paste the URL is has been redirected to (existing interactive way to get the authorization code). This allows the setup of Spotipy on a remote machine (e.g. Raspberry Pi or VPS) in a fully headless way. `open_browser` defaults to True for backward compatibility. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:02:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#928
No description provided.