This Python script allows users to automatically download their latest liked songs from SoundCloud and share them to their Telegram channel. It provides a seamless integration between SoundCloud's API, YouTube DL for song extraction, and Telegram's API for sharing.
- Automatic Download: Continuously monitors the user's liked songs on SoundCloud and downloads any new additions automatically.
- Quality Preservation: Utilizes YouTube DL to ensure high-quality audio downloads.
- Telegram Integration: Shares downloaded songs along with cover art to a specified Telegram channel or group.
- Customizable: Easily configurable settings for Telegram channel ID, bot token, and file download directory.
-
Clone the repository:
git clone https://github.com/MiliScripts/soundloader.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Obtain necessary tokens and IDs:
- Fill in your SoundCloud user ID, Telegram bot token, Telegram channel ID, and initialize the
last_songvariable to store the last liked song. You can find your SoundCloud user ID by going to your profile and copying the numerical part of the URL. For the Telegram bot token and channel ID, you need to create a bot on Telegram and get the token, as well as the ID of the channel where you want to share the songs.
Example:
last_song = "" # stores last Likes Song / Updates and Compares bot_token = 'YOUR_TELEGRAM_BOT_TOKEN' # --- Your BOT Token here chat_id = 'YOUR_TELEGRAM_CHANNEL_ID' # --- Your Channel ID here user_id = "YOUR_SOUNDCLOUD_USER_ID" # --- Your Soundcloud User Id here
- Fill in your SoundCloud user ID, Telegram bot token, Telegram channel ID, and initialize the
Update bot_token and chat_id variables in the script with your Telegram bot token and chat ID, respectively.
-
Run the script:
python soundcloud.py
SoundCloud Telegram Downloader Demo
See hwo it works on my channel
- Like a song on SoundCloud.
- Wait for the script to detect the new liked song.
- The song will be automatically downloaded and shared to your Telegram channel.
