21 lines
337 B
Ruby
21 lines
337 B
Ruby
# typed: true
|
|
class Scraper::E621HttpClientConfig < Scraper::HttpClientConfig
|
|
DEFAULT_ALLOWED_DOMAINS = %w[e621.net *.e621.net]
|
|
|
|
def cookies
|
|
[]
|
|
end
|
|
|
|
def ratelimit
|
|
[["static1.e621.net", 1], ["facdn.net", 2], ["*", 0.25]]
|
|
end
|
|
|
|
def allowed_domains
|
|
DEFAULT_ALLOWED_DOMAINS
|
|
end
|
|
|
|
def redirect_limit
|
|
2
|
|
end
|
|
end
|