Bandcamp album clipper

Here’s a recipe you can use to clip albums on Bandcamp! This recipe uses CSS selectors to automatically grab the album name, cover art, artist name, the record label (or artist, for self-releases), and just for fun, the text of whatever was the most recent review at the time of clipping.

In your target base/table, you’ll need to have the following fields (or you can make a copy of this base)

  • Album name (single line text field)
  • Cover art (attachment field)
  • Artist name (single line text field)
  • Link (URL field)
  • Record label (single line text field)
  • Random review (long text field)

And here’s the snippet you can import:

    "schemaVersion": 3,
    "fieldMappings": [
        {
            "fieldName": "Album Name",
            "fieldType": "singleLineText",
            "defaultValue": {
                "type": "cssSelector",
                "opts": {
                    "cssSelector": "#name-section > h2"
                }
            }
        },
        {
            "fieldName": "Artist Name",
            "fieldType": "singleLineText",
            "defaultValue": {
                "type": "cssSelector",
                "opts": {
                    "cssSelector": "#name-section > h3 > span > a"
                }
            }
        },
        {
            "fieldName": "Record Label",
            "fieldType": "singleLineText",
            "defaultValue": {
                "type": "cssSelector",
                "opts": {
                    "cssSelector": "#band-name-location > span.title"
                }
            }
        },
        {
            "fieldName": "Link",
            "fieldType": "url",
            "defaultValue": {
                "type": "pageUrl",
                "opts": null
            }
        },
        {
            "fieldName": "Cover Art",
            "fieldType": "multipleAttachments",
            "defaultValue": {
                "type": "cssSelector",
                "opts": {
                    "cssSelector": "#tralbumArt > a > img"
                }
            }
        },
        {
            "fieldName": "Random Review",
            "fieldType": "multilineText",
            "defaultValue": {
                "type": "cssSelector",
                "opts": {
                    "cssSelector": "#pgBd > div.trackView.leftMiddleColumns.has-art > div.middleColumn > div.collected-by.tralbum.collectors > div.deets.populated > div:nth-child(1) > div"
                }
            }
        }
    ]
}

Have fun!

2 Likes