Adding compression support can be very simple -- if your spider is coded in Perl using LWP::UserAgent, then the
addition of a single line of code will enable compression support.
$ua->default_header('Accept-Encoding' => 'gzip');and then you need to make sure that you always refer to 'decoded_content' when dealing with the response object.
For other languages, all
you need to do is to add
Accept-encoding: gzipto the HTTP request that you send, and then be prepared to deal with a 'content-encoding: gzip' in the response.
Happily, some of the large spiders do support compression -- the googlebot and Yahoo Slurp do (to name but two). Since I started prodding crawler implementors, a couple have implemented compression (one within hours), and another reported that it was a bug that it didn't work -- which would be fixed shortly.
Crawlers which do more than 5% of the total (uncompressed) crawling activity are marked in bold below.
Crawler | Last IP used |
---|---|
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" "blog.gladstonefamily.net | 173.252.87.10 |
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" "pond.gladstonefamily.net | 173.252.83.13 |
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" "www.gladstonefamily.net | 173.252.83.5 |
GuzzleHttp/7" "gladstonefamily.net | 167.235.1.20 |
Magellan" "gladstonefamily.net | 172.91.101.96 |
masscan/1.0 (https://github.com/robertdavidgraham/masscan)" "- | 87.246.7.62 |
Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)" "blog1.gladstonefamily.net | 216.244.66.194 |
Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)" "charon.gladstonefamily.net | 216.244.66.194 |
Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)" "gladstonefamily.net | 216.244.66.194 |
Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)" "pond.gladstonefamily.net | 216.244.66.194 |
Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)" "pond1.gladstonefamily.net | 216.244.66.194 |
Mozilla/5.0 (compatible; DotBot/1.2; +https://opensiteexplorer.org/dotbot; help@moz.com)" "www.gladstonefamily.net | 216.244.66.194 |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 | 138.246.253.27 |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" "pond1.gladstonefamily.net | 95.216.154.223 |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" "blog.gladstonefamily.net | 3.145.143.239 |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" "blog1.gladstonefamily.net | 18.220.1.239 |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" "gladstonefamily.net | 3.15.6.77 |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" "pond.gladstonefamily.net | 18.118.200.197 |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" "pond1.gladstonefamily.net | 18.117.227.194 |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" "pond1.gladstonefamily.net:8080 | 18.117.183.172 |
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" "www.gladstonefamily.net | 3.142.96.146 |