# \[WS\] Bandcamp (search by URL)

**URL:** https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838
**Category:** Web Sources Scripts
**Created:** [April 11, 2016, 6:54pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838 "2016-04-11T18:54:39Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 13, 2023, 6:20pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/41 "2023-09-13T18:20:43Z")

</div>

I've looked a little bit closer on the index search part of the web source and noticed that it produces an error if the search term returns no results. This is now fixed.

Also, because searching for **A/B Sides 027** on Bandcamp should return plenty of results, I've noticed that there was a small typo for the `[WordSeparator]` configuration setting in the web source, effectively removing every space character from the query before it is sent to Bandcamp.

Having fixed this should now greatly increase the number of search results provided by this web source.

[&Bandcamp#&JSON.src](https://community.mp3tag.de/uploads/short-url/dPeKjBofOuRYj1VvqtlDRP6411r.src) (5.3 KB)

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [September 15, 2023, 2:42am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/42 "2023-09-15T02:42:01Z")

</div>

Thanks so much for your time and effort! The JSON script is working very well. I'm so glad you caught that WordSeparator typo as I always had to get creative to avoid the error Leo noted. There are two improvements that I think would make it complete. I think both would be good candidates for option settings if the web sources framework and BandCamp's JSON can do it.

Here's the album I used for testing: [Demon's and Dark Souls Remixes | Alex Roe](https://alexroe.bandcamp.com/album/demons-and-dark-souls-remixes)

1. Full quality cover art. The album covers are not the maximum size available. The HTML script will get a 3000x3000 image on the same album that the JSON script pulls a 1200x1200 image. I think it is this section in the HTML script where is selects the "0" jpg, is how it targets the maximum quality art.

```auto
# Coverart
gotoline 3
outputto "COVERURL"
findline "link rel=\"shortcut icon\"" 1 1
replace "3.jpg" "0.jpg"
findinline "href=\"" 1 1
sayuntil "\""

```

1. Get album and track descriptions. There can be comments for the album as a whole, but there can also be separate, individual comments for each track. I would really like to be able to get both of them into tag fields. Ideally I'd like to have them combined in the comments tag, but that can be done later through Mp3tag Actions easily enough, so long as the web source populates the data in some tag. My thought would be to put the album description in the Comments tag, then put the track description into a "BandCamp Track Comment" custom tag. Below is an image of the track descriptions I'm referencing (they are displayed on a separate page when you click on the `info` link next to a track).

 ![InfoButton](https://community.mp3tag.de/uploads/default/original/2X/6/6102bcf420250d4bf233b9d3c8be85264e483b4d.png)

 ![Track description](https://community.mp3tag.de/uploads/default/original/2X/6/65d3ec9732829d8507f2cf173fb08894be8067d5.jpeg)

The script is already a huge help as-is, but if those changes would be feasible it would be basically perfect (at least for my needs).

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 17, 2023, 1:03pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/43 "2023-09-17T13:03:20Z")

</div>

I've added the suggested configuration settings to optionally use the highest possible quality for cover art as well as a setting for `YEAR` format and whether albums and tracks are included in the search results.

On macOS, the tag source now also shows cover thumbnails for the search results.

Your second idea to import track details is currently not possible. This would require one additional request per track to the Bandcamp website, because the track details are on the respective track page. Mp3tag can only perform one request to get the details of an album.

I'm also adding this to the initial post now, to make it easier for new users to get the latest version of the tag source. Also, the changelog should give some details on what's added and fixed.

[bandcamp-0.4.2.zip](https://community.mp3tag.de/uploads/short-url/wfCLNi2uEhHZxbBtoOKAS0l72MQ.zip) (4.5 KB)

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [September 24, 2023, 1:20am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/44 "2023-09-24T01:20:10Z")

</div>

👏 👏 👏 Thanks Florian! Seems to be working great!

Too bad about the track "info" comments, but I had a feeling there would be some sort of issue along those lines with the silly way Bandcamp choose to structure their site (and eliminate the public API). Thanks again for your help and all of your hard work on Mp3tag more broadly.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [September 28, 2023, 4:12am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/45 "2023-09-28T04:12:19Z")

</div>

It is possible with a separate websource to fetch comments for individual tracks together with something that can iterate the script through the tracklist in mp3tag (autohotkey does this for me). I do this for a review site for individual track reviews.

Basically, my workflow goes like this:

1. In the main script, save the track url (info link in your pic) to a field, e.g., BANDCAMP\_TRACK\_URL, if there is a track url for it,
2. In a separate script, use the saved track url to scrape the track page and save the comment in the appropriate comment tag, and
3. Use something like autohotkey to iterate the script in step 2 through the tracklist.

My autohotkey script looks like this (Win+S runs it and the websources are activated by alt+key combinations that are set by the websource's filename):

```auto
#s::
; Find song reviews from litigious-review-site-that-cannot-be-named using mp3tag
InputBox, times, Number of tracks (more than on album)
	if (times > 0) ; test if it is a number
	{
		Loop % times
		{
			Send !s ; alt+s to bring up tag sources menu
			Send a
			Send s ; run websource that parses track url
			Send {Enter 2} ; pass confirmation windows
			Sleep 1000
			Send {Down} ; go select next track
		}	return
	}
return

```

The above workflow allowed me to go through huge compilations and scrape individual track reviews to my comment field. Then again, I usually combine track and album reviews into the same COMMMENT tag. Basically, I save the track review and album review(s) in separate fields and use multiple format value functions in the my custom action groups to combine various comment fields into COMMENT.

@Florian Thanks for updating the script. I have really busy lately (such is life with billable hours), so I do not have enough time to update script, especially since it still does what I need it to do.

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [October 8, 2023, 1:49am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/46 "2023-10-08T01:49:50Z")

</div>

That sounds promising. How are you automating retrieval of the track URLs to feed into your AHK script? I'm on macOS, so I'd need to use a different automation tool (probably Keyboard Maestro or even just Apple Shortcuts for a future Mac users that see this), but just thinking about automating the URL gathering at least. Thanks for the input either way, and thanks for developing the original web source for Bandcamp.

---

<div class="post-metadata">

### Author: ![ms6676749](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@ms6676749](https://community.mp3tag.de/u/ms6676749)
#### Post date: [October 8, 2023, 6:18pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/47 "2023-10-08T18:18:32Z")

</div>

The AHK script works by entering the key sequence to run the review scrapping script named, e.g., "&A review site#&3 &Song Review from URL.src" My review scrapper only reads from the track's review URL value, so no manual entry is needed. The two enter keys in my AHK script not only confirms the confirmation windows from the script but also bypasses the error messages if the track review URL is empty.

On Windows, "ALT+s" brings up the tag sources menu, "a" selects "A review site" submenu, "s" runs the "Song Review from URL" websource. As you can tell, the filename of the websource not only organizes the Tag Source dropdown menu but also allows to designate shortcut keys.

From the first selected track in mp3tag, the AHK script enters the necessary keys to run the track review scraper and enters the keys to select the next track to rerun the track review scraper and so on. This loop lasts for the number of tracks that you enter in the AHK prompt.

---

<div class="post-metadata">

### Author: ![Arbiter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@Arbiter](https://community.mp3tag.de/u/Arbiter)
#### Post date: [October 8, 2023, 6:35pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/48 "2023-10-08T18:35:03Z")

</div>

Understood. Thanks for the info.

---

<div class="post-metadata">

### Author: ![beta](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/6a8cbe/32.png) [@beta](https://community.mp3tag.de/u/beta)
#### Post date: [December 25, 2023, 4:25pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/49 "2023-12-25T16:25:46Z")

</div>

I get this error when trying to use the script:

> ERROR(Settings): expected value, got '&' (38)

I am using `bandcamp-0.4.2.zip` and mp3tag version `3.2.3`. What am I doing wrong?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 25, 2023, 6:15pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/50 "2023-12-25T18:15:54Z")

</div>

You probably haven’t copied or renamed the .settings file from the archive.

---

<div class="post-metadata">

### Author: ![tearaway](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/57b2e6/32.png) [@tearaway](https://community.mp3tag.de/u/tearaway)
#### Post date: [December 29, 2023, 3:46pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/51 "2023-12-29T15:46:13Z")

</div>

Hello,

Thanks for preparing and offering this. I find helpful.

---

<div class="post-metadata">

### Author: ![climaxim](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/d2c977/32.png) [@climaxim](https://community.mp3tag.de/u/climaxim)
#### Post date: [February 16, 2024, 2:23am UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/52 "2024-02-16T02:23:57Z")

</div>

Hi guys!

First of all, thank you for this! Top tier script. However I miss 2 things, I downloaded the latest version and I only can search by Album.  
How could I modify the script to be able to search by track or URL?

Thanks you!

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 24, 2024, 3:27pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/53 "2024-05-24T15:27:11Z")

</div>

I've just released v0.4.3, which adds support for cover thumbnails in search results.

[bandcamp-0.4.3.zip](https://community.mp3tag.de/uploads/short-url/gTrn6zRmkIi5hzywQMW6ckRnuPt.zip) (3.0 KB)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 12, 2024, 1:48pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/54 "2024-12-12T13:48:47Z")

</div>

6 posts were split to a new topic: [Bandcamp WS gives SSL error on Windows 7](https://community.mp3tag.de/t/bandcamp-ws-gives-ssl-error-on-windows-7/66817)

---

<div class="post-metadata">

### Author: ![batsam](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@batsam](https://community.mp3tag.de/u/batsam)
#### Post date: [January 2, 2026, 2:13pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/55 "2026-01-02T14:13:59Z")

</div>

when I click on bandcamp it will ask me for album name.

that can be challenging if it will ask that question for hundred of files.

can it just embed artwork automatically using just song and artist names

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 2, 2026, 3:18pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/56 "2026-01-02T15:18:54Z")

</div>

The search and import works on a per-album basis and is usually a 3-step process. It doesn't embed artwork automatically for more than one album at a time, even if you select hundreds of files.

---

<div class="post-metadata">

### Author: ![batsam](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/cc9497/32.png) [@batsam](https://community.mp3tag.de/u/batsam)
#### Post date: [January 2, 2026, 5:36pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/57 "2026-01-02T17:36:54Z")

</div>

no way it can work differently to speed up the process ?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 5, 2026, 12:01pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/58 "2026-05-05T12:01:04Z")

</div>

It looks like the Bandcamp search has been changed and now requires JavaScript. This means that search by album name or track title is no longer possible and is removed from the archive.

Instead, I've added an URL search option, where you can search by entering the URL of the album on Bandcamp, e.g., `https://voicesfromthelake.bandcamp.com/album/ii`

I've also changed the source to use standard capitalization for `GENRE` and fixed `GENRE` to not include Bandcamp discover URLs.

[bandcamp-0.4.4.zip](https://community.mp3tag.de/uploads/short-url/vHGAlL5wvk9ipK22B8HbFreUlKM.zip) (2.6 KB)

---

<div class="post-metadata">

### Author: ![Leo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c2a13f/32.png) [@Leo](https://community.mp3tag.de/u/Leo)
#### Post date: [May 21, 2026, 7:49pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/59 "2026-05-21T19:49:14Z")

</div>

Hello, I have an error when trying this URL: [Voci EP | Guy From Downstairs](https://guyfromdownstairs.bandcamp.com/album/voci-ep)

**ERROR(L77): unknown command 'sayformat'.**

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [May 21, 2026, 8:26pm UTC](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838/60 "2026-05-21T20:26:34Z")

</div>

Are you using the latest version of Mp3tag?

[Previous page](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838.md?page=2)

[Next page](https://community.mp3tag.de/t/ws-bandcamp-search-by-url/17838.md?page=4)
