Extending ChatGPT with a Browserless System for Web Product Price Extraction
Jorge Lloret-Gazo · 2025
Read Extending ChatGPT with a Browserless System for Web Product Price Extraction by Jorge Lloret-Gazo (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2501-03811.txt.
Introduction
Chatbots like ChatGPT answer many questions cleanly, yet they cannot look up a live price on a shop's website. Jorge Lloret-Gazo presents Wextractor, a system that extends ChatGPT so it can answer questions such as the price of a named cake at a named bakery. The system fetches the product page and pulls the price out, covering a kind of transactional search the chatbot alone cannot do.
The paper is frank that the add-on is not itself artificial intelligence; it is a practical bridge between the chatbot and the live web. Two improvements over the first version make answers faster: social extraction, which uses shared or social sources, and pointing pattern extraction, which homes in on the page patterns where prices sit. The work shows how a focused tool wrapped around a general chatbot can fill a clear gap in what users can ask for.
Catalog record
| CREATOR | Jorge Lloret-Gazo |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 33 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2501-03811
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Extending ChatGPT with a Browserless System for Web Product Price Extraction Jorge Lloret-Gazo Abstract With the advenement of ChatGPT, we can find very clean, precise answers to a varied amount of questions. However, for questions such as ’find the price of the lemon cake at zingerman’s’, the answer looks like ‘I can’t browse the web right now’. In this paper, we propose a system, called Wextractor, which extends ChatGPT to answer questions as the one mentioned before. Obviously, our system cannot be labeled as ‘artificial intelligence’. Simply, it offers to cover a kind of transactional search that is not included in the current version of ChatGPT. Moreover, Wextractor includes two improvements with respect to the initial version: social extraction and pointing pattern extraction to improve the answer speed. 1 Introduction Since its launch, ChatGPT has grown quickly to become a well-known question-and-answer system. Numerous exam-related use cases involving ChatGPT have had their performance examined, with different degrees of scientific rigor ranging from in-depth research to anecdotal evidence. Use cases include excellent success on the United States Medical Licensing Examination [ 8 ] . For these and other reasons, large language models (LLMs) are expected to have an effect on a variety of fields and be used as assistants by a variety of professionals . However, there are many easier questions that ChatGPT is not able to answer, for example, those related to queries that requires browser capabilities and, in particular, with product prices on the web. On the other hand, businesses are interested in extracting product prices from different web sites and in following them up during a certain period of time for different purposes. For example, an e-commerce enterprise is interested in the price of pairs of shoes listed on different competing websites with the purpose of adapting their prices when competence prices fall below a certain threshold. In this paper, we propose the combination of ChatGPT with an enhanced version of Wextractor [ 12 ] to answer questions about product prices. To be specific, in paper [ 12 ] , we proposed an architecture for extracting prices that applies the following four steps: (0) browserless extraction of raw HTML, (1) fragmentation, (2) rule application and (3) price extraction. In step (0), raw HTML is obtained from the url of the page. In step (1), fragments that contain clues of the prices are found. In the next step, rules previously designed by a rule designer are applied to the fragments. As a result, several fragments, that contain several candidate prices, remain and one of them is chosen as the target value. Step 0 is based on the browserless concept of [ 4 ] . The first step is inspired by the segmentation of [ 19 ] while, to the best of our knowledge, there is no proposal of easy-to-specify rules in the literature for the purpose of extracting prices. In this paper, we extend the original architecture with two ideas: (a) social extraction and (b) pointing pattern extraction. The first idea consists of storing prices of objects coming from searches of other users and using these prices to answer subsequent queries that occur near the initial search. The second idea is to use automatic pointing pattern extraction. A pointing pattern is a regular expression that points to where the entity price is. Then, the second and subsequent times an extraction is performed on a page, first, a social search will be performed. If the price is available in the social storage, it will be returned as a result. Otherwise, the pointing pattern of the page is used. If this extraction does not find any price, the process begins and steps (1)-(3) are applied again (step (0) was previously applied, so it is not applied again). Taking into account our enhanced architecture, questions on product prices can be dispatched from ChatGPT to Wextractor, extending in this way the capabilities of ChatGPT. The contribution of this paper is threefold: 1. We offer an answer to ChatGPT-uncovered questions 2. We incorporate a social module into Wextractor in which people act as sensors that transmit information from the market to our architecture. Therefore, some searches can be answered with the information previously gathered from users. This avoids computationally expensive queries. 3. Finally, we incorporate a pointing pattern module so that a faster search can be performed using a pointing pattern. The rest of the paper is organised as follows. Section 2 is devoted to defining the problem and the challenges. In Section 3, we explain the architecture and in Section 5, an implementation of it. Section 4 is devoted to the connexion between ChatGPT and Wextractor. In the last sections, we deal with the evaluation, related work, conclusions and future work. 2 Problem definition and description of the architecture Although ChatGPT is a powerful tool, there are questions which remain not satisfactorily answered. For example, let us consider a query such as ‘price of lemon cake at Zingerman”s’. The answer of ChatGPT is shown in Figure 1 . That is, ChatGPT cannot deal with real-time queries or with queries that need browser capabilities. Figure 1: Answer of ChatGPT to a query about Zingerman’s cake On the other hand, our Wextractor architecture responds to questions as follows: Given a detail web page pg of an entity e with url u , extract the price of e from page pg . An example of this problem is query (q1): Given the url https://www.zingermans.com/Product.aspx?ProductID=A-ZDV find the price of the lemon cake. Figure 2: Fragment of the Zingerman web page as of March 2024 The problems we solve in this paper are: 1. How to improve the answer speed of Wextractor (see Section 6). 2. How to connect ChatGPT with Wextractor (see Section 4) to answer real-time queries on prices with ChatGPT. Figure 3: Our architecture The solution of the first problem is expressed in the following four steps. As an example, we will use query (q1). Togehter with the steps, we summarize our architecture extended with the social and the pointing pattern modules (see 3 ). Additional details of the original architecture can be found on [ 12 ] . Step 0. Social extraction This extraction is done by the social module . It receives the url u of a detail page for an entity e and searches the price associated with the url u in the social storage . If the price is found, it is returned provided that the difference of the actual time with the time of the price in the social storage falls within a limit. If the URL is not available or the limit is overcome, then jump to the step 1. This module is inspired by Waze [ 18 ] . In its page, we can read “Nothing can beat people working together”. The idea behind this module is that people act as sensors that transmit the information from the market to the Wextractor architecture. This information gathered by the sensors is elaborated inside our architecture and offered curated to other people doing similar searches through ChatGPT. In this way, information is bidirectional. As far as I know, the information flows from the buyer to the seller and remains stored