CN114827113B - Webpage access method and device - Google Patents

Webpage access method and device Download PDF

Info

Publication number
CN114827113B
CN114827113B CN202210406652.XA CN202210406652A CN114827113B CN 114827113 B CN114827113 B CN 114827113B CN 202210406652 A CN202210406652 A CN 202210406652A CN 114827113 B CN114827113 B CN 114827113B
Authority
CN
China
Prior art keywords
webpage
web page
accessed
type
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210406652.XA
Other languages
Chinese (zh)
Other versions
CN114827113A (en
Inventor
郑文丹
李江卫
程艳
孟令超
刘宇杰
闵洪波
张献涛
任晋奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210406652.XA priority Critical patent/CN114827113B/en
Publication of CN114827113A publication Critical patent/CN114827113A/en
Application granted granted Critical
Publication of CN114827113B publication Critical patent/CN114827113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0014Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the source coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

One or more embodiments of the present disclosure provide a method and an apparatus for accessing a web page, where the method includes: acquiring a webpage address of a webpage to be accessed, and acquiring a webpage image of the webpage to be accessed according to the webpage address; determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address; and carrying out coding processing on the webpage image based on the coding transmission strategy, and transmitting the webpage image subjected to coding processing to a terminal so that the terminal can display the webpage image of the webpage to be accessed. The method can improve the use experience of the user when the user accesses the webpage.

Description

Webpage access method and device
Technical Field
One or more embodiments of the present disclosure relate to the field of terminal technologies, and in particular, to a method and an apparatus for accessing a web page.
Background
When a user uses a terminal to remotely access a webpage, for example, when browsing the webpage on the terminal through a cloud desktop, a cloud application, a cloud browser and the like, a smooth and smooth use experience is expected.
In the prior art, a server side provides a plurality of encoders, each encoder can perform encoding optimization on different types of content in the same webpage, when a user accesses a certain webpage through the server side remotely at a terminal, the server side needs to cut the webpage through an image recognition technology and divide the webpage into different types of webpage content, and then the plurality of encoders are used for encoding the different types of webpage content at the same time, and the processed webpage is transmitted to the terminal for display. However, when the image recognition technology is used for web page cutting, processing time is required, which increases the time delay of web page access, and a plurality of encoders work simultaneously, so that the performance requirement on the processor of the server side is high, if the performance of the processor of the server side is not high, the encoding processing speed is slow, the time delay of web page access is increased, and the user is likely to not obtain satisfactory experience.
Disclosure of Invention
In view of this, one or more embodiments of the present disclosure provide a method and apparatus for accessing a web page.
In order to achieve the above object, one or more embodiments of the present disclosure provide the following technical solutions:
according to a first aspect of one or more embodiments of the present specification, there is provided a web page access method, the method comprising:
Acquiring a webpage address of a webpage to be accessed, and acquiring a webpage image of the webpage to be accessed according to the webpage address;
determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address;
And carrying out coding processing on the webpage image based on the coding transmission strategy, and transmitting the webpage image subjected to coding processing to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
According to a second aspect of one or more embodiments of the present specification, there is provided a web page access apparatus, the apparatus comprising:
the webpage acquisition module is used for acquiring a webpage address of a webpage to be accessed and acquiring a webpage image of the webpage to be accessed according to the webpage address;
the strategy determining module is used for determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address;
And the encoding processing module is used for encoding the webpage image based on the encoding transmission strategy, and transmitting the webpage image after encoding processing to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
According to a third aspect of one or more embodiments of the present description, a computer-readable storage medium is provided, on which computer instructions are stored, which instructions, when executed by a processor, implement the above-described web page access method.
According to a fourth aspect of one or more embodiments of the present specification, there is provided an electronic device comprising:
A processor;
A memory for storing processor-executable instructions;
The processor executes the executable instructions to implement the above-described web page access method.
According to a fifth aspect of one or more embodiments of the present description, a computer program is presented, which when executed by a processor implements the above-described web page access method.
In one or more embodiments of the present disclosure, different encoding transmission strategies are selected to encode web page images of a web page to be accessed through a web page address of the web page to be accessed, and the encoding transmission strategies of different web page contents are determined without cutting the web page images through image recognition; moreover, only one coding transmission strategy is used for the same webpage, a plurality of encoders are not required to work simultaneously, the performance requirement on a processor at a server side is not high, the coding processing speed is also higher, the webpage access time delay is reduced, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the related art, the drawings that are required for the description of the embodiments or the related art will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments described in one or more embodiments of the present specification, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a flowchart of a web page access method according to an exemplary embodiment.
Fig. 2 is a flowchart of a web page access method according to an exemplary embodiment.
Fig. 3 is a system architecture diagram between a terminal and a server side according to an exemplary embodiment.
Fig. 4 is a flowchart of a method for accessing a web page based on a system architecture according to an exemplary embodiment.
Fig. 5 is a block diagram of a web page access apparatus provided in an exemplary embodiment.
Fig. 6 is a block diagram of a web page access apparatus provided in an exemplary embodiment.
Fig. 7 is a schematic diagram of an apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the present specification. Rather, they are merely examples of apparatus and methods consistent with aspects of one or more embodiments of the present description as detailed in the accompanying claims.
It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. Furthermore, individual steps described in this specification, in other embodiments, may be described as being split into multiple steps; while various steps described in this specification may be combined into a single step in other embodiments.
In many application scenarios, a user needs to use a terminal to browse a web page, for example, a terminal device such as a computer, a tablet, a network television, a mobile phone, etc. to access the web page, which requires that the terminal device has a certain processing capability to parse the web page and render a picture of the web page content on a screen, and also requires that the terminal device has access rights to the web page. However, the processing capability of the terminal device may not meet the requirements of web page analysis and rendering, or may not have access rights to the web page to be accessed, for example, for office workers who go on business at home and work at home, the situation that the personal computer cannot access the web page in the enterprise and the performance of the personal device is insufficient and cannot meet the working requirements may occur. In this case, access to the web page is required by a remote server, for example, the cloud desktop service can provide a virtual desktop, and through a transmission protocol, both computation and storage are put on the cloud server.
And when a user uses the terminal to remotely access the webpage, smooth and smooth use experience is expected. When the remote server transmits the webpage which the user wants to access to the terminal, the rendered webpage picture is transmitted to the terminal after being encoded. In the prior art, when a rendered web page picture is transmitted to a terminal, a remote server needs to cut the web page picture through an image recognition technology, divide the web page picture into different types of web page contents, and then use a plurality of encoders to encode the different types of web page contents simultaneously, for example, encode an area where text type is located by using an encoding mode applicable to the text type, encode an area where image type is located by using an applicable encoding mode of the image type, and transmit each web page content after the encoding process to the terminal for displaying. The method uses the image recognition technology to cut the web page, a certain processing time is needed, the time delay of web page access is increased, a plurality of encoders work simultaneously, the performance requirement on a processor at a server end is very high, if the performance of the processor at the server end is not high, the encoding processing speed is very slow, the time delay of web page access is also increased, and the user is likely to not obtain satisfactory experience.
Based on the above, the specification provides a webpage access method, which can improve the webpage access speed and provide smooth and silky remote webpage access experience for users.
Next, at least one web page access method provided in the present specification will be described in detail.
As shown in fig. 1, fig. 1 is a flowchart of a web page access method shown in the present specification, where the method may be executed by a server side such as a remote server, a cloud server, and a background server, and the method includes the following steps:
in step 102, a web page address sum of a web page to be accessed is obtained, and a web page image of the web page to be accessed is obtained according to the web page address.
In this step, the URL (Uniform Resource Locator, web address) of the web page to be accessed, which is sent by the receiving terminal, may be loaded from the web server according to the web address, and the web page image is rendered.
For example, a user may input a web page address of a desired access web page through a browser of the terminal or other applications of the terminal, or click on a link including the web page address, the terminal sends the web page address to a server, and the server requests a web page server corresponding to the web page address to obtain a web page file and related web page resources, such as an HTML (Hyper Text Markup Language, hypertext markup language foreign language name) file, a CSS (CASCADING STYLE SHEETS, cascading style sheet) file, an image resource, and the like, analyze the web page file and load the related web page resources, and render a web page image of the web page to be accessed.
In step 104, a coding transmission policy corresponding to the web page to be accessed is determined according to the web page address.
In this step, different encoding transmission strategies may be set in advance for different web pages, and the preset encoding transmission strategies may be queried according to the web page addresses of the web pages.
The coding transmission strategy refers to a coding transmission protocol between a server side and a terminal, the emphasis of different types of coding transmission protocols is different, for example, a command stream protocol strategy is an image compression protocol strategy, the mode can use a command+image mode to code and transmit, for example, the image coding is compressed into a JPEG format and transmitted in a data packet mode, the compression capability of the image is poor, the bandwidth occupation is large, the information loss is small, text can be clearly displayed, and the method is suitable for text picture transmission; the video stream protocol strategy is a streaming media protocol strategy, and the mode can be used for encoding and transmitting by using an encoding+stream (encoding+stream), for example, the frames are compressed by adopting encoding protocols such as H.264, H.265 and the like and are transmitted by using a streaming mode, so that the video stream protocol strategy has strong compression capability and small bandwidth occupation, but large information loss, can smoothly present continuously transformed frames, and is suitable for dynamic frame transmission, such as the frame transmission of moving pictures and videos.
The following examples are several ways to set different encoding transmission policies for different web pages in advance, but it is to be understood that the implementation is not limited to the following examples: the user can set the corresponding coding transmission strategy of each webpage according to the actual demand by himself; the coding transmission strategy used for counting user preference by using big data can be used for automatically setting the corresponding coding transmission strategy for each webpage; the corresponding coding transmission strategy can also be set according to the content of the webpage, for example, for the webpages of blogs, novels and news, the webpage content contains a large amount of texts and a small amount of images, and a command stream protocol strategy can be selected.
In step 106, based on the encoding transmission policy, the web page image is encoded, and the encoded web page image is transmitted to a terminal, so that the terminal can display the web page image of the web page to be accessed.
After the coding transmission strategy is determined, the whole webpage image can be uniformly coded and transmitted according to the coding mode in the coding transmission strategy, different coding transmission modes are not needed to be adopted for all parts of the webpage image, the terminal decodes the webpage image after receiving the coded webpage image according to the mode corresponding to the coding, the webpage image of the webpage to be accessed can be displayed on the screen of the terminal, the processing capacity requirement on the terminal is extremely low, and the terminal does not need to have the capacity of analyzing the webpage and rendering the webpage.
Thus, the user can smoothly browse the webpage desired to be accessed at the terminal.
According to the webpage access method provided by the embodiment, the server side selects different coding transmission strategies to code the webpage images of the webpage to be accessed through the webpage address of the webpage to be accessed, and the coding transmission strategies of different webpage contents are determined without cutting the webpage images through image identification; moreover, only one coding transmission strategy is used for the same webpage, a plurality of encoders are not required to work simultaneously, the performance requirement on a processor at a server side is not high, the coding processing speed is also higher, the webpage access time delay is reduced, and the user experience is improved.
In fact, the network environment where the user accesses the terminal is often complex, and the browsed webpage content is often various, so that in order to further improve the browsing experience of the user when performing remote webpage access, the webpage can be divided into different webpage types, and a code transmission policy is set for each webpage type, and the method is described below.
Fig. 2 is a flowchart of another web page access method shown in the present specification, where the method may be executed by a cloud server, where the cloud server is configured to provide cloud services to a terminal, and the cloud services include at least one of the following: cloud application, cloud desktop and cloud browser; the method may include a process in which the same steps as the flow of fig. 1 will not be described in detail.
In step 202, a web page address of a web page to be accessed is obtained, and a web page image of the web page to be accessed is obtained according to the web page address.
In this embodiment, the cloud server receives a web page address of a web page to be accessed sent by the terminal, and obtains a web page image of the web page to be accessed according to the web page address. For example, a user can access a webpage by using a browser provided on a cloud desktop at a terminal, and after inputting a webpage address, a cloud server providing cloud desktop service obtains a file and a resource related to the webpage according to the webpage address, and renders a webpage image drawing the webpage to be accessed.
In step 204, the web page type to which the web page to be accessed belongs is queried according to the web page address.
In this step, the mapping relationship between the pre-established web page address and the web page type may be queried according to the web page address, to determine the web page type to which the web page to be accessed belongs. For example, the web pages can be classified according to the content of the web pages, so that the mapping relationship between the web page address and the web page type of the web pages is established; the web pages can be classified according to user preference, and then the mapping relation between the web page address and the web page type of the web page is established.
Because the user browses the commonly used web pages under most conditions when accessing the web pages, a method for pre-establishing the mapping relationship between the web page addresses and the web page types is introduced, the method can automatically classify the commonly used web pages, and the classification mode is reasonable:
Firstly, obtaining webpage characteristics of a target webpage which reaches the preset access times.
Determining the webpage reaching the preset access times as a target webpage, and capturing webpage characteristics of the target webpage, wherein the webpage characteristics can comprise at least one of the following: the web page resource data amount and the web page resource data type ratio. The web page resource data amount refers to the total size of each type of resource in the web page, and the web page resource data type ratio refers to the proportion of the size of each type of resource in the web page to the total resource size. The text type resource size is usually small, but only a few kb, the still image type resource size is usually large, and usually a few MB, and the moving image or video type resource size is larger.
The preset access times can be set by the user, and when the access times are set to be 1, the browsed web pages are all determined to be target web pages. In other examples, the target webpage may be determined by other manners, for example, a popular webpage and a webpage with higher heat are determined as the target webpage, and the user may also add the target webpage by himself. The webpage features of the target webpage can be automatically crawled through a crawler technology, or can be obtained through other modes.
After the webpage features of the target webpage are acquired, the mapping relation between the webpage features and the webpage addresses can be stored in a webpage feature database, wherein the webpage feature database can be in a cloud server or other equipment.
Then, based on the webpage characteristics, the webpage type of the target webpage is determined.
In this step, the target web page can be automatically classified according to the web page characteristics, so as to obtain the web page type to which the target web page belongs. The web page types may be set by those skilled in the art according to actual requirements, and in this example, three web page types are taken as examples, and the three web page types may be text types, media types and equilibrium types. The three webpage types are classified by integrating the webpage resource data quantity and the webpage resource data type proportion, and the classification principle is as follows:
Text type: the web page resource data amount is small, the web page resource data type is very large in the text type and the static image type, and the text type and the static image type reach the preset ratio, such as the web pages of blogs, novels and news types.
Media type: the data volume of the webpage resource is large, the resource proportion of the multimedia types such as dynamic images, videos and the like in the data type proportion of the webpage resource is very large, and the resource proportion of the multimedia types reaches the preset proportion, such as the webpages of video websites, live broadcast websites and the like.
Equalization type: the web page resource data volume is centered, the ratio of various types of resources in the web page resource data type ratio is balanced, the web page comprises characters, high-resolution images, a plurality of dynamic images, small videos and the like, and the ratio of the resources of the text type and the static image type and the ratio of the resources of the multimedia type do not reach the preset ratio, such as web pages of shopping websites, small game websites and the like.
In other examples, the classification may be based on the amount of web page resource data alone, or based on the type of web page resource data, or based on other characteristics of the web page. The present embodiment is not limited to this, and each type may be further refined in classification into a plurality of classes.
The above classification process may be performed by calling a web page classification module, or may still be performed by the cloud server.
And finally, establishing a mapping relation between the webpage address of the target webpage and the type of the webpage.
The method for pre-establishing the mapping relation between the webpage address and the webpage type can be executed by the cloud server; the method can also be executed by calling a common webpage analysis module by the cloud server, when the webpage type of the webpage to be accessed needs to be queried according to the webpage address, a query interface provided by the common webpage analysis module can be called, and when the webpage to be accessed is a target webpage, the mapping relation between the webpage address of the webpage to be accessed and the webpage type of the webpage to be accessed, which is pre-established in the common webpage analysis module, can be queried, so that the webpage type of the webpage to be accessed is obtained.
In step 206, a coding transmission policy corresponding to the web page to be accessed is determined according to the web page type.
In this embodiment, the encoding transmission policy is used to define a data transmission mode between the cloud server and the terminal. For each webpage type, a preset coding transmission strategy can be determined, for example, for the webpage type with large webpage resource data volume, a coding transmission mode with higher compression degree is selected, and for the webpage type with small webpage resource data volume, a coding transmission mode with smaller compression loss and even no damage is selected. The text type, media type and equalization type are still described below:
And determining the coding transmission strategy corresponding to the webpage to be accessed as a command stream protocol strategy in response to the webpage type being a text type.
For a web page with a text type, the frequency of changing the web page picture is slow in the browsing process of the user, and the changing area of the whole picture is usually small, for example, because the user does not turn the page in a few minutes because of being careful in reading the text, only the clock at the lower right corner of the page may be changed. In the case, the command stream protocol strategy is selected to encode and transmit the webpage image, and the encoding transmission mode of the picture plus the command can enable the definition of the webpage image displayed on the terminal to be higher, and the overall transmission frequency is low, the network is not blocked, and the requirement of a user is met more.
And determining the coding transmission strategy corresponding to the webpage to be accessed as a video stream protocol strategy in response to the webpage type being a media type.
For a web page with a media type, the change frequency of the web page picture is faster in the browsing process, and the change area of the whole picture is usually large, for example, when the user views a video through the web page, if a transmission coding mode of a command stream protocol strategy is adopted, the user experience is likely to be affected due to the fact that too much data to be transmitted is blocked. The video stream protocol strategy is selected to encode and transmit the webpage images, and the encoding transmission mode of the streaming media can enable the webpage images displayed on the terminal to be refreshed in time, reduce frame dropping, is higher in fluency and meets the requirements of users.
When determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage type, the current network state can be combined, so that the selected coding transmission strategy is more reasonable:
And responding to the webpage type being the equilibrium type, and acquiring the network quality parameter of the current network. And responding to the network quality parameter meeting the quality parameter condition, and determining the coding transmission strategy corresponding to the webpage to be accessed as a command stream protocol strategy. And determining that the coding transmission strategy corresponding to the webpage to be accessed is a video stream protocol strategy in response to the network quality parameter not conforming to the quality parameter condition.
The network quality parameter may be a parameter for evaluating network quality, such as network delay, network bandwidth, and packet loss rate. When the network quality parameter accords with the quality parameter condition, the current network quality is better, for example, in a proprietary cloud environment, the network condition is very ideal due to the fact that the network is almost exclusively connected, and extremely smooth user experience can be pursued, and at the moment, the command stream protocol strategy can be used for encoding and transmitting the webpage image; when the network quality parameter does not meet the quality parameter condition, it indicates that the current network quality is poor, for example, in public cloud environment, the encoding transmission strategy must have good network adaptability, and can adapt to weak network environment and resist network jitter, and at this time, the video stream protocol strategy can be used for encoding and transmitting the web page image.
In step 208, the web page image is encoded based on the encoding transmission policy, and the encoded web page image is transmitted to a terminal, so that the terminal can display the web page image of the web page to be accessed.
In this embodiment, the web pages may be divided into different web page types, and the encoding transmission policy is set for each web page type, so that a user only uses one encoding transmission policy in the process of accessing the same web page, multiple encoders are not required to work simultaneously, and frequent switching of encoders is not required, so that the encoding processing speed is faster, the time delay of web page access is reduced, the user experience is improved, and meanwhile, the encoding transmission policy of the web page to be accessed is determined according to the web page type, so that the mode used in encoding and transmission of rendered web page images is more reasonable, the smoothness of the images in user operation can be improved, and the user experience is improved.
How the web page access method in the above embodiment is implemented in one example is described below in conjunction with a system architecture and a flowchart. Fig. 3 shows a system architecture diagram between a terminal and a server, and fig. 4 shows a web page access method flow based on the system architecture.
The Client is a Client and operates on terminal equipment used by a user. After a User loads a webpage address through a browser, a User program User App in the Guest requests a graphic engine (X11 or GDI) to execute rendering operation, the graphic engine transmits a rendering operation command to a QXL driver (a QXL driver installed in the virtual machine), the QXL driver converts the rendering operation command into QXL commands and pushes the QXL commands into QXL devices in the QEMU, and the QXL devices are virtual QXL Device rear ends of the QEMU. The QXL Device executes a QXL command to upload a graphic operation message and draws a webpage image in a server, the server is a virtual server, the server can call a common webpage analysis module to acquire a webpage type before transmitting the webpage image code to a client, and the common webpage analysis module can be located at a cloud server side or other devices. When the webpage type is a text type, determining that the coding transmission strategy is command+image; when the webpage type is a media type, determining that the coding transmission strategy is encodable+stream; when the webpage type is the balanced type, the network state is further judged, when the network state is excellent, the coding transmission strategy is determined to be command+image, and when the network state is poor, the coding transmission strategy is determined to be encode+stream. And encoding and packaging the webpage images according to the encoding transmission strategy, transmitting the encoded and packaged webpage images to a client in the terminal, and correspondingly decoding the webpage images after receiving the information by the client so as to display the webpage images obtained after decoding on a screen, thereby finishing the picture updating operation.
As shown in fig. 5, fig. 5 is a web page access apparatus according to an exemplary embodiment of the present specification, the apparatus comprising:
the web page obtaining module 301 is configured to obtain a web page address of a web page to be accessed, and obtain a web page image of the web page to be accessed according to the web page address.
The policy determining module 302 is configured to determine, according to the web page address, a coding transmission policy corresponding to the web page to be accessed.
And the encoding processing module 303 is configured to perform encoding processing on the web page image based on the encoding transmission policy, and transmit the web page image after encoding processing to a terminal, so that the terminal can display the web page image of the web page to be accessed.
In one example, the apparatus is applied to a cloud server, where the cloud server is configured to provide cloud services to the terminal, and the cloud services include at least one of: cloud application, cloud desktop and cloud browser;
the web page obtaining module 301, when used for obtaining a web page address of a web page to be accessed, is specifically configured to: receiving a webpage address of a webpage to be accessed, which is sent by a terminal;
the coding transmission strategy is used for limiting a data transmission mode between the cloud server and the terminal.
In one example, the policy determining module 302 is specifically configured to, when determining, according to the web page address, a code transmission policy corresponding to the web page to be accessed: inquiring the webpage type of the webpage to be accessed according to the webpage address; and determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage type.
In one example, as shown in fig. 6, the apparatus further includes: the web page type module 300 is configured to obtain, before the obtaining a web page address of a web page to be accessed, web page characteristics of a target web page up to a preset number of accesses; determining the webpage type of the target webpage based on the webpage characteristics; and establishing a mapping relation between the webpage address of the target webpage and the type of the webpage to which the target webpage belongs.
The policy determining module 302 is specifically configured to, when configured to query, according to the web page address, a web page type to which the web page to be accessed belongs: and under the condition that the webpage to be accessed is the target webpage, inquiring the pre-established mapping relation according to the webpage address, and determining the webpage type of the webpage to be accessed.
In one example, the web page features include at least one of: the web page resource data amount and the web page resource data type ratio.
In one example, the policy determining module 302 is configured to determine, according to the web page type, a coding transmission policy corresponding to the web page to be accessed, specifically: and determining the coding transmission strategy corresponding to the webpage to be accessed as a command stream protocol strategy in response to the webpage type being a text type.
In one example, the policy determining module 302 is configured to determine, according to the web page type, a coding transmission policy corresponding to the web page to be accessed, specifically: and determining the coding transmission strategy corresponding to the webpage to be accessed as a video stream protocol strategy in response to the webpage type being a media type.
In one example, the policy determining module 302 is configured to determine, according to the web page type, a coding transmission policy corresponding to the web page to be accessed, specifically: responding to the webpage type being an equilibrium type, and acquiring network quality parameters of the current network; responding to the network quality parameter meeting the quality parameter condition, and determining the coding transmission strategy corresponding to the webpage to be accessed as a command stream protocol strategy; and determining that the coding transmission strategy corresponding to the webpage to be accessed is a video stream protocol strategy in response to the network quality parameter not conforming to the quality parameter condition.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present description. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
As shown in fig. 7, fig. 7 shows a hardware configuration diagram of a computer device where the web page access apparatus in the above embodiment is located, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an Application SPECIFIC INTEGRATED Circuit (ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The memory 1020 may be implemented in the form of ROM (read only memory), RAM (Random Access Memory ), static storage, dynamic storage, etc. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The embodiments of the present specification also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a web page access method as described above.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
The present disclosure also provides a computer program that, when executed, implements the above-described web page access method.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The terminology used in the one or more embodiments of the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the specification. As used in this specification, one or more embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in one or more embodiments of the present description to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
The foregoing description of the preferred embodiment(s) is (are) merely intended to illustrate the embodiment(s) of the present invention, and it is not intended to limit the embodiment(s) of the present invention to the particular embodiment(s) described.

Claims (12)

1. A method of web page access, the method comprising:
Acquiring a webpage address of a webpage to be accessed, and acquiring a webpage image of the webpage to be accessed according to the webpage address, wherein the webpage image is obtained by analyzing and loading a webpage file and a webpage resource of the webpage address;
Determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address; the code transmission strategy is a code transmission protocol;
And carrying out coding processing on the webpage image based on the coding transmission strategy, and transmitting the webpage image subjected to coding processing to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
2. The method of claim 1, applied to a cloud server for providing cloud services to the terminal, the cloud services comprising at least one of: cloud application, cloud desktop and cloud browser;
The obtaining the web page address of the web page to be accessed includes: receiving a webpage address of a webpage to be accessed, which is sent by a terminal;
the code transmission strategy is used for limiting a data transmission mode between the cloud server and the terminal.
3. The method according to claim 1,
The determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage address comprises the following steps:
inquiring the webpage type of the webpage to be accessed according to the webpage address;
And determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage type.
4. A method according to claim 3,
Before the acquiring the web page address of the web page to be accessed, the method further comprises:
Obtaining webpage characteristics of a target webpage which reaches preset access times;
determining the webpage type of the target webpage based on the webpage characteristics;
Establishing a mapping relation between the webpage address of the target webpage and the type of the webpage to which the target webpage belongs;
The inquiring the webpage type of the webpage to be accessed according to the webpage address comprises the following steps:
And under the condition that the webpage to be accessed is the target webpage, inquiring the pre-established mapping relation according to the webpage address, and determining the webpage type of the webpage to be accessed.
5. The method of claim 4, the web page features comprising at least one of: the web page resource data amount and the web page resource data type ratio.
6. A method according to claim 3,
The determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage type comprises the following steps:
And determining the coding transmission strategy corresponding to the webpage to be accessed as a command stream protocol strategy in response to the webpage type being a text type.
7. A method according to claim 3,
The determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage type comprises the following steps:
And determining the coding transmission strategy corresponding to the webpage to be accessed as a video stream protocol strategy in response to the webpage type being a media type.
8. A method according to claim 3,
The determining the coding transmission strategy corresponding to the webpage to be accessed according to the webpage type comprises the following steps:
responding to the webpage type being an equilibrium type, and acquiring network quality parameters of the current network;
Responding to the network quality parameter meeting the quality parameter condition, and determining the coding transmission strategy corresponding to the webpage to be accessed as a command stream protocol strategy;
And determining that the coding transmission strategy corresponding to the webpage to be accessed is a video stream protocol strategy in response to the network quality parameter not conforming to the quality parameter condition.
9. A web page access apparatus, the apparatus comprising:
the webpage acquisition module is used for acquiring a webpage address of a webpage to be accessed and acquiring a webpage image of the webpage to be accessed according to the webpage address; the webpage image is obtained by analyzing and loading a webpage file and a webpage resource of the webpage address;
The strategy determining module is used for determining a coding transmission strategy corresponding to the webpage to be accessed according to the webpage address; the code transmission strategy is a code transmission protocol;
And the encoding processing module is used for encoding the webpage image based on the encoding transmission strategy, and transmitting the webpage image after encoding processing to a terminal so that the terminal can display the webpage image of the webpage to be accessed.
10. An electronic device, comprising:
A processor;
A memory for storing processor-executable instructions;
wherein the processor is configured to implement the method of any of claims 1-8 by executing the executable instructions.
11. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method of any of claims 1-8.
12. A computer program which, when executed by a processor, implements the method of any of claims 1-8.
CN202210406652.XA 2022-04-18 2022-04-18 Webpage access method and device Active CN114827113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210406652.XA CN114827113B (en) 2022-04-18 2022-04-18 Webpage access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210406652.XA CN114827113B (en) 2022-04-18 2022-04-18 Webpage access method and device

Publications (2)

Publication Number Publication Date
CN114827113A CN114827113A (en) 2022-07-29
CN114827113B true CN114827113B (en) 2024-04-16

Family

ID=82537204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210406652.XA Active CN114827113B (en) 2022-04-18 2022-04-18 Webpage access method and device

Country Status (1)

Country Link
CN (1) CN114827113B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050018905A (en) * 2005-01-27 2005-02-28 (주)엔알시스템스 Method and server system for real-time remote video multicasting
CN108989845A (en) * 2018-07-03 2018-12-11 凯尔博特信息科技(昆山)有限公司 A kind of video transmission method based on SPICE protocol
WO2018223786A1 (en) * 2017-06-05 2018-12-13 中兴通讯股份有限公司 Cloud desktop system, and image sequence compression and encoding method, and medium therefor
CN109274682A (en) * 2018-10-26 2019-01-25 西安科锐盛创新科技有限公司 Data processing method and its equipment
CN110020343A (en) * 2017-09-01 2019-07-16 北京国双科技有限公司 The determination method and apparatus of web page coding format
CN111010582A (en) * 2019-12-18 2020-04-14 深信服科技股份有限公司 Cloud desktop image processing method, device and equipment and readable storage medium
CN112632426A (en) * 2020-12-22 2021-04-09 新华三大数据技术有限公司 Webpage processing method and device
CN113973224A (en) * 2021-09-18 2022-01-25 阿里巴巴(中国)有限公司 Method for transmitting media information, computing device and storage medium
CN114329298A (en) * 2021-12-31 2022-04-12 北京海泰方圆科技股份有限公司 Page presentation method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9098477B2 (en) * 2013-05-15 2015-08-04 Cloudflare, Inc. Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service
CN104281621A (en) * 2013-07-11 2015-01-14 腾讯科技(深圳)有限公司 Method and device for browsing web page

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050018905A (en) * 2005-01-27 2005-02-28 (주)엔알시스템스 Method and server system for real-time remote video multicasting
WO2018223786A1 (en) * 2017-06-05 2018-12-13 中兴通讯股份有限公司 Cloud desktop system, and image sequence compression and encoding method, and medium therefor
CN110020343A (en) * 2017-09-01 2019-07-16 北京国双科技有限公司 The determination method and apparatus of web page coding format
CN108989845A (en) * 2018-07-03 2018-12-11 凯尔博特信息科技(昆山)有限公司 A kind of video transmission method based on SPICE protocol
CN109274682A (en) * 2018-10-26 2019-01-25 西安科锐盛创新科技有限公司 Data processing method and its equipment
CN111010582A (en) * 2019-12-18 2020-04-14 深信服科技股份有限公司 Cloud desktop image processing method, device and equipment and readable storage medium
CN112632426A (en) * 2020-12-22 2021-04-09 新华三大数据技术有限公司 Webpage processing method and device
CN113973224A (en) * 2021-09-18 2022-01-25 阿里巴巴(中国)有限公司 Method for transmitting media information, computing device and storage medium
CN114329298A (en) * 2021-12-31 2022-04-12 北京海泰方圆科技股份有限公司 Page presentation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114827113A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN107766359B (en) Method and device for converting page content into picture and computing equipment
US9106521B2 (en) Method and system for visualizing an adaptive screen according to a terminal
US20100268694A1 (en) System and method for sharing web applications
JP6328233B2 (en) Computer program product, system and method for optimizing web page loading
US20170083487A1 (en) Webpage data processing method and device
US11741292B2 (en) Adaptive content delivery
CN111580879A (en) Applet running method and device, electronic equipment and computer storage medium
CN105138698B (en) Dynamic layout method and device for webpage
US20190114989A1 (en) Systems and methods for image optimization
US10630755B2 (en) Selective consumption of web page data over a data-limited connection
CN108334516B (en) Information pushing method and device
CN112256990A (en) Image processing method and device and computer readable storage medium
CN104156251A (en) Picture processing method and device
CN107592553B (en) Image compression agent balance processing method and device
US20140337708A1 (en) Method and apparatus for providing web browsing service
CN114827113B (en) Webpage access method and device
US20080297521A1 (en) System and method for providing skins for a web page
KR101525519B1 (en) Method for web browsing on offline based HTML5
CN114500484A (en) Page rendering method and device, electronic equipment and readable medium
CN113542335A (en) Information sharing method and device, electronic equipment and storage medium
US20150248347A1 (en) Content providing apparatus and method, and computer program product
CN109426530B (en) Page determination method, device, server and storage medium
CN112394809A (en) Method, device and communication equipment for realizing augmented reality
CN113986850B (en) Storage method, device, equipment and computer readable storage medium of electronic volume
CN113849255B (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant