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 |
---|---|
curl/7.54.0" "c-73-227-75-114.hsd1.ma.comcast.net:8080 | 15.204.142.151 |
DomainStatsBot/1.0 (https://domainstats.com/pages/our-bot)" "gladstonefamily.net | 148.251.121.91 |
Java/17.0.1" "gladstonefamily.net | 74.126.55.206 |
Magellan" "gladstonefamily.net | 172.91.101.96 |
masscan/1.0 (https://github.com/robertdavidgraham/masscan)" "- | 52.42.24.75 |
meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler)" "blog.gladstonefamily.net | 57.141.5.15 |
meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler)" "pond.gladstonefamily.net | 57.141.0.27 |
meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler)" "pond1.gladstonefamily.net | 57.141.0.7 |
meta-externalagent/1.1 (+https://developers.facebook.com/docs/sharing/webmasters/crawler)" "www.gladstonefamily.net | 57.141.0.26 |
Mozilla/5.0 (compatible; DotBot/1.1; http://www.opensiteexplorer.org/dotbot, help@moz.com)" "blog.gladstonefamily.net | 3.236.59.230 |
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; SeekportBot; +https://bot.seekport.com)" "charon.gladstonefamily.net | 51.83.34.114 |
Mozilla/5.0 (compatible; SeekportBot; +https://bot.seekport.com)" "pond.gladstonefamily.net | 141.94.105.81 |
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.24 |
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 | 116.203.93.86 |
Mozilla/5.0 (X11; Linux x86_64; rv:109)" "pond.gladstonefamily.net | 23.81.27.114 |
Mozilla/5.0 X11; Ubuntu; Linux x86_64; rv:126.0 Gecko/20100101 Firefox/126.0" "gladstonefamily.net | 188.143.169.41 |
Mozilla/5.0 X11; Ubuntu; Linux x86_64; rv:126.0 Gecko/20100101 Firefox/126.0" "pond1.gladstonefamily.net | 188.143.169.41 |