[GH-ISSUE #187] How can I get all the user-top-read in python? #96

Closed
opened 2026-02-27 23:20:48 +03:00 by kerem · 5 comments
Owner

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

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
kerem closed this issue 2026-02-27 23:20:48 +03:00
Author
Owner

@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'.

<!-- gh-comment-id:300179609 --> @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'.
Author
Owner

@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.

<!-- gh-comment-id:300189246 --> @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 @fekiee<https://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 GitHub<https://github.com/plamere/spotipy/issues/187#issuecomment-300179609>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AOIBPktgDj8dlppcO0BRyRYNadoIMTVJks5r4HXXgaJpZM4NGqjy>.
Author
Owner

@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:

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 GitHub<https://github.com/
plamere/spotipy/issues/187#issuecomment-300179609>, or mute the thread<
https://github.com/notifications/unsubscribe-auth/
AOIBPktgDj8dlppcO0BRyRYNadoIMTVJks5r4HXXgaJpZM4NGqjy>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/plamere/spotipy/issues/187#issuecomment-300189246,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFmUUhdria5qSUOboDWg2OLOOrg9oVKrks5r4H0GgaJpZM4NGqjy
.

--
"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

  • UFCG
<!-- gh-comment-id:300206142 --> @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: > 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 @fekiee<https://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 GitHub<https://github.com/ > plamere/spotipy/issues/187#issuecomment-300179609>, or mute the thread< > https://github.com/notifications/unsubscribe-auth/ > AOIBPktgDj8dlppcO0BRyRYNadoIMTVJks5r4HXXgaJpZM4NGqjy>. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/plamere/spotipy/issues/187#issuecomment-300189246>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AFmUUhdria5qSUOboDWg2OLOOrg9oVKrks5r4H0GgaJpZM4NGqjy> > . > -- "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 - UFCG
Author
Owner

@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:

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 GitHub<https://github.com/
plamere/spotipy/issues/187#issuecomment-300179609>, or mute the thread<
https://github.com/notifications/unsubscribe-auth/
AOIBPktgDj8dlppcO0BRyRYNadoIMTVJks5r4HXXgaJpZM4NGqjy>.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/plamere/spotipy/issues/187#issuecomment-300189246,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFmUUhdria5qSUOboDWg2OLOOrg9oVKrks5r4H0GgaJpZM4NGqjy
.

--
"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

  • UFCG


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.

<!-- gh-comment-id:300212740 --> @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: > 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 @fekiee<https://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 GitHub<https://github.com/ > plamere/spotipy/issues/187#issuecomment-300179609>, or mute the thread< > https://github.com/notifications/unsubscribe-auth/ > AOIBPktgDj8dlppcO0BRyRYNadoIMTVJks5r4HXXgaJpZM4NGqjy>. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <https://github.com/plamere/spotipy/issues/187#issuecomment-300189246>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AFmUUhdria5qSUOboDWg2OLOOrg9oVKrks5r4H0GgaJpZM4NGqjy> > . > -- "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 - UFCG — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<https://github.com/plamere/spotipy/issues/187#issuecomment-300206142>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AOIBPs0HACEyF03bmqfk54x7vKg71_JEks5r4ImjgaJpZM4NGqjy>.
Author
Owner

@stephanebruckert commented on GitHub (Jan 12, 2020):

Closing as it's unclear what the specific issue is

<!-- gh-comment-id:573409223 --> @stephanebruckert commented on GitHub (Jan 12, 2020): Closing as it's unclear what the specific issue is
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#96
No description provided.