Information Retrieval and Web Search

Similar documents
Web Search. Web Spidering. Introduction

12. Web Spidering. These notes are based, in part, on notes by Dr. Raymond J. Mooney at the University of Texas at Austin.

Today s lecture. Basic crawler operation. Crawling picture. What any crawler must do. Simple picture complications

Today s lecture. Information Retrieval. Basic crawler operation. Crawling picture. What any crawler must do. Simple picture complications

Crawling CE-324: Modern Information Retrieval Sharif University of Technology

CS47300: Web Information Search and Management

CS47300: Web Information Search and Management

Administrivia. Crawlers: Nutch. Course Overview. Issues. Crawling Issues. Groups Formed Architecture Documents under Review Group Meetings CSE 454

Crawling the Web. Web Crawling. Main Issues I. Type of crawl

Text Technologies for Data Science INFR11145 Web Search Walid Magdy Lecture Objectives

Collection Building on the Web. Basic Algorithm

Introduction to Information Retrieval

Information Retrieval Spring Web retrieval

CS 572: Information Retrieval

Web Crawling. Introduction to Information Retrieval CS 150 Donald J. Patterson

Administrative. Web crawlers. Web Crawlers and Link Analysis!

Information Retrieval. Lecture 10 - Web crawling

Information Retrieval May 15. Web retrieval

Search Engines. Information Retrieval in Practice

Search Engines. Charles Severance

How Does a Search Engine Work? Part 1

Crawling. CS6200: Information Retrieval. Slides by: Jesse Anderton

CS6200 Information Retreival. Crawling. June 10, 2015

Information Retrieval

Web Crawling. Jitali Patel 1, Hardik Jethva 2 Dept. of Computer Science and Engineering, Nirma University, Ahmedabad, Gujarat, India

Data Collection & Data Preprocessing

Search Engine Technology. Mansooreh Jalalyazdi

Agenda. 1 Web search. 2 Web search engines. 3 Web robots, crawler. 4 Focused Web crawling. 5 Web search vs Browsing. 6 Privacy, Filter bubble

World Wide Web has specific challenges and opportunities

SEARCH ENGINE INSIDE OUT

Mining Web Data. Lijun Zhang

Topic: Duplicate Detection and Similarity Computing

FAQ: Crawling, indexing & ranking(google Webmaster Help)

Information Networks. Hacettepe University Department of Information Management DOK 422: Information Networks

Information Retrieval on the Internet (Volume III, Part 3, 213)

Plan for today. CS276B Text Retrieval and Mining Winter Evolution of search engines. Connectivity analysis

DATA MINING II - 1DL460. Spring 2014"

Searching the Web What is this Page Known for? Luis De Alba

The Anatomy of a Large-Scale Hypertextual Web Search Engine

DATA MINING - 1DL105, 1DL111

Web Crawling. Advanced methods of Information Retrieval. Gerhard Gossen Gerhard Gossen Web Crawling / 57

Web Search Basics. Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University

CRAWLING THE WEB: DISCOVERY AND MAINTENANCE OF LARGE-SCALE WEB DATA

I. INTRODUCTION. Fig Taxonomy of approaches to build specialized search engines, as shown in [80].

Relevant?!? Algoritmi per IR. Goal of a Search Engine. Prof. Paolo Ferragina, Algoritmi per "Information Retrieval" Web Search

CS 347 Parallel and Distributed Data Processing

CS 347 Parallel and Distributed Data Processing

Corso di Biblioteche Digitali

Lecture 9: I: Web Retrieval II: Webology. Johan Bollen Old Dominion University Department of Computer Science

Corso di Biblioteche Digitali

Chapter 2: Literature Review

Crawling and Mining Web Sources

FILTERING OF URLS USING WEBCRAWLER

Web Search Basics. Berlin Chen Department t of Computer Science & Information Engineering National Taiwan Normal University

You got a website. Now what?

data analysis - basic steps Arend Hintze

Logistics. CSE Case Studies. Indexing & Retrieval in Google. Review: AltaVista. BigTable. Index Stream Readers (ISRs) Advanced Search

Digital Marketing. Introduction of Marketing. Introductions

Review of Seo-made-easy.com

Desktop Crawls. Document Feeds. Document Feeds. Information Retrieval

A crawler is a program that visits Web sites and reads their pages and other information in order to create entries for a search engine index.

Designing is the most important phase of software development. It requires

Information Retrieval (IR) Introduction to Information Retrieval. Lecture Overview. Why do we need IR? Basics of an IR system.

A Survey on Web Information Retrieval Technologies

Review of Wordpresskingdom.com

Around the Web in Six Weeks: Documenting a Large-Scale Crawl

Mining Web Data. Lijun Zhang

Crawler. Crawler. Crawler. Crawler. Anchors. URL Resolver Indexer. Barrels. Doc Index Sorter. Sorter. URL Server

DATA MINING II - 1DL460. Spring 2017

AN OVERVIEW OF SEARCHING AND DISCOVERING WEB BASED INFORMATION RESOURCES

THE HISTORY & EVOLUTION OF SEARCH

URLs excluded by REP may still appear in a search engine index.

Information Retrieval

Web Search Ranking. (COSC 488) Nazli Goharian Evaluation of Web Search Engines: High Precision Search

Large Crawls of the Web for Linguistic Purposes

Google Search Appliance

EECS 395/495 Lecture 5: Web Crawlers. Doug Downey

: Semantic Web (2013 Fall)

A SURVEY ON WEB FOCUSED INFORMATION EXTRACTION ALGORITHMS

USER MANUAL. SEO Hub TABLE OF CONTENTS. Version: 0.1.1

OnCrawl Metrics. What SEO indicators do we analyze for you? Dig into our board of metrics to find the one you are looking for.

Crawlers - Introduction

A web directory lists web sites by category and subcategory. Web directory entries are usually found and categorized by humans.

EXTRACTION OF RELEVANT WEB PAGES USING DATA MINING

SEOHUNK INTERNATIONAL D-62, Basundhara Apt., Naharkanta, Hanspal, Bhubaneswar, India

Review of Cormart-nigeria.com

Only applies where the starting URL specifies a starting location other than the root folder. For example:

A Novel Interface to a Web Crawler using VB.NET Technology

Google Search Appliance

UNIT-V WEB MINING. 3/18/2012 Prof. Asha Ambhaikar, RCET Bhilai.

CHAPTER 4 PROPOSED ARCHITECTURE FOR INCREMENTAL PARALLEL WEBCRAWLER

INTRODUCTION. Chapter GENERAL

SEO EXTENSION FOR MAGENTO 2

Welcome to the class of Web Information Retrieval!

Running Head: HOW A SEARCH ENGINE WORKS 1. How a Search Engine Works. Sara Davis INFO Spring Erika Gutierrez.

PROJECT REPORT (Final Year Project ) Project Supervisor Mrs. Shikha Mehta

Google Search Appliance

Review of Meltmethod.com

Search Engine Optimization (SEO) & Your Online Success

CC PROCESAMIENTO MASIVO DE DATOS OTOÑO 2018

Transcription:

Information Retrieval and Web Search Web Crawling Instructor: Rada Mihalcea (some of these slides were adapted from Ray Mooney s IR course at UT Austin)

The Web by the Numbers Web servers 634 million Users worldwide 2.4 billion Size of the Web 5,000,000 TB (geekwire.com) About 20% text 7,500 TB in deep Web Search 1.2 trillion searches on Google in 2012 http://royal.pingdom.com/2013/01/16/internet-2012-in-numbers/

The Web by the Numbers Emails Total emails per day 154 billion (radicati.com) Percentage spam 64.8% Social media: Active users on Facebook 1 billion Active users on Twitter 200 million Number of smartphone subscribers 1.1 billion http://royal.pingdom.com/2013/01/16/internet-2012-in-numbers/

Top Ten Languages on the Web Russia 3% Other 18% English 27% Korean 2% Portughese 4% Arabic 3% German 4% French 3% Japanese 5% Spanish 8% Chinese 23% internetworldstats.com ~ updated May 31, 2011

Language Growth over the Last Decade Russian 1826% Korean 107% Rest of the Languages 589% English 301% Chinese 1479% Spanish 807% Japanese 110.70% French 398% Portuguese 990% Arabic 2501% German 174% internetworldstats.com ~ updated May 31, 2011

Web Challenges for IR Distributed Data: Documents spread over millions of different web servers. Volatile Data: Many documents change or disappear rapidly (e.g. dead links). Large Volume: Billions of separate documents. Unstructured and Redundant Data: No uniform structure, HTML errors, up to 30% (near) duplicate documents. Quality of Data: No editorial control, false information, poor quality writing, typos, etc. Heterogeneous Data: Multiple media types (images, video, VRML), languages, character sets, etc.

Web Search Using IR Web Crawler Document corpus Query String IR System the crawler represents the main difference compared to traditional IR 1. Page1 2. Page2 3. Page3.. Ranked Documents

Crawlers (Robots/Bots/Spiders) Start with a comprehensive set of root URLs Follow all links on these pages recursively to find additional pages. Index/Process all novel found pages in an inverted index as they are encountered. May allow users to directly submit pages to be indexed (and crawled from).

What any Crawler Must Do Sec. 20.1.1 Be Polite: Respect implicit and explicit politeness considerations Only crawl allowed pages Respect robots.txt (more on this shortly) Be Robust: Be immune to spider traps and other malicious behavior from web servers 8

What any Crawler Should Do Sec. 20.1.1 Be capable of distributed operation: designed to run on multiple distributed machines Be scalable: designed to increase the crawl rate by adding more machines Performance/efficiency: permit full use of available processing and network resources 9

What any Crawler Should Do Sec. 20.1.1 Fetch pages of higher quality first Continuous operation: Continue fetching fresh copies of a previously fetched page Extensible: Adapt to new data formats, protocols

Crawling Picture Sec. 20.1.1 URLs crawled and parsed Unseen Web Seed Pages URL frontier Crawling thread 11

Processing Steps in Crawling Sec. 20.2.1 Pick a URL from the frontier Fetch the document at the URL Parse the URL Extract links from it to other docs (URLs) Check if URL has content already seen If not, add to indexes Which one? E.g., only crawl.edu, obey robots.txt, etc. For each extracted URL Ensure it passes certain URL filter tests Check if it is already in the frontier (duplicate URL elimination) 12

Sec. 20.2.1 Basic Crawl Architecture DNS Doc FP s robots filters URL set WWW Fetch Parse Content seen? URL filter Dup URL elim URL Frontier 13

DNS (Domain Name Server) Sec. 20.2.2 A lookup service on the internet Given a URL, retrieve its IP address Service provided by a distributed set of servers thus, lookup latencies can be high (even seconds) Common OS implementations of DNS lookup are blocking: only one outstanding request at a time Biggest bottleneck in Web crawling Solutions DNS caching Batch DNS resolver collects requests and sends them out together 14

Traversal Strategies The Web is a graph Graph traversal strategies Breadth-first explores uniformly outward from the root page but requires memory of all nodes on the previous level (exponential in depth). Standard crawling method. Depth-first requires memory of only depth times branching-factor (linear in depth) but gets lost pursuing a single thread. Both strategies can be easily implemented using a queue of links (URLs).

Traversal Algorithm Initialize queue (Q) with initial set of known URLs. Until Q empty or page or time limit exhausted: Pop URL, L, from front of Q. If L is not to an HTML page (.gif,.jpeg,.ps,.pdf,.ppt ) continue loop. If already visited L, continue loop. Download page, P, for L. If cannot download P (e.g. 404 error, robot excluded) continue loop. Index P (e.g. add to inverted index or store cached copy). Parse P to obtain list of new links N. Append N to the end of Q.

Queueing Strategy How new links are added to the queue determines search strategy. FIFO (append to end of Q) gives breadth-first search. LIFO (add to front of Q) gives depth-first search. Heuristically ordering the Q gives a focused crawler that directs its search towards interesting pages.

Directed/Focused Crawling Sort queue to explore more interesting pages first. Two styles of focus: Topic-Directed Link-Directed

Topic-Directed Crawling Assume desired topic description or sample pages of interest are given. Sort queue of links by the similarity (e.g. cosine metric) of their source pages and/or anchor text to this topic description. Related to Topic Tracking and Detection

Link-Directed Crawling Monitor links and keep track of in-degree and outdegree of each page encountered. Sort queue to prefer popular pages with many incoming links (authorities). Sort queue to prefer summary pages with many outgoing links (hubs). Related to Google s PageRank algorithm

Parsing and Link Extraction Must find all links in a page and extract URLs. <a href= http://web.eecs.umich.edu/~mihalcea/courses/498ir > <frame src= site-index.html > Must complete relative URLs using current page URL: <a href= proj3 > to http://web.eecs.umich.edu/~mihalcea/courses/498ir/proj3 <a href=../cs5343/syllabus.html > to http://web.eecs.umich.edu/ ~mihalcea/courses/cs5343/syllabus.html

URL Syntax A URL has the following syntax: <scheme>://<authority><path>?<query>#<fragment> A query passes variable values from an HTML form and has the syntax: <variable>=<value>&<variable>=<value> A fragment is also called a reference or a ref and is a pointer within the document to a point specified by an anchor tag of the form: <A NAME= <fragment> >

Link Canonicalization Equivalent variations of ending directory normalized by removing ending slash. http://web.eecs.umich.edu/~mihalcea/courses/498ir http://web.eecs.umich.edu/~mihalcea/courses/498ir/ Internal page fragments (references) removed: http://web.eecs.umich.edu/~mihalcea/welcome.html#courses http://web.eecs.umich.edu/~mihalcea/welcome.html

Anchor Text Indexing Extract anchor text (between <a> and </a>) of each link followed. Increases content more for popular pages with many in-coming links, increasing recall of these pages. Anchor text is usually descriptive of the document to which it points. Sometimes anchor text is not useful: e.g., click here Add anchor text to the content of the destination page to provide additional relevant keyword indices. Used by Google: <a href= http://www.microsoft.com >Evil Empire</a> <a href= http://www.ibm.com >IBM</a>

Restricting Crawling You can restrict crawler to a particular site. Remove links to other sites from Q. You can restrict crawler to a particular directory. Remove links not in the specified directory. Obey page-owner restrictions (robot exclusion).

Sec. 20.2 Crawler Politeness Explicit politeness: specifications from webmasters on what portions of site can be crawled robots.txt Implicit politeness: even with no specification, avoid hitting any site too often 26

Robot Exclusion Web sites and pages can specify that robots should not crawl/index certain areas. Two components: Robots Exclusion Protocol: Site wide specification of excluded directories. Robots META Tag: Individual document tag to exclude indexing or following links.

Robots Exclusion Protocol Site administrator puts a robots.txt file at the root of the host s web directory. http://www.ebay.com/robots.txt http://www.cnn.com/robots.txt File is a list of excluded directories for a given robot (user-agent). Exclude all robots from the entire site: User-agent: * Disallow: /

Robot Exclusion Protocol Examples Exclude specific directories: User-agent: * Disallow: /tmp/ Disallow: /cgi-bin/ Disallow: /users/paranoid/ Exclude a specific robot: User-agent: GoogleBot Disallow: / Allow a specific robot: User-agent: GoogleBot Disallow:

Robot Exclusion Protocol Details Only use blank lines to separate different User-agent disallowed directories. One directory per Disallow line. No regex patterns in directories.

Robots META Tag Include META tag in HEAD section of a specific HTML document. <meta name= robots content= none > Content value is a pair of values for two aspects: index noindex: Allow/disallow indexing of this page. follow nofollow: Allow/disallow following links on this page.

Robots META Tag Special values: all = index,follow none = noindex,nofollow Examples: <meta name= robots content= noindex,follow > <meta name= robots content= index,nofollow > <meta name= robots content= none >

Robot Exclusion Issues META tag is newer and less well-adopted than robots.txt Standards are conventions to be followed by good robots. Companies have been prosecuted for disobeying these conventions and trespassing on private cyberspace.

Avoiding Page Duplication The web is full of duplicated content Must detect when revisiting a page that has already been crawled (web is a graph not a tree). Must efficiently index visited pages to allow rapid recognition test. Tree indexing (e.g. trie) Hashtable Index page using URL as a key. Must normalize URLs (e.g. delete ending / ) Index page using textual content as a key. Requires first downloading page.

Near-Duplicates Sec. 19.6 There are also many cases of near duplicates E.g., Last modified date the only difference between two copies of a page Near-Duplication: Approximate match Compute syntactic similarity with an edit-distance measure Use similarity threshold to detect near-duplicates E.g., Similarity > 90% => Documents are near duplicates

Computing Document Similarity Sec. 19.6 Features: Segments of a document (natural or artificial breakpoints) Shingles (Word N-Grams) a rose is a rose is a rose 4-grams are a_rose_is_a rose_is_a_rose is_a_rose_is a_rose_is_a Similarity Measure between two docs (= two sets of shingles) Set intersection Specifically (Size_of_Intersection / Size_of_Union) (Jaccard)

Multi-Threaded Spidering Bottleneck is network delay in downloading individual pages. Best to have multiple threads running in parallel each requesting a page from a different host. Distribute URLs to threads to guarantee equitable distribution of requests across different hosts to maximize through-put and avoid overloading any single server. Early Google spider had multiple co-ordinated crawlers with about 300 threads each, together able to download over 100 pages per second.

Keeping Crawled Pages Up to Date Web is very dynamic: many new pages, updated pages, deleted pages, etc. Periodically check crawled pages for updates and deletions: Just look at header info (e.g. META tags on last update) to determine if page has changed, only reload entire page if needed. Track how often each page is updated and preferentially return to pages which are historically more dynamic. Preferentially update pages that are accessed more often to optimize freshness of more popular pages.