Giter Site home page Giter Site logo

Comments (2)

Peter200lx avatar Peter200lx commented on September 24, 2024 2

First brush it looks like token for /api/fancollection/1/wishlist_items follows the pattern of /collection_items. However the 5 fields are:

  1. Unix epoch timestamp of when fan "added" this item
  2. "tralbum_id" of the item in question
  3. "trablum_type" of the item in question
  4. ?Unused?
  5. ?Unused?

In this case it appears that the first three fields are all important for getting consistent responses.

From <div id="pagedata" data-blob="{JSON HERE}"> on your fan page look for .wishlist_data.last_token.

from bandcamp-api.

nmwodarz avatar nmwodarz commented on September 24, 2024 2

Specifically related to api/fancollection/1/collection_items:

  1. The timestamp and id are not necessary and can be left blank ::...
  2. The tralbum_type is required to not be empty, but any value is fine ::foo:...
  3. The index value is the only important part for this handler
    3.1. Any index value that is not a positive whole number is ignored and treated as an empty value, aka start at the first value you can give. (::foo:: or ::foo:bar: says start with the first item, ::foo:50: says start with the 51st item)
    3.2. This unfortunately means you can't get the extended information about the initial 45 items set on the users fan page (apart from something like automating swapping the first and section 45 item chunks)

Using this as a starting point, I was able to get an entire collection (matching the listed collection size) by setting older_than_token to f"{int(time.time())}::a::" (in Python).

from bandcamp-api.

Related Issues (4)

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.