Web page processing method, device, electronic device and storage medium

By converting web pages into table documents and supporting online collaborative editing, the problem of inefficient web page editing in the existing technology is solved, and the need for multi-person online editing and rapid document generation is realized.

CN114595191BActive Publication Date: 2025-04-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210225086.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-09
Publication Date
2025-04-11
Estimated Expiration
2042-03-09

AI Technical Summary

Technical Problem

The prior art cannot effectively convert web pages into document formats that support multi-person online collaborative editing, resulting in inefficiency in editing and unable to meet the needs of rapid generation and diversified editing.

Method used

By displaying web pages in the human-computer interactive interface and responding to the table conversion trigger operation, the web pages are converted into table documents, and support the sharing and collaborative editing of online documents.

Benefits of technology

It realizes online collaborative editing from web pages to table documents, improves document editing efficiency, and meets users' needs for rapid document generation and diversified editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114595191B_ABST
    Figure CN114595191B_ABST
Patent Text Reader

Abstract

The present application provides a web page processing method, device, electronic device, computer-readable storage medium and computer program product; it can be applied to vehicle-mounted scenarios, and the method includes: displaying a web page in a human-computer interaction interface; in response to a table conversion trigger operation for the web page, displaying a table document obtained after the web page is converted into a table; wherein at least one information included in the web page is correspondingly filled in at least one cell of the table document; in response to a sharing trigger operation for the table document, sending the table document in the form of an online document to at least one shared object as a sharing object; wherein the online document is used for collaborative editing by the sharing object and the at least one shared object. Through the present application, a web page can be converted into a table document that can be collaboratively edited by multiple people online, thereby improving the editing efficiency of the document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a web page processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] In the daily study and work of users, they can obtain the required information by browsing web pages. For more important web pages, users can also store the web pages locally.

[0003] In the related art, web pages can usually only be converted into long images, offline web pages, or PDF documents for storage. However, the editing functions supported by the documents in the above formats are relatively limited and cannot meet the editing needs of users. Summary of the invention

[0004] The embodiments of the present application provide a web page processing method, device, electronic device, computer-readable storage medium and computer program product, which can convert a web page into a table document that can be collaboratively edited by multiple people online, thereby improving the editing efficiency of the document.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a web page processing method, including:

[0007] Displaying web pages in a human-computer interaction interface;

[0008] In response to a table conversion trigger operation for the webpage, displaying a table document obtained after the webpage is converted into a table; wherein at least one information included in the webpage is correspondingly filled in at least one cell of the table document;

[0009] In response to a sharing trigger operation for the table document, the table document is sent in the form of an online document to at least one shared object as a sharing object; wherein the online document is used for collaborative editing by the sharing object and the at least one shared object.

[0010] The present application provides a web page processing device, including:

[0011] A display module, used to display web pages in the human-computer interaction interface;

[0012] The display module is further configured to, in response to a table conversion triggering operation for the webpage, display a table document obtained after the webpage is converted into a table; wherein at least one information included in the webpage is correspondingly filled in at least one cell of the table document;

[0013] A sending module is used to respond to a sharing trigger operation for the table document and send the table document in the form of an online document to at least one shared object as a sharing object; wherein the online document is used for collaborative editing by the sharing object and the at least one shared object.

[0014] An embodiment of the present application provides an electronic device, including:

[0015] A memory for storing executable instructions;

[0016] The processor is used to implement the web page processing method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0017] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for implementing the web page processing method provided in the embodiment of the present application when executed by a processor.

[0018] An embodiment of the present application provides a computer program product, including a computer program or instructions, which are used to implement the web page processing method provided in the embodiment of the present application when executed by a processor.

[0019] The embodiments of the present application have the following beneficial effects:

[0020] By converting the web page into a table, the corresponding table document is obtained, and then the obtained table document is sent to at least one shared object in the form of an online document. This enables multiple people to collaboratively edit the table document online, and realizes online collaborative editing from web pages to table documents, improving the document editing efficiency, while also meeting users' needs for rapid document generation and diversified editing. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a schematic diagram of the architecture of a web page processing system 100 provided in an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of the structure of a terminal device 400 provided in an embodiment of the present application;

[0023] Figure 3 It is a flowchart of a web page processing method provided in an embodiment of the present application;

[0024] Figure 4A It is a schematic diagram of the principle of obtaining at least one information from a web page provided by an embodiment of the present application;

[0025] Figure 4B and Figure 4C It is a flowchart of a web page processing method provided in an embodiment of the present application;

[0026] Figure 5Aand Figure 5B It is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application;

[0027] FIG. 6A to FIG. 6E It is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application;

[0028] Figure 7 It is a flowchart of a web page processing method provided in an embodiment of the present application;

[0029] Figure 8 It is a schematic diagram of a table document converted from a web page provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0031] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0032] It is understandable that in the embodiments of the present application, when the embodiments of the present application are applied to specific products or technologies, the user's permission or consent is required, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0033] In the following description, the terms "first\second\..." involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0034] In the following description, the term "plurality" referred to means at least two.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0036] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0037] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.

[0038] 2) Web page: It is the basic element of a website and a platform for various website applications. Specifically, a web page is a plain text file that includes HTML (Hyper Text Markup Language) tags. It can be stored in a computer somewhere in the world. It is in the HTML format and has a .html or .htm extension. Web pages usually use image files to provide pictures and are read through a web browser.

[0039] 3) Online document: A document that can be edited online by users, collaborated by multiple users and saved in real time in the cloud. The document is displayed through HTML pages and relies on communication between the client and the server to synchronize the user edited content. The types of online documents can be online Word documents, online Excel documents, online PPT documents, and online drawing documents.

[0040] 4) Plug-in: A program written in accordance with a certain standard application program interface. It can only run on the system platform specified by the program (it may support multiple platforms at the same time) and cannot run independently from the specified platform. For example, in a browser, after installing the relevant plug-in, the browser can directly call the plug-in program to process specific types of files, thereby expanding the functions of the browser.

[0041] 5) Event: A collection of information of the same type. For example, taking a hotel search result page as an example, assuming that the search result page includes search results for multiple hotels, the search result for each hotel can be determined as an event. For example, the search result for hotel A can be determined as event 1, the search result for hotel B can be determined as event 2, and the search result for hotel C can be determined as event 3.

[0042] 6) Unit: The basic elements that make up an event. For example, if the event is the search result of Hotel A, the event can be composed of the following units: Hotel A's name information (assumed to be Unit 1), Hotel A's address information (assumed to be Unit 2), Hotel A's price information (assumed to be Unit 3), Hotel A's illustrations (assumed to be Unit 4), etc.

[0043] 7) Web page tag: HTML tag is the most basic unit in HTML language and the most important component of HTML. The types of web page tags can include text tags and image tags, where a text tag specifies a text information to be displayed on a web page, an image tag specifies an image information to be displayed on a web page, and an image tag specifies the address of the image on the network. When obtaining the corresponding image information based on the image tag, it is first necessary to download the corresponding image from the network according to the address specified by the image tag.

[0044] 8) Mini Program: It is an application that can be used without downloading and installing. In order to provide users with more diversified business services, developers can develop corresponding mini programs for terminal device applications (such as instant messaging applications, shopping applications, email applications, etc.). The mini program can be embedded in the terminal device application as a sub-application, and can provide users with corresponding business services by running the sub-application in the application (i.e. the corresponding mini program).

[0045] The embodiments of the present application provide a web page processing method, device, electronic device, computer-readable storage medium, and computer program product, which can convert a web page into a table document that can be collaboratively edited by multiple people online, thereby improving the editing efficiency of the document. The following describes an exemplary application of the electronic device provided by the embodiments of the present application. The electronic device provided by the embodiments of the present application can be implemented as various types of terminal devices, or can be collaboratively implemented by a server and a terminal device.

