# US 2004/0205114 A1 · Enabling a web-crawling robot to collect information from web sites that tailor information content to the capabilities of accessing devices

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0205114 A1
- Document ID: US20040205114A1
- Status: Published application
- Kind: A1
- Application number: 10/751,767
- Filed: 2004-01-05
- Published: 2004-10-14
- Earliest claimed: 2003-02-25
- Assignees: International Business Machines Corporation
- Inventors: Takafumi Kinoshita
- Web page: https://patentgrep.com/patent/US20040205114A1

## CPC

- G06F 16/951: Indexing; Web crawling techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A web-crawling robot retrieves information from a web server that tailors information content to the capability of an accessing device. A link deriving unit in a proxy server for relaying data exchanged between the robot and the site analyzes a response from the site to the robot, and acquires information on a user agent corresponding to a particular kind of content of a link destination. On the basis of the information, a user agent information editing unit in the proxy server adds user agent information to the content retrieval request from the web-crawling robot to the site so as to disguise it as a content retrieval request issued from a given user agent, thereby acquiring a response corresponding to capabilities of the user agent.

## Claims

### Claim 1

A server, comprising:
a proxy function unit for relaying data exchanged between a web server site on a network and a web-crawling robot collecting contents by accessing the site;
a link deriving unit for expanding a link and acquiring information on a user agent corresponding to content of a link destination when said proxy function unit receives a response from the site to a content retrieval request issued from said web-crawling robot to said site and if a link destination of the link included in the response has dynamic content that differs according to a type of user agent which is an access source; and
a user agent information editing unit for converting user agent information included in the content retrieval request to user agent information corresponding to said content of the link destination when said proxy function unit receives the content retrieval request from said web-crawling robot issued based on derived links.

### Claim 2 (depends on 1)

The server according to claim 1, further comprising a database for associating and registering location information of content that varies according to the type of accessing user agent and the user agent information corresponding to said content, wherein said link deriving unit searches said database using the location information of the link destination of the link included in the response as an argument to acquire the information for said user agent, and said user agent information editing unit converts the user agent information included in said content retrieval request to said user agent information obtained from said database.

### Claim 3 (depends on 1)

The server according to claim 1, wherein said server is included in a server machine that hosts the web-crawling robot.

### Claim 4 (depends on 1)

The server according to claim 1, wherein said server is included in a server machine that hosts the web server site.

### Claim 5 (depends on 1)

The server according to claim 1, wherein said server is provided on a different server machine from the server hosting said web-crawling robot and the server hosting said web server site.

### Claim 6

A server, comprising:
first transmitter-receiver means for exchanging data with a web-crawling robot;
editing means for disguising user agent information included in a request from said web-crawling robot to a web site, received by said first transmitter-receiver means, as a content retrieval request issued by a given user agent; and
second transmitter-receiver means for exchanging data with said site and sending user agent information disguised by said editing means to said destination site.

### Claim 7 (depends on 6)

The server according to claim 6, further comprising analysis means for analyzing a response from said site to said web-crawling robot, received by said second transmitter-receiver means, wherein said editing means designates the given user agent on the basis of the information analyzed by said analysis means and converts the user agent information of said content retrieval request to the user agent information of said given user agent.

### Claim 8 (depends on 7)

The server according to claim 7, when said analysis means replaces link destination information of a hyperlink with dummy information including identification information for identifying the user agent corresponding to the content of the link destination to cause said first transmitter-receiver means to send the hyperlink to said web-crawling robot, if the link destination of the link included in the response has content that varies according to a type of user agent which is an access source,
and said editing means restores said dummy information to original link destination information, when said first transmitter-receiver means receives a content retrieval request issued from said web-crawling robot with said dummy information as a destination, and converts the user agent information included in said content retrieval request to the user agent information of the user agent designated by said identification information included in said dummy information.

### Claim 9

A server, comprising:
a proxy function unit for relaying data exchanged between a web site on a network and a web-crawling robot collecting information by accessing the web site;
a link deriving unit for replacing uniform resource locators (URLs) of a destination of a link included in a response, from the web site to a content retrieval request issued from said web-crawling robot, with substitute URLs individually corresponding to said user agent corresponding to a web content concerned when said proxy function unit receives a response from the web site and if the link destination of the link included in the response has web content that varies according to a type of user agent which is an access source;
a URL conversion unit for replacing the substitute URL with the original URL of the link destination when said proxy function unit receives a content retrieval request issued from said web-crawling robot to said substitute URL as a destination; and
a user agent information editing unit for converting user agent information in a hypertext transfer protocol header of the content retrieval request to said user agent information corresponding to the substitute URL when said proxy function unit receives the content retrieval request to said alternate URL as a destination.

### Claim 10 (depends on 9)

