Skip to content

Commit

Permalink
Faster rate limit for Twitter Guest scraper
Browse files Browse the repository at this point in the history
Fix #931
  • Loading branch information
Yomguithereal committed Feb 15, 2024
1 parent 0c59bdd commit ff0efcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minet/twitter/api_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,8 @@ def __init__(self):
timeout=TWITTER_PUBLIC_API_DEFAULT_TIMEOUT, spoof_tls_ciphers=True
)

# NOTE: 10 calls per minute
self.rate_limiter_state = RateLimiterState(10, 60)
# NOTE: 1 call per second
self.rate_limiter_state = RateLimiterState(1)

self.reset()

Expand Down

0 comments on commit ff0efcc

Please sign in to comment.