21 lines
318 B
Ruby
21 lines
318 B
Ruby
# typed: true
|
|
class Scraper::TwitterHttpClientConfig < Scraper::HttpClientConfig
|
|
DEFAULT_ALLOWED_DOMAINS = %w[*.twimg.com ipinfo.io]
|
|
|
|
def cookies
|
|
[]
|
|
end
|
|
|
|
def ratelimit
|
|
[["*.twimg.com", 0.5], ["*", 1]]
|
|
end
|
|
|
|
def allowed_domains
|
|
DEFAULT_ALLOWED_DOMAINS
|
|
end
|
|
|
|
def redirect_limit
|
|
4
|
|
end
|
|
end
|