Skip to content

Any way to throttle calls to get_status? #130

@RichardMN

Description

@RichardMN

It's more of a question than a comment...

I have a frame with a number of toot ids generated from elsewhere and I want to try to pull additional information from them. This ends up looking something like...

  icymibot_expanded <- icymibot_data |>
    top_n(500,created_at) |>
    rowwise() |>
    mutate(details=get_status(toot_id)) |>
       ...

But it crashes out after 300 rows (as far as I can tell). Is there a way to tell rtoot as a whole to back-off and that I'd rather that it chill a bit between requests rather than it hammer the server in an asocial manner and get told to stop (Status code: 429)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions