# US 2024/0176829 A1 · Token-based authentication for a proxy web scraping service

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

- Number: US 2024/0176829 A1
- Document ID: US20240176829A1
- Status: Published application
- Kind: A1
- Application number: 18/535,911
- Filed: 2023-12-11
- Published: 2024-05-30
- Earliest claimed: 2021-07-08
- Assignees: Oxylabs, UAB
- Applicants: Oxylabs, UAB
- Inventors: Eivydas VILCINSKAS; Arnas PETRUŠKEVICIUS; Giedrius STALIORAITIS; Martynas JURAVICIUS; Rimantas STANKEVICIUS
- Web page: https://patentgrep.com/patent/US20240176829A1

## CPC

- G06F 16/951: Indexing; Web crawling techniques
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F 16/953: Querying, e.g. by the use of web search engines
- G06Q 10/105: Human resources
- H04L 63/0281: {Proxies}
- H04L 63/0807: {using tickets, e.g. Kerberos (cryptographic mechanisms or cryptographic arrangements for entity authentication using tickets or tokens H04L9/3213)}
- H04L 63/083: {using passwords (cryptographic mechanisms or cryptographic arrangements for entity authentication using a predetermined code H04L9/3226)}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/133: Protocols for remote procedure calls [RPC]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments disclose a system that allows for improved generation of web requests for scraping that, because of the nature of the requests and time and manner they are sent out, appear more organic, as in human generated, than conventional automated scraping systems. The system then manages how a client request to scrape a target website is made to the site, masking the request in a manner that makes it appear to the Web server as if the request is not generated by an automated system. In this way, by appearing more organic, Web servers may be less likely to block requests from the disclosed system or may take longer to block requests from the disclosed system. By avoiding Web servers blocking requests and extending the lifetime of IP proxies before they are blocked, embodiments can use a limited IP proxy address space more efficiently.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A computer-implemented method for determining which servers are available to process web scraping jobs, comprising:
obtaining, by a request intake manager, a first token indicating an identity of a client associated with credentials received with a first application programming interface (API) request from a client computing device, wherein the first API request specifies a target website to scrape and the first token is generated by an authentication service when the credentials are determined to be valid;
selecting, by the request intake manager, a database server to store, in a job database that stores statuses of web scraping jobs while the web scraping jobs are being executed, a job description generated based on the first API request from a plurality of database servers identified as enabled in a database server status table, wherein the plurality of database servers operate independently of one another and each database server is configured to manage data storage to at least a portion of the job database;
assigning, by the request intake manager, a job identifier to the job description, wherein the job identifier encodes an identifier for the selected database server;
transmitting, by the request intake manager, the job identifier to the client computing device; and
transmitting, by the request intake manager, the job identifier and the job description to the selected database server.

### Claim 22 (depends on 21)

The computer-implemented method of claim 21, further comprising:
storing, by the selected database server, the job identifier and the job description in the job database as a pending web scraping job to generate at least one web request to retrieve content as specified by the job description; and
placing, by the selected database server, the at least one web request on a central message queue of the web scraping system to be retrieved and executed by a scraper selected from a plurality of scrapers based on the target website.

### Claim 23 (depends on 22)

The computer-implemented method of claim 22, further comprising:
generating, by the scraper, at least one Hypertext Transfer Protocol (HTTP) request for the target website according to instructions in the selected scraper;
transmitting, by the scraper, the at least one HTTP request to the target website via a proxy selected from a group of proxies; and
in response to the at least one HTTP request, receiving, by the scraper, scraped content from the target website via the proxy; and
placing, by the scraper, the scraped content on the central message queue of the web scraping system to be retrieved by the selected database server and stored in the job database.

### Claim 24 (depends on 23)

The computer-implemented method of claim 23, further comprising:
obtaining, by the request intake manager, a second token indicating an identity of a client associated with credentials received with a second API request from a client computing device, wherein the second API request comprises a request to retrieve scraped data associated with the job identifier and the second token is generated by an authentication service when the credentials are determined to be valid;
determining, by the request intake manager, whether the first and second tokens indicate that the first and second API requests came from the client; and
when the first and second tokens indicate that the first and second API requests came from the client, returning, by the request intake manager, the scraped content associated with the job identifier.

### Claim 25 (depends on 21)

The computer-implemented method of claim 21, wherein the first and second tokens further comprise at least one of: a role of the client, a digital signature of the token, and services to which the client has subscribed.

### Claim 26 (depends on 21)

The computer-implemented method of claim 21, further comprising:
conducting, by the request intake manager, periodic health checks of each of the plurality of database servers; and
determining, by the request intake manager, whether each of the plurality of database servers are to be enabled or disabled in the database server status table based on the periodic health checks.

### Claim 27 (depends on 26)

The computer-implemented method of claim 26, wherein the periodic health checks comprise, for each of the plurality of database servers, performing at least one of:
connecting to the portion of the job database for the respective database server;
determining a number of messages queued within job queues for the respective database server to be stored in the job database; and
checking a connection between a server that receives API requests from client computing devices and the job queues for the respective database server.

### Claim 28 (depends on 26)

The computer-implemented method of claim 26, further comprising:
determining, by the request intake manager, whether a number of database servers that are disabled in the plurality of servers exceeds a threshold; and
when the number of database servers that are disabled exceeds the threshold, sending, by the request intake manager, an alert to an administrator.

### Claim 29

