Skip to content

About

A Python-based downloader for SongSara, powered by Playwright. Download individual tracks and complete albums with session support and automatic skipping of existing files.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Songsara Downloader

A command-line tool for downloading tracks and complete albums from SongSara.
Powered by Playwright browser automation.

Latest release License Python 3.10+ Playwright


Overview

Songsara Downloader is a Python-based command-line application that extracts track information and downloads audio from SongSara.

It uses Playwright to work with SongSara's browser-rendered pages, including pages that require an authenticated session. You can download an individual track or process an album's tracklist sequentially.

Features

  • Browser-powered extraction — uses Playwright to read dynamically rendered SongSara pages.
  • Login and persistent session — sign in through the browser and reuse the saved session.
  • Single-track downloads — download an individual track from a supported SongSara page.
  • Album downloads — extract an album tracklist and download its tracks in order.
  • Skip existing files — avoid downloading tracks that are already present.
  • Safer file handling — download to a temporary .part file and move it to its final name only after the download completes.
  • Clear summary — see how many tracks were downloaded, skipped, or failed.

Requirements

  • Python 3.10 or newer
  • pip
  • A working internet connection
  • Chromium for Playwright

Installation

1. Clone the repository

git clone https://github.com/hasssan-hasssan/Songsara-Downloader.git
cd Songsara-Downloader

2. Create and activate a virtual environment

Windows (PowerShell)

python -m venv .venv
.venv\Scripts\Activate.ps1

Linux / macOS

python3 -m venv .venv
source .venv/bin/activate

3. Install the project

python -m pip install --upgrade pip
pip install -e .

4. Install the Playwright browser

playwright install chromium

Usage

Sign in to SongSara

If a page or track requires an authenticated session, start the login flow:

songsara --login

Complete the sign-in process in the browser window. The browser session is saved for subsequent runs.

Download a track or album

Pass the SongSara page URL with --url and choose an output directory with --dest:

songsara --url "https://songsara.net/72102/" --dest "./downloads"

The downloader detects the page content and processes the available track or album tracklist.

Check the available options

songsara --help

Show the installed version:

songsara --version

Download behavior

  • Album tracks are processed sequentially.
  • Existing completed files are skipped.
  • In-progress downloads use the .part suffix.
  • A temporary file is promoted to its final filename only after a successful download.
  • At the end, the CLI reports downloaded, skipped, and failed counts.

Note: If a download is interrupted, its incomplete temporary file is not treated as a completed track. The track is downloaded again from the beginning on the next run; byte-level resume is not currently supported.

Development

Install the project in editable mode as shown above. After changing the source code, run the CLI from the activated environment:

songsara --help

Please include the following when reporting a bug:

  • Your operating system and Python version
  • The command you ran (remove any private information)
  • The relevant error output
  • Whether the page requires a SongSara login

Never share session files, cookies, passwords, or other authentication data in an issue.

Responsible use

This project is an independent, community-developed tool and is not affiliated with, endorsed by, or sponsored by SongSara.

Only download content that you are legally entitled to access and save. Respect copyright, the rights of artists and rights holders, and SongSara's terms and applicable laws. You are responsible for how you use this software.

Contributing

Bug reports, ideas, and pull requests are welcome.

  1. Fork the repository.
  2. Create a branch for your change.
  3. Make and test your changes.
  4. Open a pull request with a clear description of the problem and solution.

License

This project is licensed under the MIT License.


Made with care for music lovers and command-line enthusiasts.

About

A Python-based downloader for SongSara, powered by Playwright. Download individual tracks and complete albums with session support and automatic skipping of existing files.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages