Skip to content

How to search for works efficiently? #10

Description

@hejops

Going off the example in #1 (comment), I tried the following code:

from imslp import client
r = client.ImslpClient()
results = r.search_works(composer="Schoenberg")
ids = [r["intvals"]["pageid"] for r in results]
print(ids)

The search_works() call "appears" to produce unresponsive behaviour, as there is no indication that anything is being done. However, sending a keyboard interrupt after some time (a few minutes) does return data. Is there a more efficient method to get information on a large number of works?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions