Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • C calliope
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 30
    • Issues 30
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Sam Thursfield
  • calliope
  • Merge requests
  • !192

bandcamp: Add `export-band` and `export-album` commands

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Sam Thursfield requested to merge sam/bandcamp-scrape into main Mar 26, 2022
  • Overview 0
  • Commits 2
  • Pipelines 8
  • Changes 11

This will enable us to make web-based playlists from content on Bandcamp, in as much as I hope to generate web pages that use the Bandcamp embedded player similarly to Bandcamp Daily pages.

The implementation uses some web scraping, so a dependency on BeautifulSoup4 library is added.

Done:

  • Automated tests, using saved web pages
  • Figure out why cpe -v 3 bandcamp export-band https://ztapes.bandcamp.com/ --expand-albums fails with:
urllib3.connectionpool https://bandcamp.com:443 "GET /EmbeddedPlayer/album=track-3884234695 HTTP/1.1" 200 None
TypeError: 'NoneType' object is not subscriptable
  • Figure out caching: currently, if a band you exported already releases a new album, you won't see it as data will always be returned from the cache. We should add a timeout for caching, and let user control it as needed. Done in !195 (merged)

Fixes #97 (closed)

Edited Apr 06, 2022 by Sam Thursfield
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: sam/bandcamp-scrape