Skip to content

RateLimitError

adasThePrime edited this page Apr 13, 2026 · 1 revision

RateLimitError

Raised on HTTP 429. This indicates that Yahoo has rate-limited the session or IP address. The recommended approach is to catch the error, wait for a period of time, and then retry or create a session using a proxy. A residential proxy is recommended to reduce the likelihood of being blocked again or to minimize the frequency of such blocks.

from pyahoo import RateLimitError
# or
from pyahoo.exceptions import RateLimitError

Hierarchy

PyahooError
├── AuthenticationError
├── APIError
│  ├── RateLimitError    <- You are here
│  └── NotFoundError
└── StreamingError

Attributes

  • status_code (int): HTTP status code, always 429.

Clone this wiki locally