谷歌爬虫主要是用C++开发吗
从谷歌创始人的论文《The Anatomy of a Large-Scale Hypertextual Web Search Engine》里可以看到,谷歌一开始的爬虫是用Python写的。http://infolab.stanford.edu/pub/papers/google.pdf4.3 Crawling the WebIn order to scale to hundreds of millions of web pages, Google has a fast distributed crawling system. A single URLserver serves lists of URLs to a number of crawlers (we typically ran about 3). Both the URLserver and the crawlers are implemented in Python. Each crawler keeps roughly 300 connections open at once. This is necessary to retrieve web pages at a fast enough pace. At peak speeds, the system can crawl over 100 web pages per second using four crawlers. This amounts to roughly 600K per second of data. A major performance stress is DNS lookup. Each crawler maintains a its own DNS cache so it does not need to do a DNS lookup before crawling each document. Each of the hundreds of connections can be in a number of different states: looking up DNS, connecting to host, sending request, and receiving response. These factors make the crawler a complex component of the system. It uses asynchronous IO to manage events, and a number of queues to move page fetches from state to state.据说现在改成了C++,但是我没有找到明确的材料。
■网友
目前是的Why did Google move from Python to C++ for use in its crawler?
推荐阅读
- python 爬虫,咋获得输入验证码之后的搜索结果
- 为啥无听过电子钱咭被不法分子破解?
- 营销型外贸网站用哪种建站程序和语言比较好呢主要是适合优化,可扩展兼容性,安全性,后期网站扩展升级
- 1、相同的网址,为啥浏览器http和https都能登录,而爬虫不行\n2、网页下载内容不全
- 从未接触过软件测试和java,可以学习主要是自学这两种其一吗
- 谷歌智能隐形眼镜怎样实现
- 为啥谷歌翻译会把「海底两万里」翻译成「Haideliangmoli」
- 汽车知识|形式大于内容,长安CS75百万版上市,中期改款主要是换壳
- ucloud售前架构师怎样在销售团队里面的职责主要是啥
- 孩子|其实主要是父母的这4个习惯造成的孩子口臭、积食、爱生病