eco0o0o0のブログ

たまにプログラミングしてる。検索してもでてこないことをたまに記事にします。

TwitterAPIに403を返されてしまった。。

pythontwitterを絡めて便利なものを作ろうとしていて、何度もコードを走らせていたのですが、 いきなり、tweetを読み込まなくなってしまい、調べてみると403がtwitterから返されていました。

403 Forbidden The request is understood, but it has been refused or access is not allowed. An accompanying error message will explain why. This code is used when requests are being denied due to update limits . Other reasons for this status being returned are listed alongside the error codes in the table below.

https://developer.twitter.com/en/docs/basics/response-codes

tweetの検索しか行わなかったので、制限に引っかかるとは思いもしませんでしたが どうやら調べてみると15分あたり180回しかリクエストできないようです。

qiita.com

時間を置けば再び使えるようになるらしいので大人しく待っときます・。・