mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #721] Spotipy | Can't see the url needed for token #435
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#435
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Eyfelix on GitHub (Aug 30, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/721
I want to make my python script run 24/7 in a serveur cause it scrap Spotify info.
I created a serveur, put my python script on it, I can run it using Putty but it cant show me the url or redirect me to the url for the token (see screenshot ).
My project work fine on my computer and I've made a simplify version.
I've also an error about missing cache file but it dont seem important.
What I get when I run my script.
When I press q.
Here, they ask me for the url that I don't have.
When I enter a wrong url or nothing
My code simplifed
Thanks for your help
(ps : it's the first time I post on github)
@Peter-Schorn commented on GitHub (Aug 30, 2021):
Never publicly share your client secret. Go to the Spotify dashboard and change it immediately. Also, please don't post screenshots of your code; post it as text.
@stephanebruckert commented on GitHub (Aug 30, 2021):
Usually above "Enter the URL..." there should be a link that you can copy from the program output to a browser on a different machine. Here I can't see anything and something tells me that your environment is only displaying the last line. Can you try and see if there are other logs that you didn't copy here?
@stephanebruckert commented on GitHub (Aug 30, 2021):
Ha I think I know, since you are in a headless browser (no UI), you need to set
open_browser=False, as in this example:github.com/plamere/spotipy@87fe473672/examples/headless.py (L6)This is explained here in the FAQ https://github.com/plamere/spotipy/blob/master/FAQ.md#how-do-i-obtain-authorization-in-a-headlessbrowserless-environment