<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>web-crawling on S Anand</title>
    <link>https://www.s-anand.net/blog/tag/web-crawling/</link>
    <description>Recent content in web-crawling on S Anand</description>
    <generator>Hugo -- 0.164.0</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 31 Aug 2008 12:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.s-anand.net/blog/tag/web-crawling/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Attack of the bots</title>
      <link>https://www.s-anand.net/blog/attack-of-the-bots/</link>
      <pubDate>Sun, 31 Aug 2008 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/attack-of-the-bots/</guid>
      <description>&lt;p&gt;One out of every 5 hits to my site is from a &lt;a href=&#34;http://en.wikipedia.org/wiki/Internet_bot&#34;&gt;bot&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I spent a fair bit of time this weekend analysing my log file for last month (which runs to gigabytes, and I ended up learning a few things about file system optimisation, but more on that later). 80% of the hits were from regular browsers. 20% were from robots. Here&#39;s a sample of the user-agents:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Mozilla/5.0 (compatible; Yahoo! Slurp; &amp;lt;a href=&amp;#34;http://help.yahoo.com/help/us/ysearch/slurp)&amp;#34;&amp;gt;http://help.yahoo.com/help/us/ysearch/slurp)&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Mozilla/5.0 (compatible; Googlebot/2.1; +&amp;lt;a href=&amp;#34;http://www.google.com/bot.html)&amp;#34;&amp;gt;http://www.google.com/bot.html)&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Mediapartners-Google
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;DotBot/1.0.1 (&amp;lt;a href=&amp;#34;http://www.dotnetdotcom.org/#info&amp;#34;&amp;gt;http://www.dotnetdotcom.org/#info&amp;lt;/a&amp;gt;, crawler@dotnetdotcom.org)
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Mozilla/5.0 (Twiceler-0.9 &amp;lt;a href=&amp;#34;http://www.cuill.com/twiceler/robot.html)&amp;#34;&amp;gt;http://www.cuill.com/twiceler/robot.html)&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;msnbot/1.1 (+&amp;lt;a href=&amp;#34;http://search.msn.com/msnbot.htm)&amp;#34;&amp;gt;http://search.msn.com/msnbot.htm)&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;FeedBurner/1.0 (&amp;lt;a href=&amp;#34;http://www.FeedBurner.com)&amp;#34;&amp;gt;http://www.FeedBurner.com)&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Mozilla/5.0 (compatible; attributor/1.13.2 +&amp;lt;a href=&amp;#34;http://www.attributor.com)&amp;#34;&amp;gt;http://www.attributor.com)&amp;lt;/a&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;WebAlta Crawler/2.0 (&amp;lt;a href=&amp;#34;http://www.webalta.net/ru/about_webmaster.html)&amp;#34;&amp;gt;http://www.webalta.net/ru/about_webmaster.html)&amp;lt;/a&amp;gt; (Windows; U; Windows NT 5.1; ru-RU)
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Yandex/1.01.001 (compatible; Win16; I)
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;...
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You get the idea. The bulk of these are search engines. Over two-thirds of the bot requests were from &lt;a href=&#34;http://help.yahoo.com/l/us/yahoo/search/webcrawler/&#34;&gt;Yahoo Slurp&lt;/a&gt;. Now, this struck me as weird. If I take the top 3 search engines that are sending traffic my way, &lt;/p&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&amp;#160;&lt;/td&gt;&lt;td&gt;Referral %&lt;/td&gt;&lt;td&gt;Crawl %&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://www.google.com/&#34;&gt;Google&lt;/a&gt;&lt;/td&gt;&lt;td&gt;90%&lt;/td&gt;&lt;td&gt;24%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://search.yahoo.com/&#34;&gt;Yahoo&lt;/a&gt;&lt;/td&gt;&lt;td&gt;6%&lt;/td&gt;&lt;td&gt;66%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://search.live.com/&#34;&gt;Microsoft&lt;/a&gt;&lt;/td&gt;&lt;td&gt;3%&lt;/td&gt;&lt;td&gt;0.3%&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Others&lt;/td&gt;&lt;td&gt;1%&lt;/td&gt;&lt;td&gt;9%&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;The search engine that sends me the most traffic is being reasonably conservative, while Yahoo is just eating up the bandwidth on my site. Actually, this shouldn&#39;t bother me too much. It&#39;s not taking up too much bandwidth, or even CPU usage, given that all the bots put together make up only 20% of my traffic. But somehow... it&#39;s sub-optimal. Inelegant, even.&lt;/p&gt;
&lt;p&gt;So I decided to take a closer look. Just how often are they crawling my site?&lt;/p&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://search.yahoo.com/&#34;&gt;Yahoo&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;i&gt;Every 5 seconds&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://www.google.com/&#34;&gt;Google&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Every 13 seconds&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://www.dotnetdotcom.org/#info&#34;&gt;DotBot&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Every 9 minutes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://www.cuill.com/twiceler/robot.html&#34;&gt;Cuill&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Every 9 minutes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://search.live.com/&#34;&gt;Microsoft&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Every 18 minutes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://www.FeedBurner.com&#34;&gt;Feedburner&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Every 18 minutes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://www.attributor.com/&#34;&gt;Attributor&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Every 23 minutes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;a href=&#34;http://www.yandex.ru/&#34;&gt;Yandex&lt;/a&gt;&lt;/td&gt;&lt;td&gt;Every 27 minutes&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Look at those numbers. Yahoo is hitting my site once &lt;b&gt;&lt;i&gt;every 5 seconds&lt;/i&gt;&lt;/b&gt;. No wonder there&#39;s a help page at Yahoo titled &lt;a href=&#34;http://help.yahoo.com/l/us/yahoo/search/webcrawler/slurp-03.html&#34;&gt;How can I reduce the number of requests you make on my web site?&lt;/a&gt; I followed their advice and set the crawl-delay to 60, so at least it slows down to once a minute. &lt;/p&gt;
&lt;p&gt;Just that one little line change should (hopefully) reduce the load on my site by around 15%.&lt;/p&gt;
&lt;p&gt;As for the other engines, I don&#39;t mind that much in terms of load.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Google, for all that it crawls every 13 seconds, has faithfully reported that it has only 11% of my site under its index, so I&#39;ve no idea what they&#39;re doing, but I&#39;m not complaining about the traffic that&#39;s coming my way.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&#34;http://www.dotnetdotcom.org/#info&#34;&gt;DotBot&lt;/a&gt;. Today was the first I&#39;d heard of them. Visited the site, and smiled. These guys can do all the crawling of my site that they like, and I hope something interesting comes out of their work.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&#34;http://www.cuill.com/twiceler/robot.html&#34;&gt;Cuill&lt;/a&gt;, sends me 0.2% of my traffic, but it&#39;s a new search engine, I&#39;m happy to give it time.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&#34;http://search.live.com/&#34;&gt;Microsoft&lt;/a&gt;&#39;s OK, sends me a tiny stream of traffic.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&#34;http://www.FeedBurner.com&#34;&gt;Feedburner&lt;/a&gt; is just pinging my RSS feed every 18 minutes. &lt;/li&gt;
  &lt;li&gt;&lt;a href=&#34;http://www.attributor.com/&#34;&gt;Attributor&lt;/a&gt; and &lt;a href=&#34;http://www.yandex.ru/&#34;&gt;Yandex&lt;/a&gt; I&#39;m hearing of for the first time, again. Not too much load on a system, so that&#39;s OK.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;p&gt;What&#39;s amazing is the sheer number of bots out there. Last month, I counted over 600 distinct &lt;a href=&#34;http://en.wikipedia.org/wiki/User_agent&#34;&gt;user-agent&lt;/a&gt; strings just representing bots. So it&#39;s true. The Web is &lt;a href=&#34;http://en.wikipedia.org/wiki/Semantic_web#Purpose&#34;&gt;no longer just for humans&lt;/a&gt;. We do need a &lt;a href=&#34;http://en.wikipedia.org/wiki/Semantic_Web&#34;&gt;Semantic Web&lt;/a&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments&lt;/h2&gt;
&lt;!-- wp-comments-start --&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Dhar&lt;/strong&gt; &lt;em&gt;31 Aug 2008 9:09 pm&lt;/em&gt;:
Hmmm, curious as to:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Why the bots should crawl your site every 5 seconds or so?&lt;/li&gt;
&lt;li&gt;How you can find out how much of your site has been indexed by Google.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Cheers,
D.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;S Anand&lt;/strong&gt; &lt;em&gt;1 Sep 2008 12:11 am&lt;/em&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I think Yahoo&amp;rsquo;s crawler is aggressive in any case. My site doesn&amp;rsquo;t seem to be an exception: there are a lot of threads discussing this problem.&lt;/li&gt;
&lt;li&gt;Google&amp;rsquo;s webmaster tools tells you how many URLs have been indexed from your sitemap.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- wp-comments-end --&gt;
</description>
    </item>
    <item>
      <title>Google Sitemaps</title>
      <link>https://www.s-anand.net/blog/google-sitemaps/</link>
      <pubDate>Wed, 08 Jun 2005 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/google-sitemaps/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.google.com/webmasters/sitemaps/&#34;&gt;Google Sitemaps&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&amp;hellip;is an experiment in web crawling. Using Sitemaps to inform and direct our crawlers, we hope to expand our coverage of the web and improve the time to inclusion in our index. By placing a Sitemap-formatted file on your webserver, you enable our crawlers to find out what pages are present and which have recently changed, and to crawl your site accordingly.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Anil Dash links to &lt;a href=&#34;http://www.dashes.com/anil/2005/06/07/so_youd_like_&#34;&gt;alternate proposals&lt;/a&gt;. &lt;a href=&#34;http://www.jacobsen.no/anders/blog/archives/2005/06/06/google_sitemaps_for_movable_type_now_with_correct_last_modified_dates.html&#34;&gt;via Anders Jacobs&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>About PageRank</title>
      <link>https://www.s-anand.net/blog/about-pagerank/</link>
      <pubDate>Mon, 21 Apr 2003 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/about-pagerank/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://www.supportforums.org/pagerank&#34;&gt;About PageRank&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Google paper</title>
      <link>https://www.s-anand.net/blog/google-paper/</link>
      <pubDate>Fri, 22 Mar 2002 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/google-paper/</guid>
      <description>&lt;p&gt;The original &lt;a href=&#34;http://www-db.stanford.edu/~backrub/google.html&#34;&gt;Google paper&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
