Method and device for acquiring media address in webpage, server, terminal and storage medium
By extracting and correlating the storage of web pages and media addresses, the problem of obtaining the real media address of media files in the blob address is solved, and low-cost and effective media address acquisition is achieved.
Patent Information
- Application Number
- CN202411575987.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-02-21
AI Technical Summary
The prior art is difficult to obtain the real media address of a media file in a blob address at a low cost.
By extracting the media address in the network request issued on the web page after the web page is opened, and associating and storing the web page address and media address, the terminal or server can respond to the user's media address acquisition operation to obtain the real media address associated with the web page address.
It realizes the ability to obtain real media addresses at a lower cost in web pages, and is suitable for many types of web pages, including web pages that play media files in blob addresses.
Smart Images

Figure CN119493924A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of media address management, for example, to a method, device, server, terminal and storage medium for obtaining a media address in a web page. Background Art
[0002] In some websites, the media address in the web page is written into the media tag, so the media file can be played through the media tag. In this case, the media address can be directly obtained in the media tag. However, more and more websites no longer write the media address into the media tag, but play the media file in the form of a blob (Binary Large Object) address. Specifically, when the browser loads a media file in a web page, the media file will be stored as a blob object and a unique blob address will be generated so that the media file can be accessed on the web page and played.
[0003] The blob address is a temporary address generated for the data in the browser memory. The blob address refers to the address of a binary large object, which can be written by another JS program that is completely unrelated to the media tag. In other words, even if you can get the file of the media in the form of a binary object, you cannot get the real address of the media.
[0004] In the related art, in order to play a media file in the form of a blob address, the real media address can be obtained based on the Application Programming Interface (API) in the platform corresponding to the media. However, the cost of obtaining the media address is high and it is not convenient to promote it widely.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a method, device, server, terminal and storage medium for obtaining a media address in a web page, which can obtain a real media address at a relatively low cost for playing a media file in the form of a blob address.
[0008] According to a first aspect of the present disclosure, a method for obtaining a media address in a web page is provided, comprising:
[0009] After opening the web page corresponding to the web page address, extracting the media address from the network request issued on the web page;
[0010] storing the web page address and the media address in association, wherein the web page address and the media address are stored by the terminal itself or sent to the server for storage after being paired;
[0011] In the case of determining that the webpage has a media tag, in response to the user's media address acquisition operation, acquiring a media address associated with the webpage address, wherein the media address is read from a storage module of the terminal itself, or is obtained by sending a media address acquisition request to a server;
[0012] Displays the acquired media address associated with the web page address.
[0013] In some embodiments, storing the webpage address and the media address in association with each other includes: storing the webpage address and the media address in association with each other in a storage module of the terminal itself;
[0014] When it is determined that a media tag exists on a web page, a media address associated with the web page address is obtained in response to a user's media address acquisition operation, including: when it is determined that a media tag exists on a web page, a media address associated with the web page address is read in a storage module of the terminal itself in response to the user's media address acquisition operation.
[0015] In some embodiments, storing the webpage address and the media address in association with each other includes: sending the webpage address and the media address to a server after pairing them so that the server stores the webpage address and the media address in association with each other;
[0016] When it is determined that the webpage has a media tag, in response to a media address acquisition operation of a user, acquiring a media address associated with the webpage address, including: when it is determined that the webpage has a media tag, in response to the media address acquisition operation of the user, sending a media address acquisition request to a server, wherein the media address acquisition request includes the webpage address;
[0017] Displaying the acquired media address associated with the webpage address includes: receiving and displaying the media address associated with the webpage address sent by the server.
[0018] In some embodiments, extracting a media address from a network request issued on a web page includes:
[0019] Get the network requests issued on the web page;
[0020] Filter out media network requests from network requests;
[0021] Extract the media address from the media network request.
[0022] In some embodiments, filtering out media network requests from network requests includes:
[0023] Obtaining a type feature of the network request, wherein the type feature includes at least one of the following: a suffix name, a CDN domain name, and a path feature;
[0024] A network request whose type feature belongs to the media feature is determined as a media network request.
[0025] In some embodiments, in response to a user's media address acquisition operation, sending a media address acquisition request to a server includes:
[0026] Displaying address prompt information, wherein the address prompt information is used to prompt the user to perform a media address acquisition operation;
[0027] In response to the user's media address acquisition operation, a media address acquisition request is sent to the server.
[0028] In some embodiments, the address prompt information is a virtual button added to the web page, and the media address acquisition operation is a click operation on the virtual button; or, the address prompt information is an inquiry voice, and the media address acquisition operation is a response operation to the inquiry voice.
[0029] In some embodiments, when it is determined that a webpage has a media tag, in response to a user's media address acquisition operation, a media address acquisition request is sent to a server, including:
[0030] When it is determined that the webpage has a media tag, determining whether the address type of the media tag is a specified address type;
[0031] When the address type corresponding to the media tag is a specified address type, in response to the user's media address acquisition operation, sending a media address acquisition request to the server;
[0032] In the case where the address type corresponding to the media tag is not the specified address type, in response to the user's media address acquisition operation, the media address is extracted from the media tag and displayed.
[0033] In some embodiments, receiving and displaying a media address associated with a webpage address sent by a server includes:
[0034] Receive and display the media address associated with the web page address and the amount of media data corresponding to the media address sent by the server, wherein the amount of media data is obtained by the server in the HEAD data of the media address.
[0035] According to a second aspect of the present disclosure, a method for obtaining a media address in a web page is provided, comprising:
[0036] When receiving the web page address and the media address sent by the terminal, the web page address and the media address are associated and stored, wherein the media address is extracted from the network request issued on the web page after the terminal opens the web page;
[0037] When receiving a media address acquisition request sent by a terminal, determining a media address associated with the webpage address in the media address acquisition request;
[0038] The media address associated with the web page address is sent to the terminal.
[0039] In some embodiments, sending a media address associated with a webpage address to a terminal includes:
[0040] Extract the amount of media data corresponding to the media address from the HEAD data of the media address;
[0041] The media address associated with the webpage address and the amount of media data corresponding to the media address are sent to the terminal.
[0042] According to a third aspect of the present disclosure, a device for obtaining a media address in a web page is provided, comprising:
[0043] The address extraction module is configured to extract the media address from the network request issued on the web page after opening the web page corresponding to the web page address;
[0044] An address storage module is configured to store the web page address and the media address in association with each other, wherein the web page address and the media address are stored by the terminal itself or sent to the server for storage after being paired;
[0045] an address request module, configured to obtain a media address associated with the webpage address in response to a media address acquisition operation of a user when determining that a webpage has a media tag, wherein the media address is read from a storage module of the terminal itself or obtained by sending a media address acquisition request to a server;
[0046] The address display module is configured to display the acquired media address associated with the web page address.
[0047] According to a fourth aspect of the present disclosure, a device for obtaining a media address in a web page is provided, comprising:
[0048] The address storage module is configured to associate and store the web page address and the media address when receiving the web page address and the media address sent by the terminal, wherein the media address is extracted from the network request issued on the web page after the terminal opens the web page;
[0049] An address determination module is configured to determine a media address associated with a webpage address in the media address acquisition request when receiving the media address acquisition request sent by the terminal;
[0050] The address sending module is configured to send a media address associated with a web page address to a terminal.
[0051] According to a fifth aspect of the present disclosure, a terminal is provided, including a processor and a memory storing program instructions, wherein the processor is configured to execute the method for obtaining a media address in a web page provided in the first aspect of the present disclosure when running the program instructions.
[0052] According to a sixth aspect of the present disclosure, a server is provided, comprising a processor and a memory storing program instructions, wherein the processor is configured to execute the method for obtaining a media address in a web page provided in the second aspect of the present disclosure when running the program instructions.
[0053] According to a seventh aspect of the present disclosure, a storage medium is provided, in which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for obtaining a media address in a web page provided in the first aspect or the second aspect of the present disclosure is executed.
[0054] The method, device, server, terminal and storage medium for obtaining media addresses in a web page provided by the embodiments of the present disclosure can achieve the following technical effects:
[0055] The disclosed embodiment can adopt large models and big data processing technology, and is a method for obtaining media addresses within a web page. It utilizes the characteristic that a web page will actively request a real media address after it is opened, and can actively extract the media address from the network request issued on the web page after the web page is opened, and store the web page address and the media address in association. In the case where there is a media tag on the web page, when the user needs to obtain the media address, the terminal can obtain the real media address corresponding to the media tag from the pre-associated and stored web page address and media address, and display the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained by the above method. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0056] The foregoing general description and the following description are exemplary and explanatory only and are not intended to limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0058] Figure 1 is a schematic diagram of an interface of a web page provided by an embodiment of the present disclosure;
[0059] Figure 2 It is a schematic diagram of a hardware application scenario of a method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0060] Figure 3 It is a flowchart of a method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0061] Figure 4 It is a flowchart of another method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0062] Figure 5 It is a flowchart of another method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0063] Figure 6 It is a flowchart of another method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0064] Figure 7 It is a flowchart of another method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0065] Figure 8 It is a flowchart of another method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0066] Fig. 9 This is a schematic diagram of an application example of a method for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0067] Fig.10 It is a structural schematic diagram of a device for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0068] Fig.11 It is a structural schematic diagram of another device for obtaining a media address in a web page provided by an embodiment of the present disclosure;
[0069] Fig.12 is a schematic diagram of the structure of a terminal provided by an embodiment of the present disclosure;
[0070] Fig.13 It is a structural diagram of a server provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0071] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0072] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0073] Unless otherwise stated, the term "plurality" means two or more.
[0074] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0075] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0076] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0077] In some websites, the media address in the web page is written into the media tag, for example, the media address can be written into the source (Source, Src) attribute or the current source (currentSrc, current source) attribute of the media tag, so that the media file can be played through the media tag. In this case, the real media address can be directly obtained from the media tag, for example, the source attribute or the current source attribute can be obtained from the media tag, and then the media address can be extracted from the attribute.
[0078] However, more and more websites no longer write media addresses into media tags, but play media files as blob addresses. Blobs can be used to store binary data such as pictures, videos, and audio. A blob address refers to an address containing the "blob:" protocol. A blob address usually starts with "blob:https" or "blob:http", followed by a unique identifier to indicate a specific Blob object. For example, a blob address is "blob:https: / / xxx.xxx.com / aee4eac3-7c35-46e3-a10d-c934a1317ab4".
[0079] When a browser loads a media file in a web page, the media file is stored as a blob object and a unique blob address is generated to access the media file on the web page and play the media file. The blob address is a temporary address generated for the data in the browser memory and is used to display, play or process media files in the web page. The blob address refers to the address of a binary large object, which can be written by another JS (JavaScript) program that is completely unrelated to the media tag. In other words, even if you can get the file of the media in the form of a binary object, you cannot get the real address of the media.
[0080] In the related art, for playing media files in the form of blob addresses, some media corresponding platforms are configured with special application programming interfaces, which can be used to obtain the real media address based on the application programming interface. However, the cost of obtaining the media address is relatively high. Specifically, these application programming interfaces are often encrypted, including request parameter encryption, return result encryption, robot verification, etc. The encryption parameters and request methods are often changing, which leads to a very high cost of changing the video address through the application programming interface. Once the platform has made a change, it needs to crack the application programming interface again or adjust the acquisition method, which further increases the cost of using the application programming interface and is not convenient for widespread promotion and use.
[0081] First of all, it should be explained that the web page address and web page URL in the embodiments of the present disclosure are different terms for the same concept, both referring to the Uniform Resource Locator (URL) of the web page, which provides the exact location information for accessing a specific web page, including the protocol, domain name, path, etc., so that the terminal can directly access the web page through a browser or other tools.
[0082] Similarly, media address and media URL are different terms for the same concept, both referring to the uniform resource locator of a media file, which provides the exact location information of the media file, including the protocol, domain name, path, etc., so that the terminal can directly access the media file through a browser or other tools. It should be noted that the media in the embodiments of the present disclosure can be video or audio.
[0083] The embodiment of the present disclosure provides a terminal, which can enable a personal computer, mobile phone, PAD or vehicle-mounted computer or other device to browse web pages. The terminal is deployed with a browser or other tool for accessing web pages. The terminal can open the web page corresponding to the web page address by running the browser. Figure 1 For example, the terminal is deployed with a Chrome browser. In the Chrome browser environment, enter the web address http: / / www.xxx.com / page / xxx.html to open the corresponding web page. Some web pages will have media tags, and you can play the media file by clicking the media tag. In some scenarios, when a media tag appears on a web page, the media file can also be played automatically. For example, if the media is a video, the web page can also have a video introduction and other content.
[0084] In the disclosed embodiment, after opening the webpage corresponding to the webpage address, the terminal can extract the media address and store the webpage address and the media address in association. When determining that the webpage has a media tag, the terminal responds to the user's media address acquisition operation to acquire the media address associated with the webpage address, and then displays the acquired media address associated with the webpage address.
[0085] Combination Figure 2 As shown, the embodiment of the present disclosure provides a terminal 1000 and a server 2000, and the terminal 1000 and the server 2000 are connected in communication. Here, the terminal 1000 can be a device that can browse web pages, such as a personal computer, a mobile phone, a PAD, or a car computer. The server 2000 can refer to any computing device suitable for providing data processing and services. The server 2000 can be one or more physical servers 2000, or a virtual machine running in a virtualized environment.
[0086] In the embodiment of the present disclosure, a browser or other tool for accessing web pages is deployed in the terminal 1000. The terminal 1000 can open the web page corresponding to the web page address by running the browser. Figure 2For example, the terminal 1000 is deployed with a Chrome browser. In the Chrome browser environment, the corresponding web page can be opened by entering the web page address http: / / www.xxx.com / page / xxx.html. Some web pages may have a media tag, and the media file can be played by clicking the media tag. In some scenarios, when a media tag appears in a web page, the media file can also be played automatically. Taking the media as a video, the web page can also have a video introduction and other content.
[0087] In the embodiment of the present disclosure, the terminal 1000 can extract the media address after opening the webpage corresponding to the webpage address, and send the webpage address and the media address to the server 2000 for storage after pairing. When the terminal 1000 determines that the webpage has a media tag, it obtains the media address associated with the webpage address from the server 2000 in response to the user's media address acquisition operation and displays it.
[0088] In combination with the terminal provided in the embodiment of the present disclosure, the embodiment of the present disclosure provides a method for obtaining a media address in a web page. Figure 3 As shown, the method for obtaining the media address in the web page includes the following steps:
[0089] S301, after opening a web page corresponding to a web page address, a terminal extracts a media address from a network request sent on the web page.
[0090] In the disclosed embodiment, a browser or other tool for accessing web pages is deployed in the terminal, and the terminal can open the web page corresponding to the web page address by running the browser or using other tools. For example, by entering the web page address in the browser environment, the corresponding web page can be opened. Generally speaking, if there is playable media in the web page, the real media address will be actively requested so that the web page can play the media file. Therefore, the network request issued on the web page will include a request for the media address. In view of this feature, the terminal can extract the media address from the network request issued on the web page.
[0091] In the disclosed embodiment, after opening the web page corresponding to the web page address, the terminal first obtains the network request issued on the web page, and then extracts the media address from the network request. Here, the browser can be configured with a special application program interface, and the terminal can obtain the network request issued on the web page through the application program interface to extract the media address. Taking the Chrome browser as an example, the terminal can obtain the network request issued on the web page through the WebRequest API of the Chrome browser.
[0092] In the disclosed embodiment, a special browser plug-in can be pre-set in the terminal, and the browser plug-in can be used to call the above-mentioned special application program interface of the browser (such as the WebRequest API of the Chrome browser), so as to obtain the media address extracted from the network request issued by the web page through the application interface. Here, the browser plug-in can apply for the background permission of the browser and act as a Service Worker in the background.
[0093] S302: The terminal associates and stores the web page address and the media address.
[0094] In the disclosed embodiment, the web page address and the media address are stored by the terminal itself or sent to the server for storage after being paired.
[0095] S303: When determining that the webpage has a media tag, the terminal obtains a media address associated with the webpage address in response to the user's media address acquisition operation.
[0096] In some embodiments, the media address is read from a storage module of the terminal itself, or is obtained by sending a media address acquisition request to a server.
[0097] S304: The terminal displays the acquired media address associated with the web page address.
[0098] The method for obtaining the media address in a web page provided by the embodiment of the present disclosure utilizes the characteristic that the real media address will be actively requested after the web page is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address are stored in association. In the case where there is a media tag in the web page, when the user needs to obtain the media address, the terminal can obtain the real media address corresponding to the media tag from the pre-associated and stored web page address and media address, and display the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained in the above manner. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0099] In some embodiments, storing the web page address and the media address in association with each other includes: storing the web page address and the media address in association with each other in a storage module of the terminal itself.
[0100] In some embodiments, when it is determined that a media tag exists on a web page, a media address associated with the web page address is obtained in response to a user's media address acquisition operation, including: when it is determined that a media tag exists on a web page, a media address associated with the web page address is read in the terminal's own storage module in response to the user's media address acquisition operation.
[0101] In combination with the terminal provided in the embodiment of the present disclosure, the embodiment of the present disclosure provides another method for obtaining a media address in a web page, Figure 4 As shown, the method for obtaining the media address in the web page includes the following steps:
[0102] S401, after opening a web page corresponding to a web page address, the terminal extracts a media address from a network request sent on the web page.
[0103] S402: The terminal associates the webpage address and the media address and stores them in a storage module of the terminal itself.
[0104] S403: When determining that the webpage has a media tag, the terminal responds to the user's media address acquisition operation to acquire a media address associated with the webpage address.
[0105] S404: The terminal displays the acquired media address associated with the web page address.
[0106] The method for obtaining the media address in a web page provided by the embodiment of the present disclosure utilizes the characteristic that the web page will actively request the real media address after it is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address can be stored in association. In the case where there is a media tag in the web page, when the user needs to obtain the media address, the real media address corresponding to the media tag can be read in its own storage module, and the media address can be displayed for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained by the above method. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0107] In some embodiments, storing the web page address and the media address in association with each other includes: pairing the web page address and the media address and sending them to a server so that the server stores the web page address and the media address in association with each other.
[0108] In some embodiments, when it is determined that the webpage has a media tag, in response to a user's media address acquisition operation, acquiring a media address associated with the webpage address includes: when it is determined that the webpage has a media tag, in response to the user's media address acquisition operation, sending a media address acquisition request to a server, wherein the media address acquisition request includes the webpage address;
[0109] In some embodiments, displaying the acquired media address associated with the web page address includes: receiving and displaying the media address associated with the web page address sent by the server.
[0110] In combination with the terminal and the server provided in the embodiment of the present disclosure, the embodiment of the present disclosure provides another method for obtaining a media address in a web page. Figure 5 As shown, the method for obtaining the media address in the web page includes the following steps:
[0111] S501, after opening a web page corresponding to a web page address, the terminal extracts a media address from a network request sent on the web page.
[0112] S502: The terminal pairs the web page address and the media address and sends them to the server.
[0113] The web page address of each web page is unique. A web page can have multiple media, and each media has its corresponding media address. Therefore, one web page address may correspond to multiple media addresses. In the disclosed embodiment, each media address can be paired with the web page address to form a matching pair (web page address, media address), and each media address and the web page address can be sent to the server in the form of a matching pair so that the server can store the web page address and the media address in association. It can be understood that the number of matching pairs is the same as the number of media addresses.
[0114] S503: When receiving the webpage address and the media address sent by the terminal, the server associates and stores the webpage address and the media address.
[0115] In the disclosed embodiment, when the server receives the media address and the webpage address sent as a matching pair, it stores the webpage address and the media address in association, and the webpage address and the media address stored in association are considered to be associated. As mentioned above, one webpage address may correspond to multiple media addresses, so one webpage address in the server may be associated with multiple media addresses.
[0116] S504: When determining that the webpage has a media tag, the terminal sends a media address acquisition request to the server in response to the user's media address acquisition operation.
[0117] In the embodiment of the present disclosure, when it is determined that a webpage has a media tag, if a user's media address acquisition operation is detected, indicating that the user needs to obtain the address of the media corresponding to the media tag, the terminal can generate a media address acquisition request and send the media address acquisition request to the server. The media address acquisition request includes the webpage address, and the media address acquisition request is used to request the server to return the media address associated with the webpage address.
[0118] S505: When receiving the media address acquisition request sent by the terminal, the server determines a media address associated with the webpage address in the media address acquisition request.
[0119] In the embodiment of the present disclosure, when receiving a media address acquisition request, the server may parse the web page address in the media address acquisition request, and then determine the media address associated with the web page address.
[0120] S506: The server sends the media address associated with the web page address to the terminal.
[0121] S507: The terminal receives and displays the media address associated with the webpage address sent by the server.
[0122] It is understandable that one web page address may correspond to multiple media addresses, so the terminal may display multiple media addresses at the same time, and the user selects the media address corresponding to the media tag from the multiple media addresses.
[0123] In some embodiments, the terminal may add a list near the media tag on the web page, and display various media addresses associated with the web page address through the list. The user may select the media address corresponding to the media tag in the list.
[0124] The method for obtaining the media address in a web page provided by the embodiment of the present disclosure utilizes the characteristic that the real media address will be actively requested after the web page is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address are paired and sent to the server for storage. In the case where there is a media tag on the web page, when the user needs to obtain the media address, the terminal obtains the real media address corresponding to the media tag by initiating a request to the server, and displays the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained by the above method. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0125] In some embodiments, extracting a media address from a network request issued on a web page includes: obtaining a network request issued on the web page, filtering out media-type network requests from the network requests, and extracting a media address from the media-type network requests.
[0126] Combination Figure 6 As shown, the embodiment of the present disclosure provides another method for obtaining a media address in a web page, and the method for obtaining a media address in a web page includes the following steps:
[0127] S601, after opening the web page corresponding to the web page address, the terminal obtains a network request issued by the web page.
[0128] S602: The terminal selects media network requests from network requests.
[0129] The media network request has a media feature, and the terminal can determine whether the network request has the media feature and whether the network request is a media feature. Specifically, the terminal can obtain the type feature of the network request and determine the network request whose type feature belongs to the media feature as a media network request.
[0130] In the disclosed embodiment, the type feature includes at least one of the following: suffix name, CDN (content delivery network) domain name and path feature. Optionally, suffix names such as *.mp4, *.m3u8, *.wav and *.mp3 are used as media features, some specified CDN domain names are used as media features, and some specified path features are used as media features.
[0131] In the disclosed embodiment, the terminal may obtain the suffix of the network request, and determine the network request with the suffix *.mp4, *.m3u8, *.wav or *.mp3 as a media network request. The terminal may obtain the CDN domain name of the network request, and determine the network request with the CDN domain name being the specified CDN domain name as a media network request. The terminal may obtain the path feature of the network request, and determine the network request with the path feature being the specified path feature as a media network request.
[0132] S603: The terminal extracts a media address from the media network request.
[0133] S604: The terminal pairs the web page address and the media address and sends them to the server.
[0134] S605: When receiving the web page address and the media address sent by the terminal, the server associates and stores the web page address and the media address.
[0135] S606: When determining that the webpage has a media tag, the terminal sends a media address acquisition request to the server in response to the user's media address acquisition operation.
[0136] S607: When receiving the media address acquisition request sent by the terminal, the server determines a media address associated with the webpage address in the media address acquisition request.
[0137] S608: The server sends the media address associated with the web page address to the terminal.
[0138] S609: The terminal receives and displays the media address associated with the webpage address sent by the server.
[0139] In some embodiments, in response to a user's media address acquisition operation, sending a media address acquisition request to a server includes: displaying address prompt information, and in response to the user's media address acquisition operation, sending a media address acquisition request to the server. The address prompt information is used to prompt the user to perform the media address acquisition operation.
[0140] Combination Figure 7 As shown, the embodiment of the present disclosure provides another method for obtaining a media address in a web page, and the method for obtaining a media address in a web page includes the following steps:
[0141] S701, after opening the web page corresponding to the web page address, the terminal extracts the media address from the network request sent on the web page.
[0142] S702: The terminal pairs the web page address and the media address and sends them to the server.
[0143] S703, when receiving the web page address and the media address sent by the terminal, the server associates and stores the web page address and the media address.
[0144] S704: When determining that the webpage has a media tag, the terminal displays address prompt information.
[0145] In the disclosed embodiment, the address prompt information is used to prompt the user to perform a media address acquisition operation. For example, the address prompt information is a virtual button added to a web page, or the address prompt information is an inquiry voice. Of course, the form of the address prompt information is not limited to this. When the terminal determines that there is a media tag on the web page, it can click a virtual button on the web page and / or issue an inquiry voice.
[0146] In some embodiments, when a virtual button is provided for address prompt information, the virtual button may be added inside or outside the media tag.
[0147] S705: In response to the user's media address acquisition operation, the terminal sends a media address acquisition request to the server.
[0148] In the embodiment of the present disclosure, the form of the media address acquisition operation can be determined according to the form of the address prompt information. When the address prompt information is a virtual button added to the web page, the media address acquisition operation is a click operation on the virtual button. When the terminal detects that the user clicks the virtual button, a media address acquisition request is sent to the server. When the address prompt information is an inquiry voice, the media address acquisition operation is a response operation to the inquiry voice. When the terminal detects the sound signal generated by the user's response operation, a media address acquisition request is sent to the server.
[0149] S706: When receiving the media address acquisition request sent by the terminal, the server determines a media address associated with the webpage address in the media address acquisition request.
[0150] S707: The server sends the media address associated with the web page address to the terminal.
[0151] S708: The terminal receives and displays the media address associated with the webpage address sent by the server.
[0152] In some embodiments, sending a media address associated with a web page address to a terminal includes: extracting the amount of media data corresponding to the media address from the HEAD data of the media address; sending the media address associated with the web page address and the amount of media data corresponding to the media address to the terminal.
[0153] In some embodiments, receiving and displaying a media address associated with a web page address sent by a server includes: receiving and displaying a media address associated with a web page address sent by a server, and the amount of media data corresponding to the media address, wherein the amount of media data is obtained by the server in the HEAD data of the media address.
[0154] Combination Figure 8 As shown, the embodiment of the present disclosure provides another method for obtaining a media address in a web page, and the method for obtaining a media address in a web page includes the following steps:
[0155] S801, after opening the web page corresponding to the web page address, the terminal extracts the media address from the network request sent on the web page.
[0156] S802: The terminal pairs the web page address and the media address and sends them to the server.
[0157] S803, when receiving the web page address and the media address sent by the terminal, the server associates and stores the web page address and the media address.
[0158] S804: When determining that the webpage has a media tag, the terminal sends a media address acquisition request to the server in response to the user's media address acquisition operation.
[0159] S805: When receiving the media address acquisition request sent by the terminal, the server determines a media address associated with the webpage address in the media address acquisition request.
[0160] S806: The server extracts the amount of media data corresponding to the media address from the HEAD data of the media address.
[0161] HEAD data refers to the data returned by the HEAD request in the HTTP protocol. The HEAD request is a special HTTP request method, which is similar to the GET request, but only requests the response header and does not include the content of the response body. In the disclosed embodiment, the HEAD data includes the amount of media data. The server can initiate a HEAD request to obtain the HEAD data of the media address, and then extract the amount of media data corresponding to the media address from the HEAD data.
[0162] The amount of media data corresponding to the media address, that is, the size of the media file corresponding to the media address. The amount of media data usually uses bytes as the basic unit. Of course, the amount of media data can also be expressed in larger units, such as Kilobyte (KB), Megabyte (MB) and Gigabyte (GB).
[0163] S807, the server sends the media address associated with the web page address and the amount of media data corresponding to the media address to the terminal.
[0164] S808, the terminal receives and displays the media address associated with the web page address and the amount of media data corresponding to the media address sent by the server.
[0165] In the disclosed embodiment, a web page address may correspond to multiple media addresses, so the terminal may display multiple media addresses at the same time. The amount of media data corresponding to the media address can reflect whether the media file corresponding to the media address is a valid media file, so the user can more accurately select the media address of the valid media file based on the amount of media data. Here, the valid media file is the media file corresponding to the current media tag. Taking the media as a video as an example, the amount of media data corresponding to the media address can reflect whether the video file corresponding to the media address is a feature film or an advertisement. It is understandable that a feature film is usually considered a valid media file.
[0166] In some embodiments, the terminal can add a list near the media tag on the web page, displaying the various media addresses associated with the web page address and the amount of media data corresponding to each media address through the list, and the user can select the media address corresponding to the media tag in the list.
[0167] Fig. 9is a schematic diagram of an application example of a method for obtaining a media address in a web page provided by an embodiment of the present disclosure, combined with Figure 7 As shown, the terminal is deployed with a Chrome browser. In the Chrome browser environment, a special browser plug-in runs in the background as a Service Worker. Enter the web address "http: / / www.xxx.com / page / xxx.html" in the address bar of the browser to open the corresponding web page. The browser plug-in calls the WebRequest API and obtains the network request issued on the web page through the WebRequest API. Media network requests are filtered out from the network requests, and then the media addresses are extracted from the media network requests. Each media address is paired with the web page address to form a matching pair (web page address, media address) and sent to the server.
[0168] When the server receives the matching pair (web page address, media address) sent by the terminal, it associates and stores the web page address and the media address.
[0169] When the terminal determines that the webpage has a media tag, it adds a virtual button named "Get Media Link" inside the media tag. When the terminal detects that the user clicks the virtual button, it sends a media address acquisition request containing the webpage address to the server.
[0170] When the server receives the media address acquisition request sent by the terminal, it determines the media address associated with the web page address in the media address acquisition request, requests the HEAD data of the media address, and extracts the amount of media data corresponding to the media address from the HEAD data. Then, it returns the media address associated with the web page address and the amount of media data corresponding to the media address to the terminal.
[0171] The terminal receives and displays the media address associated with the web page address and the amount of media data corresponding to the media address sent by the server. Fig. 9 In the example, there are three media addresses, namely URL1, URL2 and URL3. Each media address has information about the amount of media data corresponding to it, and the amount of media data is expressed in MB.
[0172] In some embodiments, when it is determined that a media tag exists on a web page, a media address acquisition request is sent to a server in response to a user's media address acquisition operation, including: when it is determined that a media tag exists on a web page, determining whether the address type of the media tag is a specified address type; when the address type corresponding to the media tag is the specified address type, in response to the user's media address acquisition operation, sending a media address acquisition request to the server; when the address type corresponding to the media tag is not the specified address type, in response to the user's media address acquisition operation, extracting the media address from the media tag and displaying it.
[0173] When determining that a webpage has a media tag, the disclosed embodiment first determines the address type of the media tag. If the address type of the media tag is a specified address type, then the media address needs to be requested from the server; if the address type of the media tag is not a specified address type, then the media address can be directly extracted from the media tag and displayed, thereby improving the efficiency of obtaining the media address and reducing the communication cost.
[0174] In the embodiment of the present disclosure, the specified address type is a blob address. When the address type corresponding to the media tag is a blob address, in response to the user's media address acquisition operation, a media address acquisition request is sent to the server; when the address type corresponding to the media tag is not a blob address, in response to the user's media address acquisition operation, the media address is extracted from the media tag and displayed.
[0175] In some embodiments, when the address type corresponding to the media tag is a specified address type, in response to the user's media address acquisition operation, a media address acquisition request is sent to the server, including: when the address type corresponding to the media tag is a specified address type, displaying address prompt information; in response to the user's media address acquisition operation, sending a media address acquisition request to the server.
[0176] In some embodiments, when the address type corresponding to the media tag is not a specified address type, in response to the user's media address acquisition operation, the media address is extracted from the media tag and displayed, including: when the address type corresponding to the media tag is not a specified address type, displaying address prompt information; in response to the user's media address acquisition operation, extracting the media address from the media tag and displaying it.
[0177] In some embodiments, the media address is time-limited. When the existence time of the media address exceeds its corresponding time limit, the media address will become invalid. When the media address becomes invalid, the server clears the media address. In this case, after the server clears the media address, after the user performs a media address acquisition operation, the server will no longer return a responsive media address. At this time, the user needs to refresh or reopen the web page. After the user refreshes or reopens the web page, the terminal extracts the media address from the network request issued on the web page, and sends the web page address and the media address to the server after pairing; when the server receives the web page address and the media address sent by the terminal, the web page address and the media address are associated and stored; when the terminal determines that there is a media tag on the web page, in response to the user's media address acquisition operation, the terminal sends a media address acquisition request to the server; when the existence time of the media address does not exceed its corresponding time limit, when the server receives the media address acquisition request sent by the terminal, it determines the media address associated with the web page address in the media address acquisition request; the server sends the media address associated with the web page address to the terminal; the terminal receives and displays the media address associated with the web page address sent by the server.
[0178] In some embodiments, when the media address is invalid, the terminal may display an invalidation prompt message on the web page, which is used to inform the user that the media address of the media in the web page has expired and a new media address can be re-extracted by refreshing or reopening the web page.
[0179] Combination Fig.10 As shown, the embodiment of the present disclosure provides a device 1000 for acquiring a media address in a web page. The device 1000 for acquiring a media address includes an address extraction module 1001 , an address storage module 1002 , an address request module 1003 and an address display module 1004 .
[0180] The address extraction module 1001 is configured to extract a media address from a network request issued on a web page after opening the web page corresponding to the web page address.
[0181] The address storage module 1002 is configured to store the web page address and the media address in association with each other, wherein the web page address and the media address are stored by the terminal itself or sent to the server for storage after being paired.
[0182] The address request module 1003 is configured to, when it is determined that a media tag exists on a web page, respond to a user's media address acquisition operation to acquire a media address associated with the web page address, wherein the media address is read from the terminal's own storage module or obtained by sending a media address acquisition request to a server.
[0183] The address display module 1004 is configured to display the acquired media address associated with the web page address.
[0184] The media address acquisition device in the web page provided by the embodiment of the present disclosure utilizes the characteristic that the real media address will be actively requested after the web page is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address are stored in association. In the case where there is a media tag in the web page, when the user needs to obtain the media address, the terminal can obtain the real media address corresponding to the media tag from the pre-associated and stored web page address and media address, and display the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained in the above manner. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0185] In some embodiments, the address storage module 1002 is configured to store the web page address and the media address in association in the storage module of the terminal itself. The address request module 1003 is configured to read the media address associated with the web page address in the storage module of the terminal itself in response to the user's media address acquisition operation when it is determined that the web page has a media tag.
[0186] In some embodiments, the address storage module 1002 is configured to pair the web page address and the media address and send them to the server so that the server stores the web page address and the media address in association. The address request module 1003 is configured to send a media address acquisition request to the server in response to the user's media address acquisition operation when it is determined that the web page has a media tag, wherein the media address acquisition request includes the web page address. The address display module 1004 is configured to receive and display the media address associated with the web page address sent by the server.
[0187] The media address acquisition device in the web page provided by the embodiment of the present disclosure utilizes the characteristic that the real media address will be actively requested after the web page is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address are paired and sent to the server for storage. In the case where there is a media tag on the web page, when the user needs to obtain the media address, the device obtains the real media address corresponding to the media tag by initiating a request to the server, and displays the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained by the above method. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0188] In some embodiments, the address extraction module 1001 is configured to: obtain network requests issued on a web page, filter out media network requests from the network requests, and extract media addresses from the media network requests.
[0189] In some embodiments, the address extraction module 1001 is configured to:
[0190] Obtaining a type feature of the network request, wherein the type feature includes at least one of the following: a suffix name, a CDN domain name, and a path feature;
[0191] A network request whose type feature belongs to the media feature is determined as a media network request.
[0192] In some embodiments, the address request module 1003 is configured to:
[0193] Displaying address prompt information, wherein the address prompt information is used to prompt the user to perform a media address acquisition operation;
[0194] In response to the user's media address acquisition operation, a media address acquisition request is sent to the server.
[0195] In some embodiments, the address prompt information is a virtual button added to the web page, and the media address acquisition operation is a click operation on the virtual button; or, the address prompt information is an inquiry voice, and the media address acquisition operation is a response operation to the inquiry voice.
[0196] In some embodiments, the address request module 1003 is configured to:
[0197] When it is determined that the webpage has a media tag, determining whether the address type of the media tag is a specified address type;
[0198] When the address type corresponding to the media tag is a specified address type, in response to the user's media address acquisition operation, sending a media address acquisition request to the server;
[0199] In the case where the address type corresponding to the media tag is not the specified address type, in response to the user's media address acquisition operation, the media address is extracted from the media tag and displayed.
[0200] In some embodiments, the address display module 1004 is configured to: receive and display a media address associated with a web page address and the amount of media data corresponding to the media address sent by the server, wherein the amount of media data is obtained by the server in the HEAD data of the media address.
[0201] Combination Fig.11As shown, the embodiment of the present disclosure provides another apparatus 1100 for acquiring a media address in a web page. The apparatus 1100 for acquiring a media address includes an address storage module 1101 , an address determination module 1102 , and an address delivery module 1103 .
[0202] The address storage module 1101 is configured to store the web page address and the media address in association with each other when receiving the web page address and the media address sent by the terminal, wherein the media address is extracted from the network request issued on the web page after the terminal opens the web page.
[0203] The address determination module 1102 is configured to determine the media address associated with the webpage address in the media address acquisition request when receiving the media address acquisition request sent by the terminal.
[0204] The address sending module 1103 is configured to send a media address associated with the webpage address to the terminal.
[0205] In some embodiments, the address sending module 1103 is configured to: extract the media data volume corresponding to the media address from the HEAD data of the media address; and send the media address associated with the web page address and the media data volume corresponding to the media address to the terminal.
[0206] The device for obtaining the media address in a web page provided by the embodiment of the present disclosure utilizes the characteristic that the terminal will actively request the real media address after the web page is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address are paired and sent to the device for storage. In the case where there is a media tag on the web page, when the user needs to obtain the media address, the device obtains the real media address corresponding to the media tag by initiating a request to the device, and displays the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained by the above method. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0207] Combination Fig.12As shown, an embodiment of the present disclosure provides a terminal 1000, which includes a processor 1001 and a memory 1002. Optionally, the terminal 1000 may also include a communication interface 1003 and a bus 1004. The processor 1001, the communication interface 1003, and the memory 1002 may communicate with each other through the bus 1004. The communication interface 1003 may be used for information transmission. The processor 1001 may call the logic instructions in the memory 1002 to execute the method for obtaining the media address in the web page of the above embodiment.
[0208] In addition, the logic instructions in the memory 1002 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0209] The memory 1002 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 1001 executes the function application and data processing by running the program instructions / modules stored in the memory 1002, that is, the method for obtaining the media address in the web page in the above embodiment is implemented.
[0210] The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 1002 may include a high-speed random access memory and may also include a non-volatile memory.
[0211] The terminal provided by the disclosed embodiment can be used in conjunction with a server, and utilizes the characteristic that the real media address will be actively requested after the web page is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address are paired and sent to the server for storage. In the case where there is a media tag on the web page, when the user needs to obtain the media address, the terminal obtains the real media address corresponding to the media tag by initiating a request to the server, and displays the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained in the above manner. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0212] Combination Fig.13As shown, the embodiment of the present disclosure provides a server 2000, and the server 2000 includes a processor (processor) 2001 and a memory (memory) 2002. Optionally, the server 2000 may also include a communication interface (Communication Interface) 2003 and a bus 2004. Among them, the processor 2001, the communication interface 2003, and the memory 2002 can communicate with each other through the bus 2004. The communication interface 2003 can be used for information transmission. The processor 2001 can call the logic instructions in the memory 2002 to execute the media address acquisition method in the web page of the above embodiment.
[0213] In addition, the logic instructions in the memory 2002 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0214] The memory 2002 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 2001 executes the function application and data processing by running the program instructions / modules stored in the memory 2002, that is, the method for obtaining the media address in the web page in the above embodiment is implemented.
[0215] The memory 2002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 2002 may include a high-speed random access memory and may also include a non-volatile memory.
[0216] The server provided by the disclosed embodiment can be used in conjunction with a terminal, and utilizes the characteristic that the real media address will be actively requested after the web page is opened. After the web page is opened, the media address can be actively extracted from the network request issued on the web page, and the web page address and the media address are paired and sent to the server for storage. In the case where there is a media tag on the web page, when the user needs to obtain the media address, the terminal obtains the real media address corresponding to the media tag by initiating a request to the server, and displays the media address for the user to use. Even in the case where the web page plays the media file in the form of a blob address, the real media address can be obtained in the above manner. The above principle of obtaining the media address is simple and effective, has high versatility, is less affected by platform changes, and can obtain the real media address at a low cost in a variety of different types of web pages.
[0217] The embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for obtaining a media address in a web page.
[0218] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0219] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0220] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0221] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0222] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for obtaining a media address in a web page, characterized in that: include: After opening the web page corresponding to the web page address, extracting the media address from the network request issued on the web page; storing the web page address and the media address in association, wherein the web page address and the media address are stored by the terminal itself or sent to the server for storage after being paired; In the case of determining that the webpage has a media tag, in response to the user's media address acquisition operation, acquiring a media address associated with the webpage address, wherein the media address is read from a storage module of the terminal itself, or is obtained by sending a media address acquisition request to a server; Displays the acquired media address associated with the web page address.
2. The method according to claim 1, characterized in that The webpage address and the media address are stored in association, including: storing the webpage address and the media address in association in a storage module of the terminal itself; When it is determined that a media tag exists on a web page, a media address associated with the web page address is obtained in response to a user's media address acquisition operation, including: when it is determined that a media tag exists on a web page, a media address associated with the web page address is read in a storage module of the terminal itself in response to the user's media address acquisition operation.
3. The method according to claim 1, characterized in that The web page address and the media address are stored in association, including: pairing the web page address and the media address and sending them to the server so that the server stores the web page address and the media address in association; When it is determined that the webpage has a media tag, in response to a user's media address acquisition operation, acquiring a media address associated with the webpage address, including: when it is determined that the webpage has a media tag, in response to the user's media address acquisition operation, sending a media address acquisition request to a server, wherein the media address acquisition request includes the webpage address; Displaying the acquired media address associated with the webpage address includes: receiving and displaying the media address associated with the webpage address sent by the server.
4. The method according to claim 1, characterized in that: Extract media addresses from network requests made on a web page, including: Get the network requests issued on the web page; Filter out media network requests from network requests; Extract the media address from the media network request.
5. The method according to claim 4, characterized in that Filter out media network requests from network requests, including: Obtaining a type feature of the network request, wherein the type feature includes at least one of the following: a suffix name, a CDN domain name, and a path feature; A network request whose type feature belongs to the media feature is determined as a media network request.
6. The method according to claim 3, characterized in that In response to the user's media address acquisition operation, a media address acquisition request is sent to the server, including: Displaying address prompt information, wherein the address prompt information is used to prompt the user to perform a media address acquisition operation; In response to the user's media address acquisition operation, a media address acquisition request is sent to the server.
7. The method according to claim 6, characterized in that The address prompt information is a virtual button added on the web page, and the media address acquisition operation is a click operation on the virtual button; Alternatively, the address prompt information is an inquiry voice, and the media address acquisition operation is a response operation to the inquiry voice.
8. The method according to claim 3, characterized in that When it is determined that the webpage has a media tag, in response to the user's media address acquisition operation, a media address acquisition request is sent to the server, including: When it is determined that the webpage has a media tag, determining whether the address type of the media tag is a specified address type; When the address type corresponding to the media tag is a specified address type, in response to the user's media address acquisition operation, sending a media address acquisition request to the server; In the case where the address type corresponding to the media tag is not the specified address type, in response to the user's media address acquisition operation, the media address is extracted from the media tag and displayed.
9. The method according to claim 3, characterized in that: Receive and display the media address associated with the web page address sent by the server, including: Receive and display the media address associated with the web page address and the amount of media data corresponding to the media address sent by the server, wherein the amount of media data is obtained by the server in the HEAD data of the media address.
10. A method for obtaining a media address in a web page, characterized in that: include: When receiving the web page address and the media address sent by the terminal, the web page address and the media address are associated and stored, wherein the media address is extracted from the network request issued on the web page after the terminal opens the web page; When receiving a media address acquisition request sent by a terminal, determining a media address associated with the webpage address in the media address acquisition request; The media address associated with the web page address is sent to the terminal.
11. The method according to claim 10, characterized in that Sending the media address associated with the webpage address to the terminal includes: Extract the amount of media data corresponding to the media address from the HEAD data of the media address; The media address associated with the webpage address and the amount of media data corresponding to the media address are sent to the terminal.
12. A device for obtaining a media address in a web page, characterized in that: include: The address extraction module is configured to extract the media address from the network request issued on the web page after opening the web page corresponding to the web page address; An address storage module is configured to store the web page address and the media address in association with each other, wherein the web page address and the media address are stored by the terminal itself or sent to the server for storage after being paired; an address request module, configured to obtain a media address associated with the webpage address in response to a media address acquisition operation of a user when determining that a webpage has a media tag, wherein the media address is read from a storage module of the terminal itself or obtained by sending a media address acquisition request to a server; The address display module is configured to display the acquired media address associated with the web page address.
13. A device for obtaining a media address in a web page, characterized in that: include: The address storage module is configured to associate and store the web page address and the media address when receiving the web page address and the media address sent by the terminal, wherein the media address is extracted from the network request issued on the web page after the terminal opens the web page; An address determination module is configured to determine a media address associated with a webpage address in the media address acquisition request when receiving the media address acquisition request sent by the terminal; The address sending module is configured to send a media address associated with a web page address to a terminal.
14. A terminal comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for obtaining a media address in a web page as described in any one of claims 1 to 9 when running the program instructions.
15. A server comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for obtaining a media address in a web page as claimed in claim 10 or 11 when running the program instructions.
16. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for obtaining a media address in a web page as described in any one of claims 1 to 11 is executed.