[0046] The following describes the web page processing method provided by the embodiment of the present application, which is implemented by the server and the terminal device in collaboration. Figure 1 , Figure 1 is a schematic diagram of the architecture of a web page processing system 100 provided in an embodiment of the present application, in order to realize an application that can convert a web page into a table document that can be collaboratively edited by multiple people online to meet the user's needs for rapid document generation and portable editing, such as Figure 1 As shown, the web page processing system 100 includes: a server 200, a network 300 and a terminal device 400, wherein the network 300 can be a wide area network or a local area network, or a combination of the two.

[0047] In some embodiments, a client 410 is running on the terminal device 400. The client 410 can be various types of clients, such as a browser, an instant messaging client, etc. A web page (such as a hotel search result page, an e-commerce web page, and a popular ranking list, etc.) is displayed in the human-computer interaction interface of the client 410; when the client 410 receives a table conversion trigger operation for a web page, the web page displayed in the human-computer interaction interface can be sent to the server 200 through the network 300, so that the server 200 analyzes the web page and fills at least one information included in the web page in an empty table document to obtain a table document corresponding to the web page. Then, after the client 410 receives the table document returned by the server 200, the table document obtained after the table conversion of the web page can be displayed in the human-computer interaction interface. After obtaining the table document, the client 410 can also respond to the sharing trigger operation for the table document and send the table document in the form of an online document to at least one shared object as a sharing object. For example, after receiving the sharing trigger operation triggered by the sharing object (such as user A), the client 410 can send a sharing request to the server 200 through the network 300, and the sharing request carries the account of the shared object (such as user B). After receiving the sharing request sent by the terminal device 400, the server 200 can parse the account of the shared object (that is, the account of user B) from the sharing request, and send a message to the terminal device associated with the account of the shared object (that is, the terminal device of user B). Figure 1 The server may send a table document in the form of an online document to the terminal device of user B (not shown) (for example, the server may send the address of the online document to the terminal device of user B, so that the terminal device of user B can obtain the online document according to the address, thereby reducing the resources consumed during the transmission process). In this way, user A and user B can collaboratively edit the online document, which improves the document editing efficiency and also meets the user's needs for rapid document generation and diversified editing.

[0048] In other embodiments, the web page processing method provided in the embodiments of the present application can also be implemented by a terminal device alone, for example, Figure 1Taking the terminal device 400 shown in as an example, a web page is displayed in the human-computer interaction interface of the terminal device 400. When the terminal device 400 receives a table conversion trigger operation for the web page, the web page currently displayed in the human-computer interaction interface is analyzed, and at least one information included in the web page is filled in at least one cell of the empty table document to obtain a table document corresponding to the web page. Then, the terminal device 400 can display the table document obtained after the table conversion of the web page in the human-computer interaction interface. Subsequently, when the terminal device 400 receives a sharing trigger operation for the table document, it can send the table document in the form of an online document to at least one shared object as a sharing object, wherein the table document is used for collaborative editing by the sharing object and at least one shared object. In this way, the editing efficiency of the document is improved, and the user's needs for rapid generation and diversified editing of documents are also met.

[0049] In some embodiments, the terminal device 400 or the server 200 can also implement the webpage processing method provided in the embodiments of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in the operating system to run, such as an instant messaging application (corresponding to the client 410 above); it can also be a small program, that is, a program that can be run only after being downloaded to a browser environment; it can also be a small program that can be embedded in any APP, such as a small program component embedded in an instant messaging application, wherein the small program component can be controlled to run or closed by the user. In short, the above-mentioned computer program can be an application, module or plug-in in any form.

[0050] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, among which the cloud service may be a web page processing service for the terminal device 400 to call. The terminal device 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart TV, a smart watch, a car terminal, etc., but is not limited thereto. The terminal device 400 and the server 200 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0051] Below Figure 1The structure of the terminal device 400 shown in FIG. Figure 2 , Figure 2 is a schematic diagram of the structure of a terminal device 400 provided in an embodiment of the present application, Figure 2 The terminal device 400 shown includes: at least one processor 420, a memory 460, at least one network interface 430 and a user interface 440. The various components in the terminal device 400 are coupled together via a bus system 450. It is understood that the bus system 450 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 450 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 450 is not shown in FIG. Figure 2 Various buses are labeled as bus system 450 .

[0052] The processor 420 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0053] The user interface 440 includes one or more output devices 441 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 440 also includes one or more input devices 442, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0054] The memory 460 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 460 may optionally include one or more storage devices that are physically remote from the processor 420.

[0055] The memory 460 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 460 described in the embodiments of the present application is intended to include any suitable type of memory.

[0056] In some embodiments, memory 460 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0057] Operating system 461, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0058] A network communication module 462, used to reach other electronic devices via one or more (wired or wireless) network interfaces 430, exemplary network interfaces 430 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB), etc.;

[0059] a presentation module 463 for enabling presentation of information via one or more output devices 441 (e.g., display screen, speaker, etc.) associated with the user interface 440 (e.g., a user interface for operating peripherals and displaying content and information);

[0060] The input processing module 464 is used to detect one or more user inputs or interactions from one of the one or more input devices 442 and translate the detected inputs or interactions.

[0061] In some embodiments, the web page processing device provided in the embodiments of the present application can be implemented in a software manner. Figure 2 The web page processing device 465 stored in the memory 460 is shown, which can be software in the form of a program and a plug-in, etc., including the following software modules: a display module 4651, a sending module 4652, an identification module 4653, a download module 4654, an installation module 4655, a moving module 4656, a deletion module 4657, a determination module 4658, a conversion module 4659, an image recognition module 46510, a creation module 46511, a filling module 46512, a parsing module 46513 and an acquisition module 46514. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. It should be pointed out that in Figure 2 For the sake of convenience, all the above modules are shown at once. In actual applications, it is not ruled out that the web page processing device 465 only includes the display module 4651 and the sending module 4652. The functions of each module will be explained below.

[0062] The web page processing method provided in the embodiment of the present application will be specifically described below in combination with the exemplary application and implementation of the terminal device provided in the embodiment of the present application.

[0063] See also Figure 3 , Figure 3 is a flow chart of the web page processing method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0064] In step 101, a web page is displayed in a human-computer interaction interface.

[0065] In some embodiments, the human-computer interaction interface may be displayed in a client (eg, a browser, an instant messaging client, etc.), and the web page displayed in the human-computer interaction interface may be a search results page, an e-commerce web page, and a popular ranking list, etc.

[0066] For example, taking the client as a browser, when the browser receives the keywords entered by the user in the search box, it can send the keywords entered by the user to the server to obtain search results matching the keywords from the server. Then, after the browser receives the search results returned by the server, it can display the search results page matching the keywords in the human-computer interaction interface.

[0067] In step 102, in response to a table conversion triggering operation on a web page, a table document obtained by performing table conversion on the web page is displayed.

[0068] Here, at least one information included in the webpage is correspondingly filled in at least one cell of the table document.

[0069] In some embodiments, step 102 can be implemented in the following manner: displaying a toolbox entrance in the human-computer interaction interface; displaying a toolbox interface in response to a trigger operation on the toolbox entrance, wherein the toolbox interface includes a table conversion tool; identifying the trigger operation on the table conversion tool as a table conversion trigger operation on the web page, and displaying a table document obtained after converting the web page to a table.

[0070] For example, taking the client as a browser, a toolbox entrance can be displayed in the human-computer interaction interface of the browser; when the browser receives a user click operation on the toolbox entrance, the toolbox interface will be displayed in a pop-up window, wherein a table conversion tool can be displayed in the toolbox interface (of course, other tools can also be displayed in the toolbox interface, such as image conversion tools, PDF conversion tools, etc.); when the browser receives a user click operation on the table conversion tool displayed in the toolbox interface (such as the "Excel" button), the web page currently browsed by the user will be converted into a table document and displayed in the human-computer interaction interface.

[0071] In other embodiments, a set gesture operation triggered by a web page (for example, a three-finger grabbing operation pre-set by the user, where different types of gesture operations correspond to different functions) can also be identified as a table conversion trigger operation for the web page; of course, a set shaking operation for a terminal device running a web page (for example, an up and down shaking operation, where different types of shaking operations correspond to different functions) can also be identified as a table conversion trigger operation for the web page. The embodiments of the present application do not specifically limit the type of the table conversion trigger operation.

