[GH-ISSUE #12] {'ERROR': 'The provided url is malformed.'} #62

Closed
opened 2026-03-13 22:57:31 +03:00 by kerem · 5 comments
Owner

Originally created by @KathyGCY on GitHub (Mar 10, 2022).
Original GitHub issue: https://github.com/AliAkhtari78/SpotifyScraper/issues/12

The example doesn't work1
{'ERROR': 'The provided url is malformed.'}

Originally created by @KathyGCY on GitHub (Mar 10, 2022). Original GitHub issue: https://github.com/AliAkhtari78/SpotifyScraper/issues/12 The example doesn't work1 {'ERROR': 'The provided url is malformed.'}
kerem 2026-03-13 22:57:31 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@michaeldomanek commented on GitHub (Mar 27, 2022):

@KathyGCY
I wanted to try out get_track_url_info()
I added string = unquote(string) to _str_to_json and get_track_url_info() works now

    def _str_to_json(string: str) -> dict:
        string = unquote(string)
        json_acceptable_string = string.replace('\n', '').strip()
        converted_string = yaml.load(json_acceptable_string, Loader=yaml.FullLoader)
        return converted_string

I think every function is outdated and needs to be changed, but I guess the project will not be updated

<!-- gh-comment-id:1080029704 --> @michaeldomanek commented on GitHub (Mar 27, 2022): @KathyGCY I wanted to try out `get_track_url_info()` I added `string = unquote(string)` to `_str_to_json` and `get_track_url_info()` works now ```python def _str_to_json(string: str) -> dict: string = unquote(string) json_acceptable_string = string.replace('\n', '').strip() converted_string = yaml.load(json_acceptable_string, Loader=yaml.FullLoader) return converted_string ``` I think every function is outdated and needs to be changed, but I guess the project will not be updated
Author
Owner

@eliamazzon commented on GitHub (Mar 29, 2022):

The example doesn't work1 {'ERROR': 'The provided url is malformed.'}

Same here.

<!-- gh-comment-id:1082350753 --> @eliamazzon commented on GitHub (Mar 29, 2022): > The example doesn't work1 {'ERROR': 'The provided url is malformed.'} Same here.
Author
Owner

@eliamazzon commented on GitHub (Mar 29, 2022):

@KathyGCY I wanted to try out get_track_url_info() I added string = unquote(string) to _str_to_json and get_track_url_info() works now

    def _str_to_json(string: str) -> dict:
        string = unquote(string)
        json_acceptable_string = string.replace('\n', '').strip()
        converted_string = yaml.load(json_acceptable_string, Loader=yaml.FullLoader)
        return converted_string

I think every function is outdated and needs to be changed, but I guess the project will not be updated

Tried but didn't work for me.

<!-- gh-comment-id:1082359332 --> @eliamazzon commented on GitHub (Mar 29, 2022): > @KathyGCY I wanted to try out `get_track_url_info()` I added `string = unquote(string)` to `_str_to_json` and `get_track_url_info()` works now > > ```python > def _str_to_json(string: str) -> dict: > string = unquote(string) > json_acceptable_string = string.replace('\n', '').strip() > converted_string = yaml.load(json_acceptable_string, Loader=yaml.FullLoader) > return converted_string > ``` > > I think every function is outdated and needs to be changed, but I guess the project will not be updated Tried but didn't work for me.
Author
Owner

@michaeldomanek commented on GitHub (Apr 5, 2022):

I used from urllib.parse import unquote
I cloned the project and checked the example again and it works for me, maybe wrong import

But I think the offical spotify API offers everything this project offers so I think you should use it instead.

<!-- gh-comment-id:1089101245 --> @michaeldomanek commented on GitHub (Apr 5, 2022): I used `from urllib.parse import unquote` I cloned the project and checked the example again and it works for me, maybe wrong import But I think the [offical spotify API](https://developer.spotify.com/documentation/web-api/reference/#/operations/get-track) offers everything this project offers so I think you should use it instead.
Author
Owner

@github-actions[bot] commented on GitHub (May 24, 2025):

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

<!-- gh-comment-id:2906077248 --> @github-actions[bot] commented on GitHub (May 24, 2025): This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
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/SpotifyScraper#62
No description provided.