[GH-ISSUE #339] How can I work with/extract the data i need from a SearchResult? #106

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

Originally created by @ultrex22 on GitHub (Jul 21, 2022).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/339

After searching for a Track, and getting a SearchResult back, I cannot find any info online on how to work with the returned data. I cannot index into it, or use dot notation. I'm unsure what the point is if I cannot work with the data. I'm sure I'm missing something, but after 2 days of looking, I'm about o move on. So I thought I would send a request for further info. Any help you can give at all is appreciated. Thanks for your time!

Originally created by @ultrex22 on GitHub (Jul 21, 2022). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/339 After searching for a Track, and getting a SearchResult back, I cannot find any info online on how to work with the returned data. I cannot index into it, or use dot notation. I'm unsure what the point is if I cannot work with the data. I'm sure I'm missing something, but after 2 days of looking, I'm about o move on. So I thought I would send a request for further info. Any help you can give at all is appreciated. Thanks for your time!
kerem 2026-02-27 20:23:09 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@marioortizmanero commented on GitHub (Jul 21, 2022):

What are you having problems with? There are multiple kinds of results you may obtain (tracks, albums, etc). If you only want tracks, then match against the Tracks variant. Then, you can find them in the items page in the Page type.

@ramsayleung, should we enable the GitHub discussions feature for this repo? I feel like these questions would fit best in there. I think that only you can enable that, as the creator of the repo.

<!-- gh-comment-id:1191371440 --> @marioortizmanero commented on GitHub (Jul 21, 2022): What are you having problems with? There are multiple kinds of results you may obtain (tracks, albums, etc). If you only want tracks, then match against the `Tracks` variant. Then, you can find them in the `items` page in the `Page` type. @ramsayleung, should we enable the GitHub discussions feature for this repo? I feel like these questions would fit best in there. I think that only you can enable that, as the creator of the repo.
Author
Owner

@ultrex22 commented on GitHub (Jul 21, 2022):

Thank you for the quick reply! I needed to get the URI for a list of songs to create a playlist. I couldn't figure out how to access the data, but I tried the match and of course, that is what I needed/ was missing. I'm new to programming, with about 1.25 years of learning Python, and about 6mo. or rust. Thank you for the help! I have been converting some of my Python programs to Rust for practice. I have been learning a lot and getting more confidence. Thanks again!

<!-- gh-comment-id:1192004922 --> @ultrex22 commented on GitHub (Jul 21, 2022): Thank you for the quick reply! I needed to get the URI for a list of songs to create a playlist. I couldn't figure out how to access the data, but I tried the match and of course, that is what I needed/ was missing. I'm new to programming, with about 1.25 years of learning Python, and about 6mo. or rust. Thank you for the help! I have been converting some of my Python programs to Rust for practice. I have been learning a lot and getting more confidence. Thanks again!
Author
Owner

@marioortizmanero commented on GitHub (Jul 21, 2022):

No worries. Best of luck in your journey!

I feel like this library is really popular for new users because it's practical and straightforward. So any feedback you may think of will be useful to us as well, so that everyone in your situation has it easier in the future.

<!-- gh-comment-id:1192007473 --> @marioortizmanero commented on GitHub (Jul 21, 2022): No worries. Best of luck in your journey! I feel like this library is really popular for new users because it's practical and straightforward. So any feedback you may think of will be useful to us as well, so that everyone in your situation has it easier in the future.
Author
Owner

@ramsayleung commented on GitHub (Jul 22, 2022):

@ramsayleung, should we enable the GitHub discussions feature for this repo? I feel like these questions would fit best in there. I think that only you can enable that, as the creator of the repo.

I have enabled the discussion feature for RSpotify: https://github.com/ramsayleung/rspotify/discussions/340, you could start our first discussion :)

<!-- gh-comment-id:1192224204 --> @ramsayleung commented on GitHub (Jul 22, 2022): > @ramsayleung, should we enable the GitHub discussions feature for this repo? I feel like these questions would fit best in there. I think that only you can enable that, as the creator of the repo. I have enabled the discussion feature for `RSpotify`: https://github.com/ramsayleung/rspotify/discussions/340, you could start our first discussion :)
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/rspotify#106
No description provided.