[0072] In some embodiments, the human-computer interaction interface may be displayed in a client, wherein the table conversion tool is a native function in the client.

[0073] For example, taking the client as a browser, the human-computer interaction interface can be displayed in the browser, where the table conversion tool is a native function in the browser (that is, the browser itself has the function of converting web pages into table documents). In this way, when users use the browser to browse the web, they do not need to download additional plug-ins. They only need to use the browser's built-in table conversion tool to convert the currently browsed web page into a corresponding table document, thereby realizing the rapid generation of table documents and further improving the user's operating efficiency.

[0074] In other embodiments, the human-computer interaction interface may be displayed in the client, wherein the table conversion tool may be a plug-in in the client. Then, before displaying the plug-in in the toolbox interface, the following processing may be performed: in response to the plug-in not being installed in the client, downloading the plug-in from the server and installing the plug-in.

[0075] For example, taking the client as a browser, the human-computer interaction interface can be displayed in the browser, wherein the table conversion tool can be a plug-in in the browser (that is, the browser itself does not have the function of converting a web page into a table document, and an additional plug-in with the function of converting a web page into a table document needs to be installed in the browser to expand the function of the browser). Before displaying the plug-in in the toolbox interface, the following processing can also be performed: in response to the fact that the plug-in is not installed in the browser (for example, the user uses the function of converting a web page into a table document for the first time), the plug-in is automatically downloaded from the server, and the downloaded plug-in is installed in the browser. In this way, after the plug-in is installed, the installed plug-in will be displayed in the toolbox interface.

[0076] In some embodiments, before displaying the table document obtained by converting a web page into a table, the following processing can also be performed: converting the web page into a picture; performing image recognition processing on the picture to obtain at least one information included in the picture; creating an empty table document, and filling at least one information included in the picture into at least one cell of the empty table document to obtain a table document.

[0077] For example, the above-mentioned image recognition processing of a picture can be implemented in the following manner to obtain at least one information included in the picture: first, a first image recognition model is called to perform a first image recognition processing on the picture to divide the picture into at least one event picture (i.e., an area in the picture corresponding to a certain event, for example, when the picture converted from a web page includes search results for multiple hotels, event picture 1 can be the area in the picture where the search results for hotel A are located, event picture 2 can be the area in the picture where the search results for hotel B are located, and event picture 3 can be the area in the picture where the search results for hotel C are located); wherein the first image recognition model is trained based on sample pictures and an area corresponding to at least one sample event marked in the sample pictures; then a second image recognition model is called to perform a second image recognition processing on each event picture Processing is performed to divide each event picture into at least one unit picture (i.e., the area in the event picture corresponding to a certain unit, for example, taking event picture 1 as an example, unit picture 1 may be the area where the address of hotel A in event picture 1 is located, unit picture 2 may be the area where the price of hotel A in event picture 1 is located, and unit picture 3 may be the area where the rating of the hotel in event picture 1 is located); wherein the second image recognition model is trained based on the sample event picture and the area corresponding to at least one sample unit marked in the sample event picture, and the sample unit is an element of the sample event (for example, when the sample event is the search result of a hotel, the sample unit may be the address, name, illustration, rating, and price of the hotel, etc.); finally, optical character recognition processing is performed on each unit picture to obtain at least one information included in the picture.

[0078] It should be noted that the above-mentioned first image recognition model and the second image recognition model can be a neural network model (such as a convolutional neural network, a deep convolutional neural network, or a fully connected neural network, etc.), a decision tree model, a gradient boosting tree, a multi-layer perceptron, and a support vector machine, etc. The embodiment of the present application does not specifically limit the types of the first image recognition model and the second image recognition model.

[0079] In other embodiments, continuing from the above, the above-mentioned optical character recognition processing for each unit image can be implemented in the following manner to obtain at least one information included in the image: optical character recognition processing is performed on each unit image, and when the recognition is successful (i.e., the corresponding text information can be extracted from the unit image), the recognized text information is determined as a piece of text information included in the image; when the recognition fails (i.e., the corresponding text information cannot be extracted from the unit image), the unit image is determined as a piece of image information included in the image.

[0080] For example, see Figure 4A , Figure 4Ais a schematic diagram of the principle of obtaining at least one information from a web page provided by an embodiment of the present application, such as Figure 4AAs shown, after converting a web page (assuming that it is an e-commerce web page whose keyword is mobile phone) into a picture, the first image recognition model can be called to perform a first image recognition process on the converted picture to divide the picture into three event pictures (i.e., perform a first image classification), namely event picture 1 (e.g., the area where the search results of mobile phone A are located in the picture), event picture 2 (e.g., the area where the search results of mobile phone B are located in the picture), and event picture 3 (e.g., the area where the search results of mobile phone C are located in the picture). Then, for each event picture obtained by the division, the second image recognition model can be called to perform a second image recognition process on each event picture to further divide each event picture into at least one unit picture (i.e., perform a second image classification). For example, event picture 1 can be further divided into three unit pictures, namely Unit picture 1 (for example, the area where the picture of mobile phone A in event picture 1 is located), unit picture 2 (for example, the area where the configuration information of mobile phone A in event picture 1 is located) and unit picture 3 (for example, the area where the price of mobile phone A in event picture 1 is located); for event picture 2, it can be further divided into unit picture 4 (for example, the area where the picture of mobile phone B in event picture 2 is located), unit picture 5 (for example, the area where the configuration information of mobile phone B in event picture 2 is located) and unit picture 6 (for example, the area where the price of mobile phone B in event picture 2 is located); for event picture 3, it can be further divided into unit picture 7 (for example, the area where the picture of mobile phone C in event picture 3 is located), unit picture 8 (for example, the area where the configuration information of mobile phone C in event picture 3 is located) and unit picture 9 (for example, the area where the price of mobile phone C in event picture 3 is located). After obtaining multiple unit images, optical character recognition (OCR) processing can also be performed on each unit image. When the recognition is successful, the recognized text information can be determined as a text information included in the image. For example, for unit image 2, after OCR character recognition, the following text information can be extracted: "XX Changwan 7 2GB+16GB Gold All-Access Network 4G Mobile Phone Dual SIM Dual Standby", and the recognized text information "XX Changwan 7 2GB+16GB Gold All-Access Network 4G Mobile Phone Dual SIM Dual Standby" can be determined as a text information included in the image (that is, the recognized text information "XX Changwan 7 2GB+16GB Gold All-Access Network 4G Mobile Phone Dual SIM Dual Standby" can be filled in a cell corresponding to the table document); when the recognition fails, the unit image can be determined as a picture information included in the image. For example, for unit image 1, after OCR character recognition, no text information can be extracted, and unit image 1 can be determined as at least one picture information included in the image (that is, unit image 1 can be directly filled in a cell corresponding to the table document).

[0081] In some embodiments, after obtaining at least one information included in the picture, the above-mentioned filling of the at least one information included in the picture into at least one cell of the empty table document can also be achieved in the following way: perform the following processing for each event picture: fill the text information or at least one unit picture corresponding to at least one unit picture included in the event picture into at least one cell included in the same row or column of the empty table document.

[0082] For example, take the event picture as Figure 4A Taking the event picture 1 shown in as an example, the text information corresponding to unit pictures 1 and 2, "XX Changwan 7 2GB+16GB Gold All-Access Network 4G Mobile Phone Dual SIM Dual Standby", and the text information "599" corresponding to unit picture 3 can be filled in the three cells included in the same row or column of the empty table document. In this way, multiple information for the same event can be filled in the same row or column of the table document, which is convenient for users to view.

[0083] In other embodiments, before displaying the table document obtained by converting the web page into a table, the following processing may be performed: parsing the code source data of the web page to obtain a plurality of web page tags included in the web page; wherein the types of web page tags include text tags (e.g. <mark>、 <pre>etc., among which, <mark>Tags are used to define marked text, i.e. <mark>Tags specify marked text information embedded in a web page; <pre>The tag is used to define preformatted text, i.e. <pre>The tag specifies preformatted text information embedded in a web page) and image tags (such as Tags are used to define images, i.e. The tag specifies the image information embedded in the web page), each text tag specifies a text information corresponding to the web page, and each image tag specifies an image information corresponding to the web page; based on at least one target web page tag among the multiple web page tags, obtaining at least one information (for example, taking the target web page tag as Take tags as an example, The tag specifies the address of a picture information (such as picture A) displayed on the web page, such as the uniform resource locator (URL) of picture A, so it can be based on The URL of the picture A specified by the tag is used to obtain the picture A from the network); an empty table document is created, and the at least one information obtained is filled in at least one cell of the empty table document to obtain a table document.

[0084] In some embodiments, at least one information can also be obtained in combination with the above-mentioned solution of converting a web page into a picture and performing image recognition processing on the picture. For example, after receiving a table conversion trigger operation triggered on a web page, you can first try to parse the code source data of the web page. When the code source data of the web page is successfully parsed, you can obtain at least one information based on the parsed web page tag; when the parsing of the code source data of the web page fails, it means that the version or type of the web page code belongs to the category that is not supported for parsing, and you can use the above-mentioned solution of converting a web page into a picture and performing image recognition processing on the picture to obtain at least one information. In this way, it is ensured that web pages developed for different types or versions of web page languages ​​can be smoothly converted into table documents.

[0085] In some embodiments, see Figure 4B , Figure 4B is a flow chart of a web page processing method provided in an embodiment of the present application, such as Figure 4B As shown, after executing Figure 3 After step 102 shown, you can also perform Figure 4B Step 104 is shown, combining Figure 4B Step 104 is shown for illustration.

[0086] In step 104, in response to the current drop point of the drag operation on the first cell in the table document being in the second cell, the first information filled in the first cell is moved to the second cell, and the first information is displayed in a manner of covering the second cell.

[0087] In some embodiments, the table document may always be in an editable state, that is, there is no need to switch the state of the table document until the current drop point in response to a drag operation on a first cell in the table document is at a second cell.

[0088] In other embodiments, when the second cell is originally filled with the second information, the following processing can also be performed: the second information is moved to a preview area (for example, a preview area displayed in suspension in a table document) for display, wherein the preview area can also display at least one of the following entrances: a displacement entrance, a deletion entrance; in response to a trigger operation on the displacement entrance, the second information is moved from the preview area to the first cell; in response to a trigger operation on the deletion entrance, the second information is deleted from the preview area.

[0089] For example, see Figure 5A , Figure 5A is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application, such as Figure 5A As shown, a table document 502 obtained by converting a web page into a table is displayed in the human-computer interaction interface 501. At this time, the user can edit the table document 502. For example, when a drag operation is received from the user on a cell 503 in the table document 502, and the current landing point of the drag operation is in a cell 504 in the table document 502, the information 505 filled in the cell 503 (such as a picture of hotel A) can be moved to the cell 504, and the information 505 is displayed in a manner of covering the cell 504. In addition, when the cell 504 is originally filled with information 507 (for example, the address information of hotel C), the information 507 can also be moved to the preview area (for example, the preview area 506 displayed in suspension in the table document 502) for display, wherein the preview area 506 can also display a displacement entry 508 and a deletion entry 509; when a user clicks on the displacement entry 508, the information 507 can be moved from the preview area 506 to the cell 503, and the preview area 506 can be cancelled in the table document 502; when a user clicks on the deletion entry 509, the information 507 can be deleted from the preview area 506, and the preview area 506 can be cancelled in the table document 502. In this way, the user's needs for portable editing of table documents are met.

[0090] In other embodiments, after the web page is converted into a table document to obtain a table document, the following processing can also be performed: in response to the current landing point of the drag operation on the first cell in the table document being in the second cell, an operation list is displayed, wherein the operation list includes at least one of the following entries: an exchange entry, a merge entry, and an overlay entry; in response to a trigger operation on the exchange entry, when the second cell was originally filled with the second information, the first information filled in the first cell is moved to the second cell, and the second information is moved to the first cell, and when the second cell is empty, the first information filled in the first cell is moved to the second cell; in response to a trigger operation on the merge entry, when the second cell was originally filled with the second information, the first information filled in the first cell is moved to the second cell, so that the first information and the second information are displayed in the second cell at the same time (when the second cell is empty, the first information filled in the first cell is moved to the second cell, so that the first information is displayed in the second cell); in response to a trigger operation on the overlay entry, the first information filled in the first cell is moved to the second cell, and the first information is displayed in a manner that covers the second cell.

[0091] For example, see Figure 5B , Figure 5B is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application, such as Figure 5B As shown, a table document 502 obtained by converting a web page into a table is displayed in the human-computer interaction interface 501. At this time, the user can edit the table document 502. For example, when a drag operation is received from the user on a cell 503 in the table document 502, and the current landing point of the drag operation is in a cell 504 in the table document 502, an operation list can be displayed (for example, an operation list 510 is displayed in a floating manner in the table document 502), wherein an exchange entry 511, a merge entry 512 and an overlay entry 513 are also displayed in the operation list 510. When a user clicks on the exchange entry 511 and the cell 504 is originally filled with information 507 (e.g., the address information of Hotel C), the information 505 filled in the cell 503 (e.g., the picture of Hotel A) can be moved to the cell 504, and the information 507 filled in the cell 504 can be moved to the cell 503, so as to realize the exchange between the information filled in the cell 503 and the cell 504 (of course, when the cell 504 is empty, only the information 505 filled in the cell 503 can be moved to the cell 504); when a user clicks on the merge entry 512, the information 505 filled in the cell 503 can be moved to the cell 504. When a click operation is performed and cell 504 is originally filled with information 507, information 505 filled in cell 503 can be moved to cell 504 to display information 505 and information 507 in cell 504 at the same time (of course, when cell 504 is empty, only information 505 can be displayed in cell 504); when a user click operation is received on the overlay entry 513, information 505 filled in cell 503 can be moved to cell 504, and information 505 is displayed in a manner that covers cell 504. In this way, the user's needs for portable editing of documents are met.

[0092] In some embodiments, a table document may have two states, namely a locked state and an editable state, wherein the locked state is a state in which the response to the editing operation triggered on the table document is shielded, and the editable state is a state in which the response to the editing operation triggered on the table document is responded to. A state control may also be displayed in the human-computer interaction interface, wherein the state control is used to switch the state of the table document when triggered, and to represent different states in a differentiated display manner (for example, different states may be represented in different colors or different sizes. For example, when the color displayed by the state control is green, it represents that the table document is in an editable state; when the color displayed by the state control is red, it represents that the table document is in a locked state). In view of the above situation, before performing an editing operation on the table document, if the current state of the table document is a locked state, the user also needs to switch the state of the table document from a locked state to an editable state by clicking the state control before performing the editing operation.

[0093] In some embodiments, when a user needs to view a historical table document, the user can also view it by clicking on a document entry displayed in the human-computer interaction interface. For example, a document entry can be displayed in the human-computer interaction interface; when a user clicks on the document entry, a document details interface is displayed in the human-computer interaction interface, wherein the document details interface includes an entry of at least one table document including the table document generated in step 102; in response to a trigger operation on an entry of a target table document in at least one table document, the target table document is displayed.

[0094] For example, taking the client as a browser, a navigation bar is displayed at the bottom of the human-computer interaction interface provided by the browser, and a document entrance is displayed in the navigation bar; when a user triggers an operation on the document entrance, a document details interface can be displayed in the human-computer interaction interface, and the document details interface displays entrances corresponding to multiple generated table documents (for example, including an entrance to table document 1, an entrance to table document 2, and an entrance to table document 3). When a user clicks on the entrance to table document 1, table document 1 can be displayed in the human-computer interaction interface. This makes it convenient for users to view historical table documents that have been generated.

[0095] Continue to see Figure 3 In step 103, in response to a sharing trigger operation for the table document, the table document in the form of an online document is sent to at least one shared object as a sharing object.

[0096] Here, the online document is used for collaborative editing by a sharing object and at least one shared object.

[0097] In some embodiments, a sharing entrance can also be displayed in the human-computer interaction interface, and the trigger operation on the sharing entrance can be identified as a sharing trigger operation on the table document. In addition, when responding to the sharing trigger operation on the table document, the following processing can also be performed: multiple platforms are displayed in the human-computer interaction interface; in response to the platform selection operation, a list of candidate objects is displayed in the selected platform; in response to the object selection operation on the candidate object list, at least one selected candidate object is determined as at least one shared object.

[0098] For example, taking the client as a browser, a sharing entrance is displayed in the human-computer interaction interface provided by the browser. When the browser receives a click operation from a user (such as user A) on the sharing entrance, multiple platforms are displayed in the human-computer interaction interface, such as platform A, platform B and platform C; when a click operation from user A on platform B is received, a candidate object list consisting of multiple candidate objects in platform B that have a social relationship with user A (such as a friend relationship, or mutual comments, likes, etc.) can be displayed in the human-computer interaction interface. For example, assuming that the candidate object list includes user 1, user 2, user 3 and user 4; when user A selects user 2 from the candidate object list, user 2 can be determined as the shared object, and a table document in the form of an online document is sent to the terminal device associated with user 2, so that user A and user 2 can collaboratively edit the online document.

[0099] In other embodiments, before sending a spreadsheet document in the form of an online document to at least one shared object as a sharing object, at least one shared object may be determined in any of the following ways: at least one object in the historical sending record of the sharing object, whose number of sending times is greater than a sending number threshold (for example, 5 times), is determined as at least one shared object (for example, taking the sharing object as user A as an example, assuming that user A has sent online documents to user 1 2 times, to user 2 9 times, and to user 3 4 times in the past period of time, then for this sharing operation, to automatically identify user 2 as the shared object, and send a spreadsheet document in the form of an online document to the terminal device associated with user 2); to characterize the social distance between the shared object (for example, the social relationship between the two users can be used to represent the relationship. The closer the two users are, the shorter the corresponding social distance is. For example, assuming that user A and user B are in a relationship, the social distance between user A and user B can be determined as 0.5; assuming that user A and user C are colleagues, the social distance between user A and user C can be determined as 1; assuming that user A and user D are friends, the social distance between user A and user D can be determined as At least one object whose social distance is determined to be 0.6) is less than a social distance threshold (e.g., 0.5) is determined as at least one shared object (for example, taking the shared object as user A, assuming that the social distance between user A and user 1 is 0.6, the social distance between user A and user 2 is 0.4, and the social distance between user A and user 3 is 1, then when user A shares a spreadsheet document, user 2 can be automatically determined as the shared object, and the spreadsheet document in the form of an online document can be sent to the terminal device associated with user 2); at least one object that belongs to the same group (e.g., a conversation group) as the shared object is determined as at least one shared object. Sharing object (for example, taking user A as the sharing object, for conversation group 1 where user A is located, users in conversation group 1 whose number of interactions with user A is greater than a number threshold (for example, 10 times) can be determined as shared objects. For example, assuming that user A has interacted with user 1 in conversation group 1 8 times, user 2 in conversation group 1 20 times, and user 3 in conversation group 1 4 times in the past period of time, when user A shares a spreadsheet document, user 2 can be automatically determined as the shared object, and the spreadsheet document in the form of an online document can be sent to the terminal device associated with user 2).

[0100] In some embodiments, the sharing object and at least one shared object perform collaborative editing on an online document including: for a cell currently being edited in the online document, displaying the identifier of the editing object of the cell being edited on the cell, wherein the editing object is any one of the sharing object and the at least one shared object. For example, taking at least one shared object as user 1 and user 2, assuming that user 1 is currently editing cell 1 in the online document, the identifier of user 1 (e.g., user 1's account or avatar) can be displayed on cell 1, so that other users can understand the editing status of the online document in a timely manner, avoid repeated editing of the same cell, and further improve the editing efficiency of users.

[0101] In other embodiments, see Figure 4C , Figure 4C is a flow chart of a web page processing method provided in an embodiment of the present application, such as Figure 4C As shown, after executing Figure 3 After step 103 shown, you can also perform Figure 4C Step 105 shown combines Figure 4C Step 105 is shown for explanation.

[0102] In step 105, in response to an editing operation of the online document by any one of the sharing object and the at least one shared object, the edited online document is updated and displayed in the human-computer interaction interface.

[0103] Here, the types of editing operations may include: online editing operations and offline editing operations, wherein, for online editing operations, the edited online document may be updated and displayed in real time in the human-computer interaction interface; and for offline editing operations, the edited online document may be updated and displayed in the human-computer interaction interface after any object switches from an offline state to an online state.

[0104] For example, taking user 2 as an example, any object is at least one shared object. User 2 can perform online editing operations on online documents, or perform offline editing operations on online documents. For online editing operations triggered by user 2 on online documents, the edited online documents can be updated and displayed in real time in the human-computer interaction interface; and for offline editing operations triggered by user 2 on online documents, when user 2's account switches from offline to online, the offline editing operation triggered by user 2 is obtained, and the online document is edited based on the obtained offline editing operation, and then the edited online document is updated and displayed in the human-computer interaction interface.

[0105] The web page processing method provided in the embodiment of the present application, after performing table conversion processing on the web page to obtain a table document, can also send the obtained table document to at least one shared object in the form of an online document. In this way, the purpose of multiple people online collaboratively editing table documents is achieved, the user's needs for rapid document generation and convenient editing are met, and the user's editing efficiency is also improved.

[0106] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0107] In the related art, when a user browses a web page through a browser, the toolbox in the browser usually only provides the following functions: saving the web page as a long image, a portable document format (PDF), and an offline web page. There is no solution for converting a web page into a spreadsheet document. In addition, the editing capabilities after converting the web page to PDF or a long image are also limited.

[0108] In view of this, the embodiment of the present application provides a web page processing method, which can convert the Hyper Text Markup Language (HTML) content included in the web page into an Excel document (i.e., a table document), so as to meet the different scenarios of user needs for information content. Specifically, the web page content with obvious repeated information blocks, such as search results page, e-commerce web page, popular rankings, etc., can be quickly converted into a table document. At the same time, the embodiment of the present application also provides portable visualization and multi-person shared online editing operation capabilities, which improves the user's operating efficiency and improves the tool product experience.

[0109] The web page processing method provided in the embodiment of the present application is described in detail below.

[0110] In some embodiments, for the document scenario of the browser, after the HTML content included in the web page is intelligently identified to generate a table document, the generated table document can also be portable edited, for example, by dragging a cell in the table document to achieve the shift of information in the table document. In addition, the ability of multi-person online shared editing of table documents is also provided, for example, the table document can be shared in the form of an online document, thereby realizing multi-person online shared editing.

[0111] For example, see Fig. 6A , Fig. 6A is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application, such as Fig. 6A As shown, a toolbox entrance, such as a "Toolbox" button 602, is displayed in the human-computer interaction interface 601 provided by the browser. When the browser receives a click operation on the "Toolbox" button 602 from the user, the toolbox interface 603 is displayed in the human-computer interaction interface 601 (for example, a toolbox interface 603 is displayed in a pop-up window, and a table conversion tool, such as an "Excel" button 604, is displayed in the toolbox interface 603). When the browser receives a click operation on the "Excel" button 604 from the user, a table document 605 corresponding to the HTML content included in the current webpage is displayed in the human-computer interaction interface 601, wherein the multiple pieces of information included in the webpage are correspondingly filled in multiple cells of the table document 605. For example, when the HTML content included in a web page contains multiple sets of information, such as a web page containing quotation information of multiple hotels, after the user clicks the "Excel" button 604 displayed in the toolbox details interface 603, the multiple sets of information included in the web page can be converted into a spreadsheet document after being separately identified, wherein the multiple sets of information included in the web page (such as hotel name, pictures, ratings, and prices, etc.) will be filled in multiple cells of the spreadsheet document accordingly (for example, pictures of multiple hotels can be filled in the same column of the spreadsheet document, and the ratings of multiple hotels can be filled in another column of the spreadsheet document; in addition, information such as hotel name, pictures, ratings, and prices for the same hotel can be filled in the same row of the spreadsheet document).

[0112] For example, see Figure 6B , Figure 6B is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application, such as Figure 6B As shown, after obtaining the table document 605, the user can also control the table document 605 to enter an editable state by clicking a state control displayed in the human-computer interaction interface 601, such as a "drag edit" button 606, so as to realize portable editing of the table document. For example, when the browser receives a user's click operation on the "drag edit" button 606 displayed in the human-computer interaction interface 601, the "drag edit" button 606 will be in a highlighted state, indicating that the table document 605 is currently in an editable state. At this time, the user can realize the displacement of information in the table document 605 by dragging a cell (such as cell 607) in the table document 605. For example, after dragging the cell 607, the information filled in the cell 607 will also move accordingly.

[0113] In some embodiments, after opening the browser, the user can also enter the file interface by clicking the file entry in the bottom navigation bar, and then enter the document browsing list by clicking the "Document" entry displayed on the file interface, and then open the generated table document by clicking the entry of the table document in the document browsing list.

[0114] For example, see Figure 6C , Figure 6C is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application, such as Figure 6C As shown, a navigation bar is displayed in the human-computer interaction interface 601 provided by the browser, and a file entry, such as a "File" button 608, is displayed in the navigation bar. When the browser receives a click operation from the user on the "File" button 608, a file interface 609 is displayed, and a document entry, such as a "Document" button 610, is displayed in the file interface 609. When the browser receives a click operation from the user on the "Document" button 610, a document detail interface is displayed in the human-computer interaction interface 601. A document browsing list consisting of multiple documents that have been generated is displayed in the document detail interface. When the browser receives a click operation from the user on an entry of a document in the document browsing list (such as an entry 611 of a table document 605), the table document 605 is displayed in the human-computer interaction interface, so that the generated table document can be viewed.

[0115] The following is a detailed description of the editing process of the converted table document.

[0116] For example, see Fig.6D , Fig.6D is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application, such as Fig.6D As shown, when the browser receives a user's click operation on the "drag edit" button 606 displayed in the human-computer interaction interface 601, the "drag edit" button 606 will be in a highlighted state, indicating that the table document 605 is currently in an editable state. At this time, the user can change the order of information in the table document 605 by dragging a cell in the table document 605. For example, when a user drags a cell 607 to the position where a cell 612 in the table document 605 is located, the first information filled in the cell 607 (such as the picture of hotel A) can be moved to the cell 612 and displayed in a manner of covering the cell 612. In addition, when the cell 612 is originally filled with the second information (such as the evaluation information of hotel C), the preview area 613 can also be suspended in the table document 605. The second information originally filled in the cell 612, as well as the displacement entrance (such as the "displacement" button 614) and the deletion entrance (such as the "delete" button 615) are displayed in the preview area 613. When the user clicks on the "Shift" button 614, the second information filled in cell 612 can be moved to cell 607; when the user clicks on the "Delete" button 615, the second information filled in cell 612 can be deleted. In this way, the purpose of portable editing of table documents is achieved.

[0117] In other embodiments, users can also share links to enable multiple people to simultaneously edit a spreadsheet document converted from a web page online.

[0118] For example, see Fig. 6E , Fig. 6E is a schematic diagram of an application scenario of the web page processing method provided in an embodiment of the present application, such as Fig. 6E As shown, when the browser receives a user click operation on a sharing entry displayed in the human-computer interaction interface 601, such as a "share" button 616, a sharing platform interface 617 will be displayed in a pop-up window, and multiple candidate platforms will be displayed in the sharing platform interface 617 for the user to choose. For example, after the user selects a platform, multiple candidate objects included in the platform will be further displayed. Then, the object selected by the user from the multiple candidate objects can be determined as the shared object, and a table document is sent to the client (such as a browser) of the shared object in the form of an online document. Continue to see Fig. 6E After the user selects the object to be shared, the avatar of the shared object selected by the user can be displayed in the human-computer interaction interface 601, and the logo of the shared object can be displayed on the cell where the shared object is edited. For example, when the user's friend 1 edits cell 618, the logo of friend 1 can be displayed on cell 618; when the user's friend 2 edits cell 619, the logo of friend 2 can be displayed on cell 619. In this way, by visually displaying the editing process of each shared object for the table document, it is convenient for users to distinguish.

[0119] In some embodiments, the entire process of the web page processing method provided in the embodiments of the present application may involve interactions between users, clients (such as browsers), and servers, wherein the server needs to analyze and identify the HTML content included in the web page and generate corresponding data in preparation for generating the final table document.

[0120] For example, see Figure 7 , Figure 7 is a flow chart of a web page processing method provided in an embodiment of the present application, such as Figure 7 As shown, after the browser converts the HTML content included in the web page into a picture (for example, by taking a screenshot of the current web page), the converted picture can be uploaded to the server for the first image recognition process. For example, the server can identify the part of the picture that matches the image model ID "event" to divide the picture uploaded by the browser into event 1 (for example, hotel A) pictures, event 2 (for example, hotel B) pictures, event 3 (for example, hotel C) pictures, etc. Then, for each event picture, the server can also perform a second image recognition process. For example, taking the event 1 picture as an example, the server can also identify the part of the event 1 picture that matches the image model ID "unit" to further divide the event 1 picture into unit 1 pictures, unit 2 pictures, unit 3 pictures, etc., and then optical character recognition (OCR, Optical Character Recognition) can be used to obtain the data (for example, text information) corresponding to each unit picture. Finally, the server can classify the obtained text information by event, and fill the obtained text information into the corresponding cells of the table document according to the format requirements of the client to display the table document, so as to generate the final table document.

[0121] It should be noted that, for unit images that do not contain text information (such as hotel pictures), the server can perform image recognition processing to crop the unit images to generate image files, and fill the generated image files into the table document.

[0122] For example, see Figure 8 , Figure 8 is a schematic diagram of a table document converted from a web page provided in an embodiment of the present application, such as Figure 8 As shown, multiple information included in the same event can be filled in the same row of the table document. For example, multiple information included in event 1 (such as hotel A) (such as hotel A's pictures, address, evaluation, name, etc.) can be filled in the first row of the table document, and multiple information included in event 2 (such as hotel B) (such as hotel B's pictures, address, evaluation, name, etc.) can be filled in the second row of the table document. In addition, text information corresponding to units of the same type can also be filled in the same column of the table document. For example, multiple hotel pictures can be filled in the first column of the table document, multiple hotel addresses can be filled in the second column of the table document, and multiple hotel evaluations can be filled in the third column of the table document. This makes it convenient for users to view.

[0123] In some embodiments, after obtaining the table document, the user can also click the "drag edit" button displayed in the human-computer interaction interface to make the table document enter an editable state. At this time, the user can drag a cell in the table document to achieve the displacement of the information filled in the cell in the table document.

[0124] In other embodiments, after obtaining the table document, the user may also share the table document with other users, for example, by sharing the address of the table document with other users, so that other users can obtain the table document based on the address and edit it simultaneously.

[0125] The web page processing method provided in the embodiment of the present application satisfies the style conversion between web pages and table documents, breaks the conversion barrier of the content container, thereby meeting the user's needs for rapid generation and portable editing of table documents, further improving the browser tool product functions, and expanding the use scenarios of users browsing web pages and editing table documents converted from web pages, which can increase the time users use the browser and improve the user experience.

[0126] The following is a description of an exemplary structure of a web page processing device 465 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the web page processing device 465 of the memory 460 may include: a display module 4651 and a sending module 4652.

