Skip to content

fix 401 unauthorized - client_id not found - #48

Open
DJoepie wants to merge 1 commit into
3jackdaws:masterfrom
DJoepie:fix-client_id-not-found
Open

fix 401 unauthorized - client_id not found#48
DJoepie wants to merge 1 commit into
3jackdaws:masterfrom
DJoepie:fix-client_id-not-found

Conversation

@DJoepie

@DJoepie DJoepie commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

Somewhere between new years of 2026 and now the client id scraping broke, causing 401 authorized.
Apparently the current regex is not matching the client_id as they are now using : instead of =.

Details

Problem

image

Downloader working again after fix

image

@zHd4

zHd4 commented Jan 12, 2026

Copy link
Copy Markdown

Btw there is a simplier way to fetch client id.
For example:

import re
import requests

def fetch_client_id():
    resp = requests.get('https://soundcloud.com')
    pattern = re.compile(r'"apiClient"[\s\S]*?"id"\s*:\s*"([^"]+)"')
    match = pattern.search(resp.text)
    if match:
        return match.group(1)
    return None


print(fetch_client_id())

Aden720 added a commit to Aden720/CoolVivy that referenced this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants