Module 2 – Footprinting . Section 2.4: Web crawler / Spider.
A Web crawler:
• Also called as Spider / ant or automatic indexer or web scutter, is an Internet bot that browses the World Wide Web, copy all pages for the purpose of Web indexing, offline viewing
Crawling is the process of surfing the internet to get the required information about the target.
– The sites surfed can include the target’s website, blogs and social networks.
– Googlebot from Google, Bingbot form Bing crawl sites and index web pages.
– General purpose crawlers are
Web crawler behavior policies:
– Selection policy
– Re-visit policy
– Politeness policy
– Parallelization policy
Web Crawling - security
– Search engine ranking is possible by allowing search engine spiders to crawl and index websites.
– Robots.txt must be configured to exclude certain pages for better security.
Crawler identification/countermeasures
– Watch web server logs on who is crawling
– Stop unidentified crawlers, malicious ones and spambots.
Deep web crawling
• Google's Sitemaps protocol and mod oai are intended to allow discovery of deep web resources (dynamic pages)
• Googlebot: Web crawling is done on all text contained inside the hypertext content, tags, or text a href="URL"
Crawlers - general purpose
• Googlebot from Google
• Bingbot from Microsoft
• WebCrawler
• WebFountain by IBM
• World Wide Web Worm (WWWW) - inactive
• Yahoo! Slurp
• Others are FAST Crawler, Polybot, RBSE and Swiftbot etc.
Crawlers – open source
• Apache Nutch HTTrack
• Scrapy PHP-Crawler
• GNU Wget GRUB
• Heritrix mnoGoSearch
• news-please Open Search Server
• Sphinx ht://Dig
• Others include Frontera, Seeks, StormCrawler, Xapian, YaCy, Octoparse etc.
Apache Nutch is a highly extensible and scalable web crawler/fetcher.
• Robust and scalable – Nutch can run on a cluster.
• It is based on Apache Hadoop.
• Creative Commons Search implemented.
• Written in Java.
• Nutch is a well matured, production ready Web crawler.
WebCrawler is a metasearch engine that blends the top search results from Google Search and Yahoo! Search.
• WebCrawler is a registered trademark of InfoSpace, Inc.
PHP-Crawler is an open-source crawling script based on PHP and MySQL. Created to implement simple as possible local website search it became popular for small websites on shared hosting.
HTTrack is a free and open source Web crawler and offline browser, developed by Xavier Roche and is a free and easy-to-use offline browser utility.
HTTrack features
- Allows users to download/mirror World Wide Web sites from the Internet to a local computer.
- licensed under the GNU GPLv3
- Arranges the downloaded site by the original site's relative link-structure.
- Update an existing mirrored site and resume interrupted downloads.
- Configurable by options and by filters (include/exclude).
- There is a basic command line version to use scripts and cron jobs
- Two GUI versions available (WinHTTrack and WebHTTrack)
- WinHTTrack is the Windows (from Windows 2000 to Windows 10 and above) release of HTTrack, and WebHTTrack the Linux/Unix/BSD release.
Can follow the simple links generated with javascript and inside applets & flash
Scrapy is an open source and collaborative framework for extracting the data you need from websites.