A non-transitory computer-readable device having instructions stored thereon that, when executed by at least one computing device, cause the at least one computing device to perform operations comprising:
obtaining, by a request intake manager, a first token indicating an identity of a client associated with credentials received with a first application programming interface (API) request from a client computing device, wherein the first API request specifies a target website to scrape and the first token is generated by an authentication service when the credentials are determined to be valid;
selecting, by the request intake manager, a database server to store, in a job database that stores statuses of web scraping jobs while the web scraping jobs are being executed, a job description generated based on the first API request from a plurality of database servers identified as enabled in a database server status table, wherein the plurality of database servers operate independently of one another and each database server is configured to manage data storage to at least a portion of the job database;
assigning, by the request intake manager, a job identifier to the job description, wherein the job identifier encodes an identifier for the selected database server;
transmitting, by the request intake manager, the job identifier to the client computing device; and
transmitting, by the request intake manager, the job identifier and the job description to the selected database server.

### Claim 30 (depends on 29)

The non-transitory computer-readable device of claim 29, the instructions further comprising:
storing, by the selected database server, the job identifier and the job description in the job database as a pending web scraping job to generate at least one web request to retrieve content as specified by the job description; and
placing, by the selected database server, the at least one web request on a central message queue of the web scraping system to be retrieved and executed by a scraper selected from a plurality of scrapers based on the target website.

### Claim 31 (depends on 30)

The non-transitory computer-readable device of claim 30, the instructions further comprising:
generating, by the scraper, at least one Hypertext Transfer Protocol (HTTP) request for the target website according to instructions in the selected scraper;
transmitting, by the scraper, the at least one HTTP request to the target website via a proxy selected from a group of proxies; and
in response to the at least one HTTP request, receiving, by the scraper, scraped content from the target website via the proxy; and
placing, by the scraper, the scraped content on the central message queue of the web scraping system to be retrieved by the selected database server and stored in the job database.

### Claim 32 (depends on 31)

The non-transitory computer-readable device of claim 31, the instructions further comprising:
obtaining, by the request intake manager, a second token indicating an identity of a client associated with credentials received with a second API request from a client computing device, wherein the second API request comprises a request to retrieve scraped data associated with the job identifier and the second token is generated by an authentication service when the credentials are determined to be valid;
determining, by the request intake manager, whether the first and second tokens indicate that the first and second API requests came from the client; and
when the first and second tokens indicate that the first and second API requests came from the client, returning, by the request intake manager, the scraped content associated with the job identifier.

### Claim 33 (depends on 32)

The non-transitory computer-readable device of claim 32, wherein the first and second tokens further comprise at least one of: a role of the client, a digital signature of the token, and services to which the client has subscribed.

### Claim 34 (depends on 29)

The non-transitory computer-readable device of claim 29, the instructions further comprising:
conducting periodic health checks of each of the plurality of database servers; and
determining, based on the periodic health checks, whether each of the plurality of database servers are to be enabled or disabled in the database server status table.

### Claim 35 (depends on 34)

The non-transitory computer-readable device of claim 34, wherein the periodic health checks comprise, for each of the plurality of database servers, performing at least one of:
connecting to the portion of the job database for the respective database server;
determining a number of messages queued within job queues for the respective database server to be stored in the job database; and
checking a connection between a server that receives API requests from client computing devices and the job queues for the respective database server.

### Claim 36

A system for determining which servers are available to process web scraping jobs, comprising:
a job database that stores statuses of web scraping jobs while the web scraping jobs are being executed;
a plurality of database servers operating independently of one another, wherein each of the plurality of database servers is configured to manage storage in a portion of the job database;
a request intake manager comprising one or more processors and a memory storing instructions that, when executed by the one or more processors, configures the request intake manager to:
obtain a first token indicating an identity of a client associated with credentials received with a first application programming interface (API) request from a client computing device, wherein the first API request specifies a target website to scrape and the first token is generated by an authentication service when the credentials are determined to be valid;
determine, based on periodic health checks, whether each of a plurality of database servers are to be enabled or disabled in a database server status table;
select a database server to store a job description generated based on the first API from the plurality of database servers identified as enabled in the database server status table;
assign a job identifier to the job description, wherein the job identifier encodes an identifier for the selected database server;
transmit the job identifier to the client computing device; and
transmit the job identifier and the job description to the selected database server.

### Claim 37 (depends on 36)

The system of claim 36, wherein the periodic health checks comprise, for each of the plurality of database servers, performing at least one of: connecting to the portion of the job database for the respective database server;
determining a number of messages queued within job queues for the respective database server to be stored in the job database; and
checking a connection between a server that receives API requests from client computing devices and the job queues for the respective database server.

### Claim 38 (depends on 36)

The system of claim 36, wherein the selected database server is configured to:
store the job identifier and the job description in the job database as a pending web scraping job to generate at least one web request to retrieve content as specified by the job description; and
place the at least one web request on a central message queue of the web scraping system to be retrieved and executed by a scraper selected from a plurality of scrapers based on the target website.

### Claim 39 (depends on 38)

The system of claim 38, wherein the scraper is configured to:
generate at least one Hypertext Transfer Protocol (HTTP) request for the target website according to instructions in the selected scraper;
transmit the at least one HTTP request to the target website via a proxy selected from a group of proxies; and
in response to the at least one HTTP request, receive scraped content from the target website via the proxy; and
place the scraped content on the central message queue of the web scraping system to be retrieved by the selected database server and stored in the job database.

### Claim 40 (depends on 39)

The system of claim 39, wherein the request intake manager is further configured to:
obtain a second token indicating an identity of a client associated with credentials received with a second API request from a client computing device, wherein the second API request comprises a request to retrieve scraped data associated with the job identifier and the second token is generated by an authentication service when the credentials are determined to be valid;
determine whether the first and second tokens indicate that the first and second API requests came from the client; and
when the first and second tokens indicate that the first and second API requests came from the client, return the scraped content associated with the job identifier.
