the code works fine for me.
429 is a common code for hitting rate limit.
Are you sharing an IP with anyone, or running multiple sessions/activity?
Perhaps let some time go by (I don't know, an hour), and try again but proactively increase your wait_time to make being rate limited less likely ?
1 Like