README.rst 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. bandcamp-dl
  2. ===========
  3. |PyPI pyversions| |PyPI download month| |PyPI license| |GitHub release| |GitHub commits|
  4. Download audio from `bandcamp.com`_
  5. Synopsis
  6. --------
  7. ``bandcamp-dl URL``
  8. Installation
  9. ------------
  10. From PyPI
  11. ~~~~~~~~~
  12. ``pip3 install bandcamp-downloader``
  13. Some linux distros may require that python3-pip is installed first.
  14. From Wheel
  15. ~~~~~~~~~~
  16. 1. Download the wheel (``.whl``) from PyPI or the Releases page
  17. 2. ``cd`` to the directory containing the ``.whl`` file
  18. 3. ``pip install <filename>.whl``
  19. [OSX] From Homebrew
  20. ~~~~~~~~~~~~~~~~~~~
  21. ``brew install bandcamp-dl``
  22. [Arch] From the AUR
  23. ~~~~~~~~~~~~~~~~~~~
  24. ``yay -S bandcamp-dl-git``
  25. From Source
  26. ~~~~~~~~~~~
  27. 1. Clone the project or `download and extract the zip`_
  28. 2. ``cd`` to the project directory
  29. 3. Run ``pip install .``
  30. Description
  31. -----------
  32. bandcamp-dl is a small command-line app to download audio from
  33. bandcamp.com. It requires the Python interpreter, version 3.4 (or
  34. higher) and is not platform specific. It is released to the public
  35. domain, which means you can modify it, redistribute it or use it how
  36. ever you like.
  37. Details
  38. -------
  39. ::
  40. Usage:
  41. bandcamp-dl [options] [URL]
  42. Arguments:
  43. URL Bandcamp album/track URL
  44. Options
  45. -------
  46. ::
  47. Options:
  48. -h, --help show this help message and exit
  49. -v, --version Show version
  50. -d, --debug Verbose logging
  51. --artist ARTIST Specify an artist's slug to download their full discography.
  52. --track TRACK Specify a track's slug to download a single track. Must be used with --artist.
  53. --album ALBUM Specify an album's slug to download a single album. Must be used with --artist.
  54. --template TEMPLATE Output filename template, default: %{artist}/%{album}/%{track} - %{title}
  55. --base-dir BASE_DIR Base location of which all files are downloaded
  56. -f, --full-album Download only if all tracks are available
  57. -o, --overwrite Overwrite tracks that already exist. Default is False.
  58. -n, --no-art Skip grabbing album art
  59. -e, --embed-lyrics Embed track lyrics (If available)
  60. -g, --group Use album/track Label as iTunes grouping
  61. -r, --embed-art Embed album art (If available)
  62. --cover-quality {0,10,16}
  63. Set the cover art quality. 0 is source, 10 is album page (1200x1200), 16 is default embed
  64. (700x700).
  65. -y, --no-slugify Disable slugification of track, album, and artist names
  66. -c OK_CHARS, --ok-chars OK_CHARS
  67. Specify allowed chars in slugify, default: -_~
  68. -s SPACE_CHAR, --space-char SPACE_CHAR
  69. Specify the char to use in place of spaces, default: -
  70. -a, --ascii-only Only allow ASCII chars (北京 (capital of china) -> bei-jing-capital-of-china)
  71. -k, --keep-spaces Retain whitespace in filenames
  72. -x {lower,upper,camel,none}, --case-convert {lower,upper,camel,none}
  73. Specify the char case conversion logic, default: lower
  74. --no-confirm Override confirmation prompts. Use with caution
  75. --embed-genres Embed album/track genres
  76. --truncate-album LENGTH
  77. Truncate album title to a maximum length. 0 for no limit.
  78. --truncate-track LENGTH
  79. Truncate track title to a maximum length. 0 for no limit.
  80. Filename Template
  81. -----------------
  82. The ``--template`` option allows users to indicate a template for the
  83. output file names and directories. Templates can be built using special
  84. tokens with the format of ``%{artist}``. Here is a list of allowed
  85. tokens:
  86. - ``trackartist``: The artist name.
  87. - ``artist``: The album artist name.
  88. - ``album``: The album name.
  89. - ``track``: The track number.
  90. - ``title``: The track title.
  91. - ``date``: The album date.
  92. - ``label``: The album label.
  93. The default template is: ``%{artist}/%{album}/%{track} - %{title}``.
  94. Bugs
  95. ----
  96. Bugs should be reported `here`_. Please include the URL and/or options
  97. used as well as the output when using the `--debug` option.
  98. For discussions, join us in `Discord`_.
  99. When you submit a request, please re-read it once to avoid a couple of
  100. mistakes (you can and should use this as a checklist):
  101. Are you using the latest version?
  102. ---------------------------------
  103. This should report that you're up-to-date. About 20% of the reports we
  104. receive are already fixed, but people are using outdated versions. This
  105. goes for feature requests as well.
  106. Is the issue already documented?
  107. --------------------------------
  108. Make sure that someone has not already opened the issue you're trying to
  109. open. Search at the top of the window or at `Issues`_. If there is an
  110. issue, feel free to write something along the lines of "This affects me
  111. as well, with version 2015.01.01. Here is some more information on the
  112. issue: ...". While some issues may be old, a new post into them often
  113. spurs rapid activity.
  114. Why are existing options not enough?
  115. ------------------------------------
  116. Before requesting a new feature, please have a quick peek at
  117. `the list of supported options`_. Many feature requests are for
  118. features that actually exist already! Please, absolutely do show off
  119. your work in the issue report and detail how the existing similar
  120. options do *not* solve your problem.
  121. Does the issue involve one problem, and one problem only?
  122. ---------------------------------------------------------
  123. Some of our users seem to think there is a limit of issues they can or
  124. should open. There is no limit of issues they can or should open. While
  125. it may seem appealing to be able to dump all your issues into one
  126. ticket, that means that someone who solves one of your issues cannot
  127. mark the issue as closed. Typically, reporting a bunch of issues leads
  128. to the ticket lingering since nobody wants to attack that behemoth,
  129. until someone mercifully splits the issue into multiple ones.
  130. Is anyone going to need the feature?
  131. ------------------------------------
  132. Only post features that you (or an incapable friend you can
  133. personally talk to) require. Do not post features because they seem like
  134. a good idea. If they are really useful, they will be requested by
  135. someone who requires them.
  136. Is your question about bandcamp-dl?
  137. -----------------------------------
  138. It may sound strange, but some bug reports we receive are completely
  139. unrelated to bandcamp-dl and relate to a different or even the
  140. reporter's own application. Please make sure that you are actually using
  141. bandcamp-dl. If you are using a UI for bandcamp-dl, report the bug to
  142. the maintainer of the actual application providing the UI. On the other
  143. hand, if your UI for bandcamp-dl fails in some way you believe is
  144. related to bandcamp-dl, by all means, go ahead and report the bug.
  145. Dependencies
  146. ------------
  147. - `BeautifulSoup4`_ - HTML Parsing
  148. - `Demjson`_- JavaScript dict to JSON conversion
  149. - `Mutagen`_ - ID3 Encoding
  150. - `Requests`_ - for retrieving the HTML
  151. Copyright
  152. ---------
  153. bandcamp-dl is released into the public domain by the copyright holders
  154. This README file was inspired by the `youtube-dl`_ docs and is likewise
  155. released into the public domain.
  156. .. _download and extract the zip: https://github.com/evolution0/bandcamp-dl/archive/master.zip
  157. .. _here: https://github.com/evolution0/bandcamp-dl/issues
  158. .. _Discord: https://discord.gg/nwdT4MP
  159. .. _bandcamp.com: https://www.bandcamp.com
  160. .. _Issues: https://github.com/evolution0/bandcamp-dl/search?type=Issues
  161. .. _the list of supported options: https://github.com/evolution0/bandcamp-dl/blob/master/README.rst#synopsis
  162. .. _BeautifulSoup4: https://pypi.python.org/pypi/beautifulsoup4
  163. .. _Demjson: https://pypi.python.org/pypi/demjson
  164. .. _Mutagen: https://pypi.python.org/pypi/mutagen
  165. .. _Requests: https://pypi.python.org/pypi/requests
  166. .. _youtube-dl: https://github.com/rg3/youtube-dl/blob/master/README.md
  167. .. |PyPI pyversions| image:: https://img.shields.io/pypi/pyversions/bandcamp-downloader.svg
  168. :target: https://pypi.python.org/pypi/bandcamp-downloader/
  169. .. |PyPI download month| image:: https://img.shields.io/pypi/dm/bandcamp-downloader.svg
  170. :target: https://pypi.python.org/pypi/bandcamp-downloader/
  171. .. |PyPI license| image:: https://img.shields.io/pypi/l/bandcamp-downloader.svg
  172. :target: https://pypi.python.org/pypi/bandcamp-downloader/
  173. .. |GitHub release| image:: https://img.shields.io/github/release/evolution0/bandcamp-dl.svg
  174. :target: https://GitHub.com/evolution0/bandcamp-dl/releases/
  175. .. |GitHub commits| image:: https://img.shields.io/github/commits-since/evolution0/bandcamp-dl/v0.0.17.svg
  176. :target: https://GitHub.com/evolution0/bandcamp-dl/commit/