Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyPI version Build Status

Avaland Music Downloader

Avaland is a command-line program to download musics directly from most popular Iranian music websites, written in Python. It supports RadioJavan, Bia2Music, Nex1Music, Navahang, WikiSeda and RapFarsi.

It requires the Python interpreter, version 3.5+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS.

screen shot

Installation and Notes

To install it open your terminal and type:

pip3 install avaland

Usages And Examples

The usages can be found with the -h or --help flag:

Usage: [-h] [--path PATH] [--sources SOURCES] [--dl-first]
               [--dl-album] [--dl-artist]
               query
positional arguments:
  query                 Search query

optional arguments:
  -h, --help            show help message and exit
  --path PATH, -p PATH  path to download music/album
  --sources SOURCES, -s SOURCES
                        list of sources (default: --sources all) Available
                        sources: Bia2, Navahang, Nex1, RadioJavan, RapFarsi,
                        WikiSeda
  --dl-first, -df       download first music in list
  --dl-album, -da       download all musics in an album
  --dl-artist, -dr      download all musics of an artist
# Search tracks
avaland "your search query"

# Search and download first result
avaland "your search query" --dl-first

# Search with custom sources
avaland "your search query" --sources radiojavan,bia2,rapfarsi

# Set custom download path directory
avaland "your search query" --path /foo/bar

Getting Started (For Developers)

from avaland.manager import SourceManager
from avaland.sources import *

manager = SourceManager()

#  register two sources
manager.register(Bia2)
manager.register(RapFarsi)

if __name__ == '__main__':
    #  search for a query
    search = manager.search("hello adele")
    print(search)
    #  download first result from bia2
    download = search['bia2'].musics[0].download()
    print(download)

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork it (https://github.com/dragon-born/avaland)
  2. Create your Feature Branch (git checkout -b feature/newfeature)
  3. Commit your changes (git commit -am 'Add some amazing new feature')
  4. Push to the branch (git push origin feature/newfeature)
  5. Open a new Pull Request

License

MIT

Release files for avaland 0.1.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avaland 0.1.0a0
File Size Uploaded
avaland-0.1.0a0.tar.gz 12.9 kB Details

Release files / avaland-0.1.0a0.tar.gz

Download URL avaland-0.1.0a0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
67eaee3a194cbd577c4308f6b81fccd1be6fb15c0e6ad7b9f5d49a3684119d4d
BLAKE2b-256 checksum
How to use checksums
13eb32970e3300c827ce3bc45dbdf4729256956bcc4b1c64662a7b1ad8356104
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1.0a0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page