update tumblr IP ranges per AS2635 prefix report; fixes #38

This commit is contained in:
byte[] 2020-03-31 13:03:32 -04:00
parent 3bb4a4ce56
commit 2b99afb746

View file

@ -4,8 +4,13 @@ defmodule Philomena.Scrapers.Tumblr do
@size_regex ~r|_(\d+)(\..+)\z| @size_regex ~r|_(\d+)(\..+)\z|
@sizes [1280, 540, 500, 400, 250, 100, 75] @sizes [1280, 540, 500, 400, 250, 100, 75]
@tumblr_ranges [ @tumblr_ranges [
InetCidr.parse("66.6.32.0/23"), InetCidr.parse("66.6.32.0/24"),
InetCidr.parse("66.6.44.0/24") InetCidr.parse("66.6.33.0/24"),
InetCidr.parse("66.6.44.0/24"),
InetCidr.parse("74.114.152.0/24"),
InetCidr.parse("74.114.153.0/24"),
InetCidr.parse("74.114.154.0/24"),
InetCidr.parse("74.114.155.0/24")
] ]
@spec can_handle?(URI.t(), String.t()) :: true | false @spec can_handle?(URI.t(), String.t()) :: true | false