The server according to claim 9, further comprising a database for associating and registering a URL of web content that individually returns different responses according to the type of user agent which is the access source, the user agent information corresponding to said web content, and a substitute URL individually corresponding to said user agent, wherein:
said link deriving unit searches said database to acquire said substitute URL, using, as a search argument, the URL of the link destination of the link included in the response from said web site to a content retrieval request from said web-crawling robot;
said URL conversion unit searches said database to acquire the URL of the original link destination using, as a search argument, said substitute URL in the content retrieval request issued from said web-crawling robot to said substitute URL as the destination; and
said user agent information editing unit searches said database with said substitute URL in the content retrieval request issued from said web-crawling robot to said substitute URL as the destination to acquire the corresponding information of said user agent.

### Claim 11

An method of collecting information from a web site on a network by using a computer connected thereto, comprising:
receiving a response from the site to a content retrieval request and, if a link destination of a link included in the received response has content that varies according to a type of user agent which is an access source, expanding the link and acquiring information on a user agent corresponding to the content of the link destination;
sending a content retrieval request disguised as a content retrieval request issued from said user agent to said link destination of the link included in said response on the basis of said user agent information; and
acquiring a response according to the type of user agent from said link destination.

### Claim 12 (depends on 11)

The method according to claim 11, wherein said receiving step comprises searching a database that associates and registers the location information of the content that varies according to the type of user agent and the information on said user agent corresponding to said content, using, as a search argument, the location information of the link destination of the link included in said response, to acquire the information on said user agent.

### Claim 13

A method for collecting information from a site on a network by using a computer connected thereto, comprising:
receiving a response from the site to a content retrieval request issued from a given web-crawling robot and, if a link destination of a link included in the received response has web content that varies according to a type of user agent which is an access source, replacing a URL which is the link destination of the link included in the response with a substitute URL individually corresponding to said user agent corresponding to the web content and sending the response to the web-crawling robot;
receiving the content retrieval request issued from said web-crawling robot to said substitute URL as a destination, replacing said substitute URL with the original link destination URL, converting user agent information at an HTTP header of the content retrieval request to information on said user agent corresponding to the substitute URL, and sending the content retrieval request to the link destination; and
receiving a response from said link destination to said content retrieval request whose user agent information was converted, adding identification information of the user agent to the response, and sending the response to said web-crawling robot.

### Claim 14

A program product for controlling a computer connected to a network, the program enabling the computer to serve as:
transmitter-receiver means for relaying data exchanged between a site on said network and a web-crawling robot;
link expansion means for receiving a response from the site to a content retrieval request issued from said web-crawling robot by using said transmitter-receiver means and, if a link destination of a link included in the response has content that varies according to a type of user agent which is an access source, expanding the link and acquiring information on the user agent corresponding to the content of the link destination; and
user agent information editing means for converting user agent information included in the content retrieval request to said user agent information corresponding to said content of the link destination when said transmitter-receiver means receives the content retrieval request from said web-crawling robot issued, based on said expanded link.

### Claim 15

A program product for controlling a computer connected to a network, the program enabling the computer to serve as:
transmitter-receiver means for relaying data exchanged between a web site on the network and a web-crawling robot collecting information by accessing the web site;
link expansion means for receiving a response from the web site to a content retrieval request issued from said web-crawling robot site by using said transmitter-receiver means and, if a link destination of a link included in the response has web content that varies according to a type of user agent which is an access source, replacing a URL of the link destination of the link included in the response with a substitute URL individually corresponding to said user agent corresponding to the web content;
URL conversion means for replacing the substitute URL with the original link destination URL when said transmitter-receiver means receives the content retrieval request issued from said web-crawling robot to said substitute URL as a destination; and
user agent information editing means for converting user agent information in an HTTP header of the content retrieval request to information on said user agent corresponding to the substitute URL when said transmitter-receiver means receives the content retrieval request issued from said web-crawling robot to said substitute URL as a destination.

### Claim 16 (depends on 15)

The program product according to claim 15, wherein said link expansion means implemented by said program searches a database that associates and registers the URL of the web content that individually returns responses according to the type of user agent which is the access source, the information on said user agent corresponding to said web content, and the substitute URL individually corresponding to the user agent with the URL of the link destination of the link included in said response from said web site to a content retrieval request from said web-crawling robot to said web site as an argument, to acquire said substitute URL, said URL conversion means implemented by said program searches said database with said substitute URL in the content retrieval request issued from said web-crawling robot to said substitute URL as a destination as an argument to acquire the original URL of link destination;
said user agent information editing means implemented by said program searches said database with said substitute URL in the content retrieval request issued from said web-crawling robot to said substitute URL as a destination as an argument to acquire the corresponding information of said user agent.
