Giter Site home page Giter Site logo

free-mp3-download-cli's Introduction

free-mp3-download-cli

python script for downloading full albums and tracks as mp3 or flac from http://free-mp3-download.net/

features

  • downloads full albums
  • downloads individual tracks
  • grabs cover art and metadata
  • choose between mp3 or lossless (flac)
  • uses selenium for manual captcha grabbing (firefox support soon)
  • optional 2captcha for captcha solving

how to use

  1. pip install -r requirements.txt
  2. Install chromedriver and set to PATH
  3. python main.py -a -s <search query> -o <output folder location>

options

  -h, --help            Show help message and exit
  -s SEARCH, --Search SEARCH
                        Search query
  -o OUTPUT, --Output OUTPUT
                        Download location
  -c CAPTCHA, --Captcha CAPTCHA
                        2Captcha Key
  -a                    Search for album
  -t                    Search for track
  -l                    Download lossless .flac (default is mp3)

free-mp3-download-cli's People

Contributors

ethanbarclay avatar deepsourcebot avatar

Stargazers

Yash Gajbhiye avatar  avatar Rayat Rahman avatar  avatar Amarnath Jamale avatar Holence avatar  avatar  avatar Ivan Yakimov avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

evandorn

free-mp3-download-cli's Issues

free-mp3-download-cli is entirely broken

pypy3 main.py -tls "hey soul sister"
testing stored captcha
stored captcha is valid
02 - Hey, Soul Sister.flac
Traceback (most recent call last):
  File "./main.py", line 260, in <module>
    track()
  File "./main.py", line 143, in track
    download_track(data["data"][0]["id"], data["data"][0]["album"]["id"])
  File "./main.py", line 94, in download_track
    local_track = music_tag.load_file(
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/music_tag/__init__.py", line 55, in load_file
    mfile = mutagen.File(filename, easy=False)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/_util.py", line 163, in wrapper_func
    return func(h, *args, **kwargs)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/_file.py", line 300, in File
    return Kind(fileobj, filename=filething.filename)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/_file.py", line 47, in __init__
    self.load(*args, **kwargs)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/_util.py", line 184, in wrapper
    return func(*args, **kwargs)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/_util.py", line 155, in wrapper
    return func(self, h, *args, **kwargs)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/flac.py", line 794, in load
    self.__check_header(fileobj, filething.name)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/flac.py", line 911, in __check_header
    header = fileobj.read(4)
  File "/home/saltedcoffee/.local/lib/pypy3.9/site-packages/mutagen/flac.py", line 68, in read
    raise error("file said %d bytes, read %d bytes" % (
mutagen.flac.error: file said 4 bytes, read 0 bytes

This occurs for all downloads I've tried.

Song names with slashes fail to download

Song names with slashes fail to download. An error then appears:

Traceback (most recent call last):
  File "./main.py", line 262, in <module>
    album()
  File "./main.py", line 137, in album
    download_track(track["id"], data["id"])
  File "./main.py", line 91, in download_track
    with open(
FileNotFoundError: [Errno 2] No such file or directory: 'Halsey - Manic/10 - Finally // beautiful stranger.flac'

Using error.

When I run the main.py script, it apears that:

:ERROR:device_event_log_impl.cc(214)] [17:01:58.488] USB: usb_device_handle_win.cc:1049 Failed to read descriptor from node connection

I want to know how to handle it. Thank you

Can you pipe Captcha through terminal?

Hi there. I don't wanna pay for the captcha API just so that I can download music.
Can you pipe the actual captcha through instead please?
If that's even possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.