Skip to content

[PSA] twitter rate limiting twice in a row does not mean there is no more media #9476

@inverteddensity

Description

@inverteddensity
Image

I don't know if I'm allowed to open an "issue" like this, since it is just me projecting my tech illiteracy. But I never knew this, so I wanted to spread awareness of it, if I could.

I have been using gallery-dl for years, long before elon musk bought twitter. At some point after he bought twitter, he added rate limiting to it, if you download media older than the "media" tab of a profile. Until now, I thought if you triggered the rate limit twice in a row, you had downloaded all the media of a profile, since I have never received media after waiting such out. But today I did for the first time, retroactively rendering all my previous scrapes I've closed before they exhausted the rate limit potentially incomplete.

Again, this is probably obvious to everyone else, but I had no idea rate limiting was relative to date, not bandwidth. So it triggers when for example checking any given six month period for media, as opposed to only triggering when a threshold for bandwidth is reached. In hindsight, I guess I could've figured this, since I did not understand why sometimes waiting out a rate limit would return ones of media, but other times dozens. But I just assumed it was elon musk being inconsistently stingy, not him setting a literal standard time elapsed required to download all media from a profile depending on its age, which only coincidentally limits bandwidth depending on the size and amount of media the profile has posted across which dates.

I guess if I had to make this an actual feature request, assuming it were possible at all, I wish the rate limit message stated the date it has currently reached in checking for media at the time of being rate limited, so the layman could see that even though they are not receiving media, it hasn't finished checking everything, as evidenced by the date currently checked not having reached the date the account was created yet. Further, you could also state the date the account was created in the same message, so the user could calculate how many rate limits remain. Or if it is this consistent, you could estimate how many rate limits remain outright, sparing the user of dates entirely. Though I don't know if any of this is possible.

Again, this must be obvious to everyone else, but the way elon musk designed it seemed irrational to me, as opposed to rate limiting based on bandwidth. So I did not assume such to be the case at all. But this isn't blaming gallery-dl nor expecting nor hoping for anything of it; this is just me trying to raise awareness of possibly only my own unique incorrect, self-destructive assumption, which I am only just realizing was the case the entire time.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions