Page data acquisition method, page browsing request method, device and apparatus

By filtering and removing data from the received page data set, the problem of delayed page data display was solved, enabling timely acquisition and display of page data and avoiding the waste of time for users to refresh and make repeated requests.

CN115374379BActive Publication Date: 2025-12-16BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210856845.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-20
Publication Date
2025-12-16
Estimated Expiration
2042-07-20

AI Technical Summary

Technical Problem

When users refresh pages on online platforms, the delayed display of page data leads to wasted time and duplicate requests.

Method used

By receiving the page data set returned by the middleware server, data pruning is performed to filter out unnecessary data. In response to the page data set being empty after pruning, a page data retrieval request for the next page number is sent to the middleware server until the data is not empty or a preset threshold is reached.

Benefits of technology

This avoids users having to refresh and make repeated requests, reduces wasted time, and ensures timely display of page data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115374379B_ABST
    Figure CN115374379B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a page data obtaining method, a page browsing request method, an apparatus and a device. A specific implementation of the method comprises: receiving a page data set returned by a middle platform server; performing data elimination processing on the page data set to obtain an eliminated page data set; in response to the eliminated page data set being empty and a target page number corresponding to the page data set being less than a preset threshold, sending, to the middle platform server, a page data obtaining request for a next page number of the target page number to obtain a page data set of the next page number of the target page number. The implementation is related to big data, avoids time waste caused by user refreshing and repeatedly sending requests, and avoids delayed display of page data.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a page data obtaining method, a page browsing request method, an apparatus and a device. BACKGROUND

[0002] On a network platform, a lot of page data (for example, order data) will be generated after a period of time, and the user may be a blank page when entering the page, and needs to pull down the page to refresh to see the page data. This is because the front-end server usually adopts the way of obtaining page data and filtering the obtained page data after receiving the request of the client, and then directly sends the filtered page data to the client. If this page data is all filtered out, then this page data is empty, and actually the next page has data, and the next page data can be seen only by pulling down the page to refresh.

[0003] However, the inventors have found that when the above-mentioned way is adopted, the following technical problems often exist:

[0004] The user's refreshing again and repeatedly sending the request will cause time waste, and further cause delay of displaying the page data.

[0005] The above information disclosed in the background section is only intended to enhance the understanding of the background of the present inventive concept, and therefore, it can include information that does not form the prior art known by those skilled in the art in the country. SUMMARY

[0006] The summary section is provided to introduce the concepts briefly in a simplified form, which will be described in detail in the specific embodiments section. The summary section is not intended to identify key or essential features of the claimed technology nor is it intended to be used to limit the scope of the claimed technology.

[0007] Some embodiments of the present disclosure propose a page data obtaining method, a page browsing request method, an apparatus and a device to solve one or more of the technical problems mentioned in the background section.

[0008] In a first aspect, some embodiments of the present disclosure provide a page data obtaining method, comprising: receiving a page data set returned by a middle platform server; performing data elimination processing on the page data set to obtain an eliminated page data set; in response to the eliminated page data set being empty and a target page number corresponding to the page data set being less than a preset threshold, sending, to the middle platform server, a page data obtaining request for a next page number of the target page number to obtain a page data set of the next page number of the target page number.

[0009] Optionally, the method further comprises: in response to the set of page data after elimination being not empty and the target page number being less than or equal to the preset threshold, sending the set of page data after elimination and the target page number to the client.

[0010] Optionally, the method further comprises: in response to the set of page data after elimination being empty and the target page number being equal to the preset threshold, sending the target page number and the page corresponding to the target page number to the client.

[0011] Optionally, before the receiving of the set of page data returned by the middle server, the method further comprises: receiving a page browsing request sent by the client, wherein the page browsing request comprises a current page number and a request processing server identifier; and in response to the request processing server identifier matching a server identifier corresponding to the front server, initiating a page data acquisition request for the current page number to the middle server.

[0012] Optionally, the data elimination processing on the set of page data to obtain the set of page data after elimination comprises: for each page data in the set of page data, in response to determining that the page data satisfies a preset condition, determining the page data as to-be-filtered page data; and eliminating the obtained to-be-filtered page data from the set of page data to obtain a set of filtered page data.

[0013] Optionally, the data elimination processing on the set of page data to obtain the set of page data after elimination further comprises: for each filtered page data in the set of filtered page data, in response to not obtaining item information corresponding to the filtered page data, determining the filtered page data as abnormal page data; and eliminating the obtained abnormal page data from the set of filtered page data to obtain the set of page data after elimination.

[0014] In a second aspect, some embodiments of the present disclosure provide a page browsing request method, which comprises: receiving a set of page data after elimination and a target page number sent by a front server, wherein the set of page data after elimination is a set of page data obtained by the front server from a middle server and not empty, and the target page number is a page number when the page data obtained by the front server from the middle server is not empty; displaying the set of page data after elimination; and in response to detecting a data request operation, initiating a page browsing request for a next page number of the target page number.

[0015] In a third aspect, some embodiments of the present disclosure provide a page data obtaining apparatus. The apparatus comprises: a page data set receiving unit configured to receive a page data set returned by a middle server; a data elimination processing unit configured to perform data elimination processing on the page data set to obtain an eliminated page data set; and a page data obtaining request unit configured to, in response to the eliminated page data set being empty and a target page number corresponding to the page data set being less than a preset threshold, send a page data obtaining request for a next page number of the target page number to the middle server to obtain a page data set of the next page number of the target page number.

[0016] Optionally, the page data obtaining apparatus further comprises a sending unit configured to, in response to the eliminated page data set being not empty and the target page number being less than or equal to the preset threshold, send the eliminated page data set and the target page number to a client.

[0017] Optionally, the page data obtaining apparatus further comprises a page sending unit configured to, in response to the eliminated page data set being empty and the target page number being equal to the preset threshold, send the target page number and a page corresponding to the target page number to the client.

[0018] Optionally, the page data obtaining apparatus further comprises, before the page data set receiving unit, a page browsing request receiving unit and a current page number page data obtaining request unit. The page browsing request receiving unit is configured to receive a page browsing request sent by a client, wherein the page browsing request comprises a current page number and a request processing server identifier. The current page number page data obtaining request unit is configured to, in response to the request processing server identifier matching a server identifier corresponding to a front-end server, initiate a page data obtaining request for the current page number to a middle server.

[0019] Optionally, the data elimination processing unit is further configured to: for each page data in the page data set, in response to determining that the page data satisfies a preset condition, determine the page data as to-be-filtered page data; and eliminate the obtained to-be-filtered page data from the page data set to obtain a filtered page data set.

[0020] Optionally, the data elimination processing unit is further configured to: for each filtered page data in the filtered page data set, in response to not obtaining item information corresponding to the filtered page data, determine the filtered page data as abnormal page data; and eliminate the obtained abnormal page data from the filtered page data set to obtain the eliminated page data set.

[0021] In a fourth aspect, some embodiments of the present disclosure provide a page browsing request apparatus, the apparatus comprising: a post-elimination page data set receiving unit configured to receive a post-elimination page data set and a target page number sent by a foreground server, wherein the post-elimination page data set is a set in which page data obtained by the foreground server from a background server is not empty, and the target page number is a page number in which page data obtained by the foreground server from the background server is not empty; a display unit configured to display the post-elimination page data set; and a page browsing request unit configured to initiate a page browsing request for a next page number of the target page number in response to detecting a data request operation.

[0022] In a fifth aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; and a storage device having one or more programs stored thereon, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method described in any implementation manner of the first aspect or the second aspect.

[0023] In a sixth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any implementation manner of the first aspect or the second aspect.

[0024] In a seventh aspect, some embodiments of the present disclosure provide a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method described in any implementation manner of the first aspect or the second aspect.

[0025] The above various embodiments of the present disclosure have the following beneficial effects: by the page data obtaining method of some embodiments of the present disclosure, time waste caused by refreshing again and repeatedly sending requests can be avoided, and delay display of page data can also be avoided. Specifically, the reason for delay display of page data is that after receiving blank page data, the user needs to refresh again and repeatedly send requests, which causes time waste. Based on this, the page data obtaining method of some embodiments of the present disclosure first receives a page data set returned by a middle platform server. Thus, the received page data set can be filtered. Then, data elimination processing is performed on the above page data set to obtain an eliminated page data set. Thus, filtering of the page data set can be implemented (for example, filtering out page data containing sensitive words or page data for which corresponding item information is not obtained). In response to the eliminated page data set being empty and the target page number corresponding to the page data set being less than a preset threshold, a page data obtaining request for a next page number of the target page number is sent to the middle platform server to obtain a page data set of the next page number of the target page number. Thus, by filtering the received page data set, in the case that the filtered page data set is empty, a page data obtaining request for a next page number of the target page number is sent to the middle platform server again to obtain a page data set of the next page number of the target page number. Thus, time waste caused by refreshing again and repeatedly sending requests can be avoided, and delay display of page data can also be avoided. BRIEF DESCRIPTION OF DRAWINGS

[0026] The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by describing in detail some embodiments thereof with reference to the attached drawings. The same or similar components have the same or similar reference labels. It should be understood that the drawings are schematic and elements and features are not necessarily to scale.

[0027] Figure 1 is an architecture diagram of an exemplary system to which some embodiments of the present disclosure can be applied;

[0028] Figure 2 is a timing diagram of some embodiments of the page data obtaining method according to the present disclosure;

[0029] Figure 3 is a flowchart of another embodiment of the page data obtaining method according to the present disclosure;

[0030] Figure 4 is a flowchart of still another embodiment of the page data obtaining method according to the present disclosure;

[0031] Figure 5is a flow chart of some embodiments of the page browsing request method according to the present disclosure;

[0032] Figure 6 is a structural schematic diagram of some embodiments of the page data acquisition apparatus according to the present disclosure;

[0033] Figure 7 is a structural schematic diagram of some embodiments of the page browsing request apparatus according to the present disclosure;

[0034] Figure 8 is a structural schematic diagram of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0035] Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms, and should not be interpreted as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the scope of protection of the present disclosure.

[0036] In addition, it should be noted that only parts related to the present invention are shown in the drawings for ease of description. The embodiments in the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0037] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules or units.

[0038] It should be noted that the adjectives "one", "multiple" mentioned in the present disclosure are illustrative and not limiting, and those skilled in the art should understand that, unless otherwise explicitly stated in the context, it should be understood as "one or more".

[0039] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.

[0040] The collection, storage, use, etc. of user personal information (such as page data, user historical behavior data) involved in the present disclosure should be performed by the relevant organization or individual to fulfill the obligations including conducting personal information security impact assessment, fulfilling the notification obligations to the personal information subject, obtaining the prior authorization consent of the personal information subject, etc. before performing the corresponding operations.

[0041] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0042] Figure 1 An exemplary system architecture 100 is shown, in which a page data obtaining method or a page data obtaining apparatus according to some embodiments of the present disclosure can be applied.

[0043] As shown in Figure 1 , the system architecture 100 can include a client 101, a front-end server 102, a middle-end server 103, and networks 104, 105. The network 104 is a medium for providing a communication link between the client 101 and the front-end server 102. The network 105 is a medium for providing a communication link between the front-end server 102 and the middle-end server 103. The networks 104, 105 can include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0044] The user can use the client 101 to interact with the front-end server 102 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the client 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0045] The front-end server 102 can interact with the middle-end server 103 through the network 105 to receive or send messages, etc. The front-end server 102 can be a server that provides various services, for example, the front-end server 102 can forward the received requests or analyze the received data, etc., and feed back the processing results (such as the pruned page data set) to the client 101.

[0046] The middle-end server 103 can be a server that provides various services, for example, the middle-end server 103 can receive the requests sent by the front-end server 102, and perform integration analysis on the data according to the requests, etc., and feed back the processing results (such as the pruned page data set) to the front-end server 102.

[0047] It should be noted that the page data obtaining method provided by the embodiments of the present disclosure is generally executed by the front-end server 102. Correspondingly, the page data obtaining apparatus is generally arranged in the front-end server 102.

[0048] It should be understood that Figure 1 the number of clients, front-end servers, middle-end servers, and networks in

[0049] Continuing to refer to Figure 2 , a timing diagram 200 is shown, which illustrates some embodiments of the page data obtaining method according to the present disclosure.

[0050] In some embodiments of the present application, the client can send a page browsing request 201 to the gateway, and the gateway can forward the page browsing request 202 to a specific front-end server after receiving the page browsing request 201. The front-end server receives the page browsing request, wherein the page browsing request includes a current page number and a request processing server identifier. In response to the request processing server identifier matching the server identifier corresponding to the front-end server, the front-end server initiates a page data acquisition request 203 for the current page number to the middle server. After receiving the page data acquisition request, the middle server can return a page data set 204 to the front-end server. The front-end server receives the page data set returned by the middle server, and then performs step 205: performs data elimination processing on the page data set to obtain an eliminated page data set. Then step 206 is performed: in response to the eliminated page data set being empty and the target page number corresponding to the page data set being less than a preset threshold, a page data acquisition request 207 for the next page number of the target page number is sent to the middle server to acquire the page data set of the next page number of the target page number. Until the eliminated page data set is not empty or the target page number is the last page number, stop sending the page data acquisition request for the next page number of the target page number. Step 208 is performed: in response to the eliminated page data set being not empty and the target page number being less than or equal to the preset threshold, the eliminated page data set and the target page number are sent 209 to the client. Step 210 is performed: in response to the eliminated page data set being empty and the target page number being equal to the preset threshold, the target page number and the page corresponding to the target page number are sent 211 to the client.

[0051] With reference to Figure 3 , a flow 300 of some embodiments of a page data acquisition method according to the present disclosure is shown. The page data acquisition method includes the following steps:

[0052] Step 301, receiving a page data set returned by a middle server.

[0053] In some embodiments, the execution subject of the page data obtaining method can receive the page data set returned by the middle platform server through a wired connection or a wireless connection. The page data in the page data set can be data in a page (e.g., order data or user historical behavior data). The order data can include at least one of the following: item name, quantity, attribute (e.g., price), price-related information (e.g., discount information), and description information (e.g., evaluation information). The user historical behavior data can be user behavior data such as adding, deleting, updating, and searching data. The middle platform server can be a server that can process information according to a request initiated by the execution subject and return the processed information to the execution subject. It should be noted that the wireless connection can include, but is not limited to, 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other now known or future developed wireless connection methods.

[0054] As an example, the page data can include item name, attribute, price-related information, and description information. The page data set can be {[dress, 80 yuan, discount 8 yuan, ([soft fabric, wide loose, cost-effective])}, [pants, 90 yuan, discount 5 yuan, ([versatile, suitable size, affordable])}, [shirt, 50 yuan, discount 3 yuan, ([color, silk, highly recommended])]}.

[0055] In some optional implementations of some embodiments, before the execution subject receives the page data set returned by the middle platform server, the execution subject can further include the following steps:

[0056] First, receive a page browsing request sent by a client.

[0057] In some embodiments, the execution subject can receive the page browsing request sent by the client through a gateway. The page browsing request includes a current page number and a request processing server identifier. The request processing server identifier can be the identifier of the server for processing the page browsing request.

[0058] As an example, the current page number can be page 1. The request processing server identifier can be address information or number information of the server.

[0059] Second, in response to the request processing server identifier matching the server identifier corresponding to the front-end server, initiate a page data obtaining request for the current page number to the middle platform server.

[0060] In some embodiments, the execution subject can compare the request processing server identifier included in the page browsing request with the server identifier stored locally by the execution subject. If the comparison is consistent, it can be considered that the execution will be used to process the page browsing request. Since different data can require different front-end servers for processing, assigning various data to dedicated front-end servers can improve the efficiency of data processing. Thus, by comparing the server identifiers, the front-end server used to process the page browsing request can be accurately determined, and the page data can be accurately and quickly obtained. The server identifier corresponding to the front-end server can be the server identifier of the execution subject.

[0061] In practice, as an example, after determining that the page browsing request needs to be processed, the execution subject requests the mid-server to obtain the page data of the first page.

[0062] The client sends a page browsing request to the gateway, and the gateway forwards the page browsing request. After the front-end server receives the page browsing request, the gateway sends a page data acquisition request to the mid-server, so that the page data can be accurately and quickly obtained.

[0063] Step 302: performing data elimination processing on the page data set to obtain a page data set after elimination.

[0064] In some embodiments, the execution subject can perform data elimination processing on the page data set to obtain a page data set after elimination. The execution subject can perform data elimination processing on the page data set by self-defining or other various ways to obtain a page data set after elimination.

[0065] In some optional implementations of some embodiments, the execution subject performs data elimination processing on the page data set to obtain a page data set after elimination, which can include the following steps:

[0066] First, for each page data in the page data set, in response to determining that the page data meets a preset condition, the page data is determined as filtered page data. The preset condition can be page data including a preset word (for example, a sensitive word or an opposite word). In practice, in response to determining that the page data does not meet the preset condition, the page data is retained.

[0067] Second, eliminate the obtained filtered page data from the page data set to obtain a filtered page data set.

[0068] In some optional implementations of some embodiments, the performing subject performs data culling on the page data set to obtain a culling result of the page data set, and the method further includes the following steps:

[0069] In a first step, for each piece of filtered page data in the filtered page data set, the performing subject determines the filtered page data as abnormal page data in response to not obtaining item information corresponding to the filtered page data.

[0070] As an example, the performing subject can obtain the item information from an item intermediary server. The item intermediary server stores various item information. The item information can be an item picture, an item name, or the like. In practice, the performing subject retains the page data in response to obtaining the item information corresponding to the filtered page data.

[0071] In a second step, the performing subject culls the obtained abnormal page data from the filtered page data set to obtain the culling result of the page data set.

[0072] In this way, by culling the page data in the page data set that meets the preset condition and for which the item information is not obtained, the performing subject can retain the required page data.

[0073] In step 303, in response to the culling result of the page data set being empty and a target page number corresponding to the page data set being less than a preset threshold, the performing subject sends a page data obtaining request for a next page number of the target page number to the intermediary server to obtain a page data set of the next page number of the target page number.

[0074] In some embodiments, the performing subject can send the page data obtaining request for the next page number of the target page number to the intermediary server to obtain the page data set of the next page number of the target page number in response to the culling result of the page data set being empty and the target page number corresponding to the page data set being less than the preset threshold. The target page number can be a page number in which the page data set is located. The preset threshold can be equal to a total number of page numbers.

[0075] As an example, the target page number can be page 2. The preset threshold can be 5. If the culling result of page 2 is empty, since 2 is less than 5, the performing subject can send a page data obtaining request for page 3 to the intermediary server.

[0076] The above various embodiments of the present disclosure have the following beneficial effects: by the page data obtaining method of some embodiments of the present disclosure, time waste caused by refreshing again and repeatedly sending requests can be avoided, and meanwhile, delayed display of page data can be avoided. Specifically, the reason for causing delayed display of page data is that after receiving blank page data, the user needs to refresh again and repeatedly send requests, which causes time waste. Based on this, the page data obtaining method of some embodiments of the present disclosure first receives a page data set returned by a middle platform server. Thus, the received page data set can be filtered. Then, data elimination processing is performed on the above page data set to obtain an eliminated page data set. Thus, filtering of the page data set (for example, filtering out page data containing sensitive words or page data for which corresponding item information is not obtained) can be implemented. In response to the eliminated page data set being empty and the target page number corresponding to the page data set being less than a preset threshold, a page data obtaining request for a next page number of the target page number is sent to the middle platform server to obtain a page data set of the next page number of the target page number. Thus, by filtering the received page data set, in the case that the filtered page data set is empty, a page data obtaining request for a next page number of the target page number is sent to the middle platform server again to obtain a page data set of the next page number of the target page number. Thus, time waste caused by refreshing again and repeatedly sending requests can be avoided, and meanwhile, delayed display of page data can be avoided.

[0077] Further reference is made to Figure 4 which shows a flow 400 of another embodiment of a page data obtaining method. The flow 400 of the page data obtaining method includes the following steps:

[0078] Step 401, receiving a page data set returned by a middle platform server.

[0079] Step 402, performing data elimination processing on the page data set to obtain an eliminated page data set.

[0080] Step 403, in response to the eliminated page data set being empty and the target page number corresponding to the page data set being less than a preset threshold, sending a page data obtaining request for a next page number of the target page number to the middle platform server to obtain a page data set of the next page number of the target page number.

[0081] In some embodiments, the specific implementation of steps 401-403 and the resulting technical effects can refer to steps 301-303 in corresponding embodiments, which will not be described here again. Figure 3 The steps 301-303 in corresponding embodiments, which will not be described here again.

[0082] Step 404, in response to the fact that the set of page data after elimination is not empty and the target page number is less than or equal to the preset threshold, the set of page data after elimination and the target page number are sent to the client.

[0083] In some embodiments, the execution subject can send the set of page data after elimination and the target page number to the client in response to the fact that the set of page data after elimination is not empty and the target page number is less than or equal to the preset threshold.

[0084] For example, the target page number can be page 2. The preset threshold can be 5. If the set of page data after elimination of page 2 is not empty and 2 is less than 5. Therefore, the execution subject can send the set of page data after elimination of page 2 and the target page number (i.e. the page number 2 of page 2) to the client.

[0085] Step 405, in response to the fact that the set of page data after elimination is empty and the target page number is equal to the preset threshold, the target page number and the page corresponding to the target page number are sent to the client.

[0086] In some embodiments, the execution subject can send the target page number and the page corresponding to the target page number to the client in response to the fact that the set of page data after elimination is empty and the target page number is equal to the preset threshold.

[0087] For example, the target page number can be page 5. The preset threshold can be 5. If the set of page data after elimination of page 5 is empty and the target page number 5 is equal to the preset threshold 5. Therefore, the execution subject can send the target page number (i.e. the page number 5 of page 5) and the blank page corresponding to page 5 to the client.

[0088] As can be seen from Figure 4 Compared with the description of some embodiments corresponding to Figure 3 Compared with the description of some embodiments corresponding to Figure 4 The flow 400 of the page data acquisition method in some embodiments corresponding to the flow 400 of the page data acquisition method in some embodiments embodies the processing steps under different conditions of the set of page data after elimination and the target page number. Therefore, the scheme described in these embodiments can return different data to the client under different conditions, so that the client determines whether to initiate a request again or stop initiating a request, thereby improving the efficiency of page data acquisition.

[0089] Further reference is made to Figure 5 Fig. 5 shows the flow 500 of another embodiment of the page browsing request method. The flow 500 of the page browsing request method includes the following steps:

[0090] Step 501, receiving the set of page data after elimination and the target page number sent by the foreground server.

[0091] In some embodiments, the execution subject can receive the non-empty page data set and the target page number sent by the foreground server. The non-empty page data set is a set of page data obtained by the foreground server from the background server. The target page number is a page number when the page data obtained by the foreground server from the background server is not empty.

[0092] For example, the target page number can be page 4. The preset threshold can be 5. The non-empty page data set of page 4 is not empty, and 4 is less than 5.

[0093] Step 502, display the non-empty page data set.

[0094] In some embodiments, the execution subject can display the non-empty page data set.

[0095] Step 503, in response to detecting a data request operation, initiate a page browsing request for a next page number of the target page number.

[0096] In some embodiments, the execution subject can initiate a page browsing request for a next page number of the target page number in response to detecting a data request operation. The data request operation can be a request operation in which the user requests to refresh the page on the client side. For example, the user can click the refresh button or swipe the page in a predetermined direction.

[0097] For example, the target page number received by the execution subject can be the page number of page 4. When the execution subject detects a data request operation, a page browsing request for page 5 is initiated.

[0098] Through the page browsing request method of some embodiments of the present disclosure, the page data set that is not blank data sent by the foreground server and the target page number can be directly received, avoiding multiple requests initiated by the client after receiving blank pages. The long time consumed by the re-request is avoided, and the page data set can be displayed in time.

[0099] Further reference Figure 6 , as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of a page data acquisition device. These device embodiments correspond to those method embodiments shown in Figure 3 The device can be applied in various electronic devices.

[0100] As Figure 6As shown, the page data obtaining apparatus 600 of some embodiments includes a page data set receiving unit 601, a data elimination processing unit 602, and a page data obtaining request unit 603. The page data set receiving unit 601 is configured to receive a page data set returned by a middle server. The data elimination processing unit 602 is configured to perform data elimination processing on the page data set to obtain an eliminated page data set. The page data obtaining request unit 603 is configured to, in response to the eliminated page data set being empty and a target page number corresponding to the page data set being less than a preset threshold, send, to the middle server, a page data obtaining request for a next page number of the target page number to obtain a page data set of the next page number of the target page number.

[0101] Optionally, the page data obtaining apparatus further includes a sending unit (not shown in the figure) configured to, in response to the eliminated page data set being not empty and the target page number being less than or equal to the preset threshold, send the eliminated page data set and the target page number to a client.

[0102] Optionally, the page data obtaining apparatus further includes a page sending unit (not shown in the figure) configured to, in response to the eliminated page data set being empty and the target page number being equal to the preset threshold, send the target page number and a page corresponding to the target page number to the client.

[0103] Optionally, before the page data set receiving unit 601, the page data obtaining apparatus further includes a page browsing request receiving unit and a current page number page data obtaining request unit (not shown in the figure). The page browsing request receiving unit is configured to receive a page browsing request sent by a client, where the page browsing request includes a current page number and a request processing server identifier. The current page number page data obtaining request unit is configured to, in response to the request processing server identifier matching a server identifier corresponding to a front-end server, initiate a page data obtaining request for the current page number to a middle server.

[0104] Optionally, the data elimination processing unit 602 is further configured to, for each page data in the page data set, in response to determining that the page data satisfies a preset condition, determine the page data as to-be-filtered page data, and eliminate the obtained to-be-filtered page data from the page data set to obtain a filtered page data set.

[0105] Optionally, the data elimination processing unit 602 is further configured to: for each filtered page data in the filtered page data set, in response to not obtaining the item information corresponding to the filtered page data, determining the filtered page data as abnormal page data; and eliminating the obtained abnormal page data from the filtered page data set to obtain the eliminated page data set.

[0106] It can be understood that the units described in the apparatus 600 correspond to the respective steps in the methods described with reference to Figure 3 Thus, the operations, features, and advantages described above for the methods also apply to the apparatus 600 and the units contained therein, and are not repeated here.

[0107] The following refers to Figure 7 , as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a page browsing request apparatus, which apparatus embodiments correspond to those method embodiments, and the apparatus can be specifically applied in various electronic devices. Figure 5

[0108] As shown in Figure 7 , the page browsing request apparatus 700 of some embodiments includes: an eliminated page data set receiving unit 701 configured to receive an eliminated page data set and a target page number sent by a foreground server, wherein the eliminated page data set is a set in which the page data obtained by the foreground server from a background server is not empty, and the target page number is a page number in which the page data obtained by the foreground server from the background server is not empty; a display unit 702 configured to display the eliminated page data set; and a page browsing request unit 703 configured to initiate a page browsing request for a next page number of the target page number in response to detecting a data request operation.

[0109] It can be understood that the units described in the apparatus 700 correspond to the respective steps in the methods described with reference to Figure 5 Thus, the operations, features, and advantages described above for the methods also apply to the apparatus 700 and the units contained therein, and are not repeated here.

[0110] The following refers to Figure 8 , which shows an electronic device (e.g., a mobile phone) suitable for implementing some embodiments of the present disclosure. Figure 1 ​The diagram shows the structure of the computing device 800. In some embodiments of this disclosure, the electronic device may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.

[0111] like Figure 8 As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the electronic device 800. The processing device 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0112] Typically, the following devices can be connected to I / O interface 805: input devices 806 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 807 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 808 including, for example, magnetic tapes, hard disks, etc.; and communication devices 809. Communication device 809 allows electronic device 800 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 8 An electronic device 800 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 8 Each box shown can represent a device or multiple devices as needed.

[0113] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by the processing device 801, it performs the functions defined in the methods of some embodiments of this disclosure.

[0114] Note that the computer readable medium described in some embodiments of the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In some embodiments of the present disclosure, the computer readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, in which a computer readable program code is carried. Such a propagated data signal can take many forms, including but not limited to, an electromagnetic signal, an optical signal or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can transmit, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to, wire, cable, RF (radio frequency), etc., or any suitable combination of the above.

[0115] In some embodiments, the client, server, or any other component or device can communicate using any one of a number of well-known, current, or future-developed protocols for communication, including Hypertext Transfer Protocol (HTTP) and / or the like. In some embodiments, the client, server, or any other component or device can be interconnected to one or more other systems, devices, or networks via any of a variety of current or future-developed communication media or interfaces, including a wired network, a wireless network, a fiber optic network, a cellular network, a satellite network, a home network, a personal area network, a local area network, a wide area network, an intranet, the Internet, or the like, or any suitable combination of the above.

[0116] The computer readable medium can be included in the electronic device; or can exist separately from the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receive the page data set returned by the middle server; perform data pruning processing on the page data set to obtain a pruned page data set; in response to the pruned page data set being empty and the target page number corresponding to the page data set being less than a preset threshold, send, to the middle server, a page data acquisition request for a next page number of the target page number to acquire a page data set of the next page number of the target page number.

[0117] Computer program code for carrying out operations of some embodiments of the disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0118] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in a different order than that noted in the figures. For example, two blocks noted in succession can in fact be executed substantially concurrently or in the opposite order, depending on the functionality involved. It is also noted that each block in the block diagrams and / or flow diagrams, and combinations of blocks in the block diagrams and / or flow diagrams, can be implemented by dedicated hardware-based systems that perform the specified functions or operations, or can be implemented by a combination of dedicated hardware-based systems and computer instructions.

[0119] The units described in some embodiments of the present disclosure can be implemented in the form of software, or can be implemented in the form of hardware. The described units can also be arranged in a processor, for example, a processor can be described as including a page data set receiving unit, a data culling processing unit, and a page data obtaining request unit. Among them, the name of these units does not constitute a limitation on the unit itself in some cases, for example, the page data set receiving unit can also be described as "a unit that receives the page data set returned by the middle server".

[0120] The functions described above in the present document can be performed at least in part by one or more hardware logic components. For example, non-limiting example types of hardware logic components that can be used include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SOCs), complex programmable logic devices (CPLDs), etc.

[0121] Some embodiments of the present disclosure also provide a computer program product comprising a computer program, which, when executed by a processor, implements any one of the above-mentioned page data obtaining methods or a page browsing request method.

[0122] The above description is merely some preferred embodiments of the present disclosure and a description of the principles of the technology used. Those skilled in the art should understand that the scope of the application involved in the embodiments of the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features and the technical features disclosed in the embodiments of the present disclosure (but not limited to) having similar functions are replaced with each other to form a technical solution.

Claims

1. A method for obtaining page data, comprising: Receive the set of page data returned by the middleware server; The page data set is subjected to data removal processing to obtain the page data set after removal; In response to the fact that the page data set after the removal is empty and the target page number corresponding to the page data set is less than a preset threshold, a page data acquisition request for the next page number of the target page number is sent to the middleware server to obtain the page data set of the next page number of the target page number. In response to the fact that the set of page data after removal is not empty and the target page number is less than or equal to the preset threshold, the set of page data after removal and the target page number are sent to the client.

2. The method according to claim 1, wherein, The method further includes: In response to the fact that the data set of the removed pages is empty and the target page number is equal to the preset threshold, the target page number and the page corresponding to the target page number are sent to the client.

3. The method according to claim 1, wherein, Before receiving the set of page data returned by the middleware server, the method further includes: Receive a page browsing request sent by a client, wherein the page browsing request includes the current page number and the identifier of the request processing server; In response to the request processing server identifier matching the server identifier corresponding to the front-end server, a page data retrieval request for the current page number is initiated to the middle server.

4. The method according to claim 1, wherein, The step of performing data removal processing on the page data set to obtain a page data set after removal includes: For each page data in the page data set, in response to determining that the page data meets a preset condition, the page data is determined as page data to be filtered. The page data to be filtered is obtained by removing the page data from the page data set.

5. The method according to claim 4, wherein, The step of performing data removal processing on the page data set to obtain a page data set after removal also includes: For each filtered page data in the filtered page data set, in response to the failure to obtain item information corresponding to the filtered page data, the filtered page data is determined to be abnormal page data; The abnormal page data obtained by removing the filtered page data set is obtained as the removed page data set.

6. The method according to claim 1, wherein, A page view request for the next page number of the target page number is initiated through the following steps: The system receives a set of page data after removal and a target page number from the front-end server. The set of page data after removal is a set of page data obtained by the front-end server from the middle-end server that is not empty, and the target page number is the page number when the page data obtained by the front-end server from the middle-end server is not empty. Display the data set of the pages after the data has been removed; In response to the detection of a data request operation, a page browsing request for the next page number of the target page number is initiated.

7. A page data acquisition device, comprising: The page data set receiving unit is configured to receive the page data set returned by the middleware server; The data removal processing unit is configured to perform data removal processing on the page data set to obtain a page data set after removal. The page data acquisition request unit is configured to send a page data acquisition request for the next page number of the target page number to the middleware server in response to the fact that the page data set after the removal is empty and the target page number corresponding to the page data set is less than a preset threshold, so as to obtain the page data set of the next page number of the target page number. The sending unit is configured to send the removed page data set and the target page number to the client in response to the fact that the removed page data set is not empty and the target page number is less than or equal to the preset threshold.

8. An electronic device, comprising: One or more processors; A storage device on which one or more programs are stored; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.

9. A computer-readable medium having a computer program stored thereon, wherein, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.

10. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method and system for leading mobile terminal to browse webpage in reading mode

    CN101977233A

  • Method and apparatus for dynamically loading data in a paging model

    WO2017045410A1