Skip to main content

Python wrapper for the internal v2 SoundCloud API.Does not require an API key.

Project description

soundcloud.py

Tests Coverage Status Supported Python Versions Version License Monthly Downloads

Python wrapper for some of the internal v2 SoundCloud API (read/GET only methods). Does not require an API key.

NOTE: This is NOT the official SoundCloud developer API

SoundCloud is not accepting any more application registration requests ^1 so I made this library so developers can use SoundCloud's internal API for their projects.

Documentation

https://7x11x13.xyz/soundcloud.py

Installation

pip install soundcloud-v2

Example

from soundcloud import SoundCloud

sc = SoundCloud(auth_token="auth_token")
assert sc.is_client_id_valid()
assert sc.is_auth_token_valid()
me = sc.get_user_by_username("7x11x13")
assert me.permalink == "7x11x13"

Notes on auth_token

Some methods require authentication in the form of an OAuth2 access token. You can find your token in your browser cookies for SoundCloud under the name "oauth_token". A new token will be generated each time you log out and log back in.

Notes on **kwargs

All API methods have a **kwargs argument which you can use to pass extra, undocumented arguments to the SoundCloud v2 API in case I missed some parameter which you find useful. If this is the case, feel free to create an issue or pull request to document the missing argument.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soundcloud-v2-1.6.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

soundcloud_v2-1.6.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file soundcloud-v2-1.6.0.tar.gz.

File metadata

  • Download URL: soundcloud-v2-1.6.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for soundcloud-v2-1.6.0.tar.gz
Algorithm Hash digest
SHA256 462513146c0ffc9ec729c1c616f4f72b0dcd33f81478c64207f265f072e78243
MD5 fb0c968951fc02c7a1602f50ce19ddfe
BLAKE2b-256 3bbbba779b3cb9597ddf88bb7b31bd6d2a984f972ee3a8f198d32935540058a7

See more details on using hashes here.

File details

Details for the file soundcloud_v2-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: soundcloud_v2-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for soundcloud_v2-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e3a6cfcec80f59a5ca6fa631d9bde75140b5472892249197178e5229b402cdb
MD5 3fe081f9e89fc7c9f9d0dcae43f36d87
BLAKE2b-256 0b3b0945ba33081a8c165d7400d22c61968cf4d2472cdc121062842b38952ef9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page