mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #187] How can I get all the user-top-read in python? #96
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#96
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 @fekiee on GitHub (Apr 24, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/187
I need to write an application that get authorisation from users and after that and retrieves all user-top-read data in order to save it to a data-base thats the bit I need for my college project, any input would be massively appreciate it
@danielgondim commented on GitHub (May 9, 2017):
Hi @fekiee ,
take a look at https://spotipy.readthedocs.io/en/latest/#authorization-code-flow
The only thing you need to update is the scope variable. Instead of 'user-library-read' it should be 'user-top-read'.
@fekiee commented on GitHub (May 9, 2017):
Thanks for answering Daniel I already did and it works would you guide me how to get into users accounts after they authorise it without setting Credentials as environment variables ?
Regards,
JIN.
From: Daniel Gondim notifications@github.com
Sent: 09 May 2017 15:19
To: plamere/spotipy
Cc: Jin; Mention
Subject: Re: [plamere/spotipy] How can I get all the user-top-read in python? (#187)
Hi @fekieehttps://github.com/fekiee ,
take a look at https://spotipy.readthedocs.io/en/latest/#authorization-code-flow
The only thing you need to update is the scope variable. Instead of 'user-library-read' it should be 'user-top-read'.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/plamere/spotipy/issues/187#issuecomment-300179609, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOIBPktgDj8dlppcO0BRyRYNadoIMTVJks5r4HXXgaJpZM4NGqjy.
@danielgondim commented on GitHub (May 9, 2017):
Hi JIN,
I dont know if I understood your doubt. You are asking how you can pass
your app credentials directly into the method as arguments?
If so, you just need this:
token = util.prompt_for_user_token(username, scope, client_id,
client_secret, redirect_uri)
client_id, client_secret and redirect_uri are all information from your
Spotify Application (
https://developer.spotify.com/my-applications/#!/applications).
Regards,
Daniel Gondim
On Tue, May 9, 2017 at 11:49 AM, Jin notifications@github.com wrote:
--
"Reflect on your blessings, of which every person has many, not on your
past misfortunes, of which all people have some."
--
Daniel Gondim Ernesto de Mélo
Bacharel e Mestre em Ciência da Computação - UFCG
Doutorando em Ciência da Computação - Laboratório de Sistemas Distribuídos
@fekiee commented on GitHub (May 9, 2017):
I basically want to be able to access anyone authorised data, To explain better what I am working on:
I want to be able to access users top artists to compare musical preferences so if I know what two users like I can then compare them to create potential matches based on their musical preferences to do so I need that once people login on y website they authorise my app to access their data hope I explained a bit better this time.
Regards,
JIN.
From: Daniel Gondim notifications@github.com
Sent: 09 May 2017 16:43
To: plamere/spotipy
Cc: Jin; Mention
Subject: Re: [plamere/spotipy] How can I get all the user-top-read in python? (#187)
Hi JIN,
I dont know if I understood your doubt. You are asking how you can pass
your app credentials directly into the method as arguments?
If so, you just need this:
token = util.prompt_for_user_token(username, scope, client_id,
client_secret, redirect_uri)
client_id, client_secret and redirect_uri are all information from your
Spotify Application (
https://developer.spotify.com/my-applications/#!/applications).
Regards,
Daniel Gondim
On Tue, May 9, 2017 at 11:49 AM, Jin notifications@github.com wrote:
--
"Reflect on your blessings, of which every person has many, not on your
past misfortunes, of which all people have some."
--
Daniel Gondim Ernesto de Mélo
Bacharel e Mestre em Ciência da Computação - UFCG
Doutorando em Ciência da Computação - Laboratório de Sistemas Distribuídos
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/plamere/spotipy/issues/187#issuecomment-300206142, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AOIBPs0HACEyF03bmqfk54x7vKg71_JEks5r4ImjgaJpZM4NGqjy.
@stephanebruckert commented on GitHub (Jan 12, 2020):
Closing as it's unclear what the specific issue is