[0127] Display module 4651 is used to display a web page in a human-computer interaction interface; and in response to a table conversion trigger operation on a web page, display a table document obtained after converting the web page into a table; wherein at least one information included in the web page is filled in at least one cell of the table document; sending module 4652 is used to respond to a sharing trigger operation on the table document, and send the table document in the form of an online document to at least one shared object as a sharing object; wherein the online document is used for collaborative editing by the sharing object and at least one shared object.

[0128] In some embodiments, the display module 4651 is also used to display a toolbox entrance in the human-computer interaction interface; and to display a toolbox interface in response to a trigger operation on the toolbox entrance, wherein the toolbox interface includes a table conversion tool; the web page processing device 465 also includes an identification module 4653, which is used to identify the trigger operation on the table conversion tool as a table conversion trigger operation on the web page; the display module 4651 is also used to display a table document obtained after converting the web page into a table.

[0129] In some embodiments, the human-computer interaction interface is displayed in the client, and the table conversion tool is a native function in the client.

[0130] In some embodiments, the human-computer interaction interface is displayed in the client, and the table conversion tool is a plug-in in the client; the web page processing device 465 also includes a download module 4654 and an installation module 4655, wherein the download module 4654 is used to download the plug-in from the server in response to the plug-in not being installed in the client; the installation module 4655 is used to install the plug-in.

[0131] In some embodiments, the web page processing device 465 also includes a moving module 4656, which is used to move the first information filled in the first cell to the second cell in response to the current landing point of the drag operation on the first cell in the table document being in the second cell, and the first information is displayed in a manner covering the second cell.

[0132] In some embodiments, when the second cell is originally filled with the second information, the display module 4651 is also used to move the second information to the preview area for display, wherein the preview area also displays at least one of the following: a displacement entry, a deletion entry; the moving module 4656 is also used to move the second information from the preview area to the first cell in response to a trigger operation on the displacement entry; the web page processing device 465 also includes a deletion module 4657, which is used to delete the second information from the preview area in response to a trigger operation on the deletion entry.

[0133] In some embodiments, the display module 4651 is also used to display an operation list in response to the current landing point of the drag operation on the first cell in the table document being in the second cell, wherein the operation list includes at least one of the following: swap entries, merge entries, and overlay entries; the moving module 4656 is also used to respond to a trigger operation on the swap entry, when the second cell was originally filled with the second information, move the first information filled in the first cell to the second cell, and move the second information to the first cell, and when the second cell is empty, move the first information filled in the first cell to the second cell; and to respond to a trigger operation on the merge entry, when the second cell was originally filled with the second information, move the first information filled in the first cell to the second cell, so as to display the first information and the second information in the second cell at the same time; and to respond to a trigger operation on the overlay entry, move the first information filled in the first cell to the second cell, and display the first information in a manner that covers the second cell.

[0134] In some embodiments, the display module 4651 is also used to display a status control in the human-computer interaction interface, wherein the status control is used to switch the state of the table document when triggered, and to represent different states in differentiated display methods. The types of states include: a locked state and an editable state. The locked state is a state that shields responses to editing operations triggered on the table document, and the editable state is a state that responds to editing operations triggered on the table document.

[0135] In some embodiments, the display module 4651 is also used to display multiple platforms in the human-computer interaction interface; and to display a list of candidate objects in the selected platform in response to a platform selection operation; the web page processing device 465 also includes a determination module 4658, which is used to determine at least one selected candidate object as at least one shared object in response to an object selection operation on the candidate object list.

[0136] In some embodiments, the determination module 4658 is also used to determine at least one shared object by any of the following methods: determining at least one object whose number of sends in the historical sending record of the sharing object is greater than a sending number threshold as at least one shared object; determining at least one object whose social distance with the sharing object is less than a social distance threshold as at least one shared object; determining at least one object belonging to the same group as the sharing object as at least one shared object.

[0137] In some embodiments, the display module 4651 is also used to display a document entry in the human-computer interaction interface; and to display a document details interface in response to a trigger operation on the document entry, wherein the document details interface includes an entry for at least one table document including a table document; and to display a target table document in response to a trigger operation on an entry for a target table document in at least one table document.

[0138] In some embodiments, the method for a sharing object and at least one shared object to collaboratively edit an online document includes: for a cell currently being edited in the online document, displaying an identifier of the editing object of the cell being edited on the cell, wherein the editing object is any one of the sharing object and the at least one shared object.

[0139] In some embodiments, the display module 4651 is also used to update and display the edited online document in the human-computer interaction interface in response to an editing operation of the sharing object and at least one shared object on the online document; wherein the types of editing operations include: online editing operations and offline editing operations; wherein, for online editing operations, the edited online document is updated and displayed in real time in the human-computer interaction interface; wherein, for offline editing operations, after any object switches from an offline state to an online state, the edited online document is updated and displayed in the human-computer interaction interface.

[0140] In some embodiments, the web page processing device 465 also includes a conversion module 4659, an image recognition module 46510, a creation module 46511 and a filling module 46512, wherein the conversion module 4659 is used to convert a web page into a picture; the image recognition module 46510 is used to perform image recognition processing on the picture to obtain at least one information included in the picture; the creation module 46511 is used to create an empty table document; the filling module 46512 is used to fill at least one information included in the picture into at least one cell of the empty table document to obtain a table document.

[0141] In some embodiments, the image recognition module 46510 is also used to call a first image recognition model to perform a first image recognition process on a picture to divide the picture into at least one event picture; wherein the first image recognition model is trained based on a sample picture and an area corresponding to at least one sample event marked in the sample picture; calling a second image recognition model to perform a second image recognition process on each event picture to divide each event picture into at least one unit picture; wherein the second image recognition model is trained based on a sample event picture and an area corresponding to at least one sample unit marked in the sample event picture, and the sample unit is an element of the sample event; performing optical character recognition processing on each unit picture to obtain at least one information included in the picture.

[0142] In some embodiments, the image recognition module 46510 is also used to perform optical character recognition processing on each unit picture. When the recognition is successful, the recognized text information is determined as a text information included in the picture; when the recognition fails, the unit picture is determined as a picture information included in the picture; the filling module 46512 is used to perform the following processing on each event picture: the text information or at least one unit picture included in the event picture is filled in at least one cell included in the same row or the same column of the empty table document.

[0143] In some embodiments, the web page processing device 465 also includes a parsing module 46513 and an acquisition module 46514, wherein the parsing module 46513 is used to parse the code source data of the web page to obtain multiple web page tags included in the web page; the acquisition module 46514 is used to obtain at least one information based on at least one target web page tag among the multiple web page tags; wherein the types of web page tags include text tags and image tags, each text tag specifies a corresponding text information displayed in the web page, and each image tag specifies a corresponding image information displayed in the web page; the creation module 46511 is used to create an empty table document; the filling module 46512 is used to fill at least one information in at least one cell of the empty table document to obtain a table document.

[0144] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, so it will not be repeated. Figure 3 , Figure 4B ,or Figure 4C The present invention should be understood by referring to the description of any one of the accompanying drawings.

[0145] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions (i.e., executable instructions), which are stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the webpage processing method described in the embodiment of the present application.

[0146] The present application embodiment provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the webpage processing method provided by the present application embodiment, for example, Figure 3 , Figure 4B ,or Figure 4C The web page processing method shown.

[0147] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0148] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0149] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0150] As an example, the executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0151] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.< / pre> < / pre> < / mark> < / mark> < / pre> < / mark>

Claims

1. A web page processing method, characterized in that: The method comprises: Displaying web pages in a human-computer interaction interface; In response to a table conversion trigger operation on the webpage, converting the webpage into a picture; Performing a first image recognition process on the picture to divide the picture into at least one event picture; Performing a second image recognition process on each of the event pictures to divide each of the event pictures into at least one unit picture; Performing optical character recognition processing on each of the unit images to obtain at least one information included in the image; Creating an empty table document, and filling at least one information included in the picture into at least one cell of the empty table document, to obtain a table document in the form of an online document; Displaying the table document obtained by converting the web page into a table; wherein at least one information included in the web page is correspondingly filled in at least one cell of the table document; In response to a sharing trigger operation for the table document, the table document is sent in the form of an online document to at least one shared object as a sharing object; wherein the online document is used for collaborative editing by the sharing object and the at least one shared object.

2. The method according to claim 1, characterized in that The method further comprises: Displaying a toolbox entrance in the human-computer interaction interface; In response to a trigger operation on the toolbox entry, displaying a toolbox interface, wherein the toolbox interface includes a table conversion tool; The trigger operation for the table conversion tool is identified as a table conversion trigger operation for the webpage.

3. The method according to claim 2, characterized in that The human-computer interaction interface is displayed in the client, and the table conversion tool is a native function in the client.

4. The method according to claim 2, characterized in that: The human-computer interaction interface is displayed in the client, and the table conversion tool is a plug-in in the client; Before displaying the plug-in in the toolbox interface, the method further includes: In response to the plug-in not being installed in the client, the plug-in is downloaded from the server and installed.

5. The method according to claim 1, characterized in that After displaying the table document obtained by performing table conversion on the webpage, the method further includes: In response to the current drop point of the drag operation on the first cell in the table document being in the second cell, the first information filled in the first cell is moved to the second cell, and the first information is displayed in a manner of covering the second cell.

6. The method according to claim 5, characterized in that When the second cell is originally filled with second information, the method further includes: moving the second information to a preview area for display, wherein the preview area further displays at least one of the following: a displacement entry and a deletion entry; In response to a trigger operation on the displacement entry, moving the second information from the preview area to the first cell; In response to a trigger operation on the deletion entry, the second information is deleted from the preview area.

7. The method according to claim 1, characterized in that After displaying the table document obtained by performing table conversion on the webpage, the method further includes: In response to the current drop point of the drag operation on the first cell in the table document being in the second cell, displaying an operation list, wherein the operation list includes at least one of the following: exchanging entries, merging entries, and overwriting entries; In response to a trigger operation on the exchange entry, when the second cell is originally filled with second information, the first information filled in the first cell is moved to the second cell, and the second information is moved to the first cell; when the second cell is empty, the first information filled in the first cell is moved to the second cell; In response to a trigger operation on the merge entry, when the second cell is originally filled with second information, the first information filled in the first cell is moved to the second cell, so that the first information and the second information are simultaneously displayed in the second cell; In response to a trigger operation on the covering entry, the first information filled in the first cell is moved to the second cell, and the first information is displayed in a manner of covering the second cell.

8. The method according to claim 1, characterized in that The method further comprises: A status control is displayed in the human-computer interaction interface, wherein the status control is used to switch the status of the table document when triggered, and to represent different statuses in differentiated display methods, and the status types include: a locked state and an editable state, the locked state is a state that shields responses to editing operations triggered on the table document, and the editable state is a state that responds to editing operations triggered on the table document.

9. The method according to claim 1, characterized in that: In response to a sharing trigger operation on the table document, the method further includes: Displaying multiple platforms in the human-computer interaction interface; In response to the platform selection operation, displaying a candidate object list in the selected platform; In response to an object selection operation on the candidate object list, at least one selected candidate object is determined as the at least one shared object.

10. The method according to claim 1, characterized in that Before sending the table document in the form of an online document to at least one shared object as a sharing object, the method further includes: The at least one shared object is determined by any of the following methods: Determine at least one object in the historical sending record of the sharing object, to which the sending times are greater than the sending times threshold, as the at least one shared object; Determine at least one object whose social distance with the sharing object is less than a social distance threshold as the at least one shared object; At least one object belonging to the same group as the sharing object is determined as the at least one shared object.

11. The method according to claim 1, characterized in that: The method further comprises: Displaying a document entry in the human-computer interaction interface; In response to a trigger operation on the document entry, displaying a document details interface, wherein the document details interface includes an entry for at least one table document including the table document; In response to a trigger operation on an entry of a target table document among the at least one table document, the target table document is displayed.

12. The method according to claim 1, characterized in that The manner in which the sharing object and the at least one shared object collaboratively edit the online document includes: For a cell currently being edited in the online document, an identifier of an editing object of the cell being edited is displayed on the cell, wherein the editing object is any one of the sharing object and the at least one shared object.

13. The method according to claim 1, characterized in that The method further comprises: In response to an editing operation of the online document by any one of the sharing object and the at least one shared object, updating and displaying the edited online document in the human-computer interaction interface; The types of editing operations include: online editing operations and offline editing operations; Wherein, for the online editing operation, the edited online document is updated and displayed in real time in the human-computer interaction interface; Wherein, for the offline editing operation, after any object is switched from an offline state to an online state, the edited online document is updated and displayed in the human-computer interaction interface.

14. The method according to claim 1, characterized in that The performing a first image recognition process on the picture to divide the picture into at least one event picture includes: Calling a first image recognition model to perform a first image recognition process on the picture to divide the picture into at least one event picture; wherein the first image recognition model is trained based on a sample picture and an area corresponding to at least one sample event marked in the sample picture; The performing a second image recognition process on each of the event pictures to divide each of the event pictures into at least one unit picture includes: Calling a second image recognition model to perform second image recognition processing on each of the event pictures to divide each of the event pictures into at least one unit picture; wherein the second image recognition model is trained based on a sample event picture and an area corresponding to at least one sample unit marked in the sample event picture, and the sample unit is an element of the sample event.

15. The method according to claim 1, characterized in that The optical character recognition process is performed on each of the unit images to obtain at least one information included in the image, including: Performing optical character recognition processing on each of the unit images, and when the recognition is successful, determining the recognized text information as a piece of text information included in the image; when the recognition fails, determining the unit image as a piece of image information included in the image; The step of filling at least one information included in the picture into at least one cell of the empty table document includes: The following processing is performed for each of the event images: The text information corresponding to at least one unit picture included in the event picture or the at least one unit picture is filled in at least one cell included in the same row or the same column of the empty table document.

16. The method according to claim 1, characterized in that Before displaying the table document obtained by performing table conversion on the webpage, the method further includes: Parsing the code source data of the webpage to obtain a plurality of webpage tags included in the webpage; Based on at least one target web page tag among the plurality of web page tags, at least one information is acquired; wherein the types of the web page tags include text tags and image tags, each of the text tags specifies a corresponding text information displayed in the web page, and each of the image tags specifies a corresponding image information displayed in the web page; Create an empty table document, and fill the at least one information into at least one cell of the empty table document to obtain the table document.

17. A web page processing device, characterized in that: The web page processing device comprises: A display module, used to display web pages in the human-computer interaction interface; The display module is further configured to convert the web page into a picture in response to a table conversion trigger operation on the web page; An image recognition module, configured to perform a first image recognition process on the picture to divide the picture into at least one event picture; perform a second image recognition process on each of the event pictures to divide each of the event pictures into at least one unit picture; perform an optical character recognition process on each of the unit pictures to obtain at least one information included in the picture; Create a module to create an empty table document; A filling module, used to fill at least one information included in the picture into at least one cell of the empty table document to obtain a table document in the form of an online document; The display module is further used to display the table document obtained by converting the web page into a table; wherein at least one information included in the web page is correspondingly filled in at least one cell of the table document; A sending module is used to respond to a sharing trigger operation for the table document and send the table document in the form of an online document to at least one shared object as a sharing object; wherein the online document is used for collaborative editing by the sharing object and the at least one shared object.

18. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; The processor is used to implement the web page processing method described in any one of claims 1 to 16 when executing the executable instructions stored in the memory.

19. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when executed by a processor, the web page processing method described in any one of claims 1 to 16 is implemented.

20. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the web page processing method described in any one of claims 1 to 16 is implemented.

Citation Information

Patent Citations

  • System and method for abstraction of Web data based on vision

    CN101226548A

  • Image processing method and device, computer equipment and storage medium

    CN111507352A

  • Table editing method, device and equipment, and storage medium

    CN113268964A