CN104881452A - Resource locator sniffing method, device and system - Google Patents

Resource locator sniffing method, device and system Download PDF

Info

Publication number
CN104881452A
CN104881452A CN201510254273.3A CN201510254273A CN104881452A CN 104881452 A CN104881452 A CN 104881452A CN 201510254273 A CN201510254273 A CN 201510254273A CN 104881452 A CN104881452 A CN 104881452A
Authority
CN
China
Prior art keywords
resource
page resource
webpage
network view
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.)
Granted
Application number
CN201510254273.3A
Other languages
Chinese (zh)
Other versions
CN104881452B (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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510254273.3A priority Critical patent/CN104881452B/en
Publication of CN104881452A publication Critical patent/CN104881452A/en
Application granted granted Critical
Publication of CN104881452B publication Critical patent/CN104881452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (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

The embodiment of the invention provides a resource locator sniffing method, device and system. The method is that the a uniform resource locator (URL) of a webpage is received by a network view from a client; the webpage data can be obtained through the URL, and the resource address of the page resource, included in the webpage can be obtained from the webpage data; then the resource address of the page resource can be sent to the client, so that the client can load the page resource through the resource address of the page resource. According to the technical scheme, the method, the device and the system can solve the problem of failure of sniffing of the resource address of the page resource.

Description

A kind of resource address smell spy method, Apparatus and system
[technical field]
The present invention relates to technical field of internet application, what particularly relate to a kind of resource address smells spy method, Apparatus and system.
[background technology]
Along with the development of Internet technology, the various website of page resource that provides gets more and more, and user can carry out browsing of various page resource by third party website.But, existingly provide in the website of page resource, the resource address of page resource is generally dynamically produced by JavaScript, pass through content extraction system, the real resource address of page resource dynamically produced cannot be obtained static page analysis, could obtain when the real resource address of usual page resource only initiates request by user end to server after Web page loading.Therefore, current client can only obtain page resource in the related web page of third party website, as play in webpage video, represent picture or audio frequency etc., but, when obtaining page resource from webpage, the loading effectiveness comparison of page resource is poor, such as, often has insertion of advertising or video cannot the problem such as played in full screen when playing video resource.
In order to address this problem, in prior art, server provides third party website by constantly accessing, smell the resource address visiting page resource, and the resource address of this page resource is stored in local database, like this, client just can obtain the resource address of page resource from server.But because the IP address of server is more fixing, the third party website being easily provided page resource blocks, thus causes smelling of the resource address of page resource to be visited unsuccessfully.
In prior art, be by loading load mode in page that entire Web page obtains the page resource comprised in webpage, and in page, the effect of load mode is poor, as the page can glimmer, have advertisement to insert, cannot played in full screen, cannot the problem such as wicket broadcasting.In the embodiment of the present invention, the resource address of page resource can be utilized, the page resource required for directly loading, and not need to load entire Web page.Such as, utilize local video player to play-over video, thus can advertisement, played in full screen etc. be shielded.Solve the problem that in prior art, in page, the effect of load mode is poor.
The embodiment of the present invention provides the device embodiment realizing each step and method in said method embodiment further.
[summary of the invention]
In view of this, what embodiments provide a kind of resource address smells spy method, Apparatus and system, visits failed problem in order to solve smelling of the resource address of page resource.
The one side of the embodiment of the present invention, what provide a kind of resource address smells spy method, comprising:
Network view receives the uniform resource position mark URL of the webpage that client sends;
Network view utilizes described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises;
The resource address of described page resource is sent to described client by described network view, with the resource address making described client utilize described page resource, loads described page resource.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and described network view obtains the resource address of the page resource that described webpage comprises from described web data, comprising:
Described network view is resolved described web data, to obtain the HTML (Hypertext Markup Language) html file of described webpage;
Described network view, according to described html file, judges whether described webpage comprises described page resource;
If described webpage comprises described page resource, described network view obtains the resource address of the page resource that described webpage comprises from described web data.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and described network view, according to described html file, judges whether described webpage comprises described page resource, comprising:
Described network view determines the label of described page resource;
Described network view judges the label whether comprising described page resource in described html file;
Described network view, according to the label whether comprising described page resource in described html file, judges whether described webpage comprises described page resource.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described network view utilizes described URL, obtains web data, comprising:
Described network view, to providing the transmission of the server of described webpage for the data acquisition request of described URL, to make to provide the server of described webpage according to described URL, obtains described web data;
Described network view receives the described web data providing the server of described webpage to send.
Aspect as above and arbitrary possible implementation, a kind of implementation is provided further, the resource address of described page resource is supplied to server by described network view, to make the resource address of URL and page resource described in described server corresponding stored.
The one side of the embodiment of the present invention, what provide a kind of resource address smells spy method, comprising:
Client sends the uniform resource position mark URL of webpage to network view, to make described network view utilize described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises;
Described client receives the resource address of the described page resource that described network view sends;
Described client utilizes the resource address of described page resource, loads described page resource.
The one side of the embodiment of the present invention, what provide a kind of resource address smells spy device, comprising:
Receiving element, for receiving the uniform resource position mark URL of the webpage that client sends;
Processing unit, for utilizing described URL, obtaining web data, and from described web data, obtaining the resource address of the page resource that described webpage comprises;
Output unit, for the resource address of described page resource is sent to described client, with the resource address making described client utilize described page resource, loads described page resource.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described processing unit further, specifically for:
Described web data is resolved, to obtain the HTML (Hypertext Markup Language) html file of described webpage;
According to described html file, judge whether described webpage comprises described page resource;
If described webpage comprises described page resource, from described web data, obtain the resource address of the page resource that described webpage comprises.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, and described processing unit is used for according to described html file, when judging whether described webpage comprises described page resource, specifically for:
Determine the label of described page resource;
Judge the label whether comprising described page resource in described html file;
According to the label whether comprising described page resource in described html file, judge whether described webpage comprises described page resource.
Aspect as above and arbitrary possible implementation, provide a kind of implementation, described processing unit further, specifically for:
To providing the transmission of the server of described webpage for the data acquisition request of described URL, to make to provide the server of described webpage according to described URL, obtain described web data;
Receive the described web data providing the server of described webpage to send.
Aspect as above and arbitrary possible implementation, provide a kind of implementation further, described output unit also for:
The resource address of described page resource is supplied to server, to make the resource address of URL and page resource described in described server corresponding stored.
The one side of the embodiment of the present invention, what provide a kind of resource address smells spy device, comprising:
Output unit, for sending the uniform resource position mark URL of webpage to network view, to make described network view utilize described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises;
Receiving element, for receiving the resource address of the described page resource that described network view sends;
Processing unit, for utilizing the resource address of described page resource, loads described page resource.
The one side of the embodiment of the present invention, what provide a kind of resource address smells spy system, comprises client and network view; Wherein,
Described client, for the uniform resource position mark URL of webpage sent to described network view;
Described network view, for utilizing described URL, obtaining web data, and from described web data, obtaining the resource address of the page resource that described webpage comprises, and, the resource address of described page resource is sent to described client;
Described client, also for utilizing the resource address of described page resource, loads described page resource.
As can be seen from the above technical solutions, the embodiment of the present invention has following beneficial effect:
In the technical scheme that the embodiment of the present invention provides, the spy of smelling being carried out the resource address of page resource by network view operates, and provides it to client.Because network view can not be blocked by third party website, therefore network view successfully can smell the resource address visiting page resource, thus solves in prior art, the problem of the resource address failure of sniffer server page resource.
[accompanying drawing explanation]
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the exemplary system figure of the technical scheme use that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the embodiment one of smelling spy method of the resource address that the embodiment of the present invention provides;
Fig. 3 is the schematic flow sheet of the embodiment two of smelling spy method of the resource address that the embodiment of the present invention provides;
Fig. 4 is the functional block diagram of smelling the embodiment one visiting device of the resource address that the embodiment of the present invention provides;
Fig. 5 is the functional block diagram of smelling the embodiment two visiting device of the resource address that the embodiment of the present invention provides;
Fig. 6 is the structural representation smelling spy system of the resource address that the embodiment of the present invention provides.
[embodiment]
Technical scheme for a better understanding of the present invention, is described in detail the embodiment of the present invention below in conjunction with accompanying drawing.
Should be clear and definite, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
The term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.
Should be appreciated that term "and/or" used herein is only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining " or " in response to detection ".Similarly, depend on linguistic context, phrase " if determination " or " if detecting (the conditioned disjunction event of statement) " can be construed as " when determining " or " in response to determining " or " when detecting (the conditioned disjunction event of statement) " or " in response to detection (the conditioned disjunction event of statement) ".
The system that the technical scheme that the embodiment of the present invention provides uses as shown in Figure 1, form primarily of client, network view and server, during the embodiment of the present invention provides, obtained the resource address of page resource by network view, and be supplied to client and/or server.
Embodiment one
What the embodiment of the present invention provided a kind of resource address smells spy method, and please refer to Fig. 2, the schematic flow sheet of the embodiment one of smelling spy method of its resource address provided for the embodiment of the present invention, as shown in the figure, the method comprises the following steps:
S201, network view receives the uniform resource position mark URL of the webpage that client sends.
Concrete, can newly-built one there is the network view (WebView) browsing kernel (Webkit), what then utilize this network view to realize resource address in the embodiment of the present invention smells spy operation.
Wherein, the spy operation of smelling of resource address refers to by constantly accessing the third party website providing page resource, obtain the resource address of netpage page face resource, and the resource address of the page resource of acquisition is sent to client, so that client utilizes the direct load page resource of the resource address of this page resource, and do not need to load the webpage comprising this page resource.
Preferably, in the embodiment of the present invention, when client needs an access webpage, client needs the URL(uniform resource locator) (Uniform Resource Locator, URL) of this webpage to send to client.
S202, network view utilizes described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises.
Concrete, illustrate, the method that network view utilizes described URL to obtain web data can include but not limited to:
First, described network view browse kernel to the server providing webpage, send the data acquisition request for described URL, to make to provide the server of described webpage according to described URL, obtain the web data that described URL is corresponding, and send this web data to described network view, like this, described network view just can receive the web data providing the server of described webpage to send.
Be understandable that, described network view is one and comprises and browse kernel and for the program control of displaying web page, different from real browser, browser generally comprises the interface of address field, toolbar and displaying web page, and described network view only can comprise the interface of displaying web page.
Illustrate, in the embodiment of the present invention, the method that described network view obtains the resource address of the page resource that described webpage comprises from the described web data obtained can include but not limited to:
First, the web data checking acquisition in the browsing of described network view is resolved, to obtain HTML (Hypertext Markup Language) (Hyper Text Mark-up Language, the HTML) file of described webpage.Then, described network view browse kernel according to described html file, judge whether described webpage comprises described page resource.If described webpage comprises described page resource, from described web data, obtain the resource address of the page resource that described webpage comprises.
Or, if described webpage does not comprise described page resource, from described web data, do not obtain the resource address of page resource.
Preferably, in the embodiment of the present invention, the page resource that described webpage comprises can include but not limited to: in video, audio frequency, picture, little text of mediating a settlement at least one.
Accordingly, the resource address of described page resource can comprise but must be limited to: in the memory address of the broadcast address of video, the broadcast address of audio frequency, the memory address of picture, the memory address of novel and text at least one.
Illustrate, in the embodiment of the present invention, network view, according to described html file, judges that the method whether described webpage comprises described page resource can include but not limited to:
First, described network view browse the label that kernel determines described page resource.Then, described network view browse the label that kernel judges whether to comprise in described html file described page resource, and, described network view browse kernel according to the label whether comprising described page resource in described html file, judge whether described webpage comprises described page resource.If comprise the label of described page resource in described html file, determine that described webpage comprises described page resource, otherwise, if do not comprise the label of described page resource in described html file, determine that described webpage does not comprise described page resource.
Such as, if described page resource is video, the kernel of browsing of described network view first determines that the label of video is video label, then judges whether comprise described video label in described html file.If comprise described video label in described html file, then judge that described webpage comprises video, further, the broadcast address of this video can be obtained from the SRC attribute of video label.Otherwise, if do not comprise described video label in described html file, then judge that described webpage does not comprise video.
Or, more such as, if described page resource is picture, the kernel of browsing of described network view first determines that the label of picture is img label, then judges whether comprise described img label in described html file.If comprise described img label in described html file, then judge that described webpage comprises picture, further, the memory address of this picture can be obtained from the SRC attribute of img label.Otherwise, if do not comprise described img label in described html file, then judge that described webpage does not comprise picture.
S203, the resource address of described page resource is sent to described client by described network view, with the resource address making described client utilize described page resource, loads described page resource.
Concrete, what described network view can utilize the resource address of above-mentioned page resource smells spy method, the resource address of the page resource of acquisition is sent to client, like this, client just can utilize the resource address of described page resource, loads described page resource.
Optionally, can also comprise after said method S202:
The resource address of described page resource is supplied to server by described network view, to make the resource address of URL and page resource described in described server corresponding stored.
Concrete, the method that the resource address of described page resource is supplied to server by described network view can include but not limited to:
Described server can provide one to upload interface, described network view is after the resource address obtaining page resource, what can be provided by described server uploads interface, the resource address of described page resource is supplied to described server, like this, server just obtains the resource address of page resource.
Preferably, the database that described server is established in can utilizing, the resource address of URL described in corresponding stored and page resource, like this, the resource address of the page resource stored in database when the resource address of other client-requested page resources, can be supplied to these other clients by server.
It should be noted that, network view obtains the resource address of page resource, and can provide the resource address of this page resource to server, and network view can not be blocked IP address by third party website, therefore, it is possible to successfully smell the resource address visiting page resource.Solve in prior art, the problem of the resource address failure of sniffer server page resource, and avoid the problem of cache invalidation.
And, the resource address of the page resource of acquisition is all reported server by network view, such server just can realize the continuous renewal of the resource address of page resource, ensure that the buffer memory of the resource address of page resource is effective, solve in prior art because server cannot smell the problem of the cache invalidation that the resource address of visiting page resource brings.
In addition, in the embodiment of the present invention, if page resource is video, and do not need to demonstrate webpage due to network view, so in order to allow network view obtain web data faster, can when this network view newly-built, this network view is configured to without chart-pattern, like this, do not comprise image data in the web data that network view obtains, thus improve the acquisition speed of web data.
Embodiment two
Please refer to Fig. 3, the schematic flow sheet of the embodiment two of smelling spy method of its resource address provided for the embodiment of the present invention, as shown in the figure, the method comprises the following steps:
S301, client sends the uniform resource position mark URL of webpage to network view, to make described network view utilize described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises.
S302, described client receives the resource address of the described page resource that described network view sends.
S303, described client utilizes the resource address of described page resource, loads described page resource.
Concrete, what described network view can utilize the resource address of above-mentioned page resource smells spy method, the resource address of the page resource of acquisition is sent to client, like this, client just can utilize the resource address of described page resource, loads described page resource.
Such as, client utilizes the broadcast address of video, calls local video player, play-overs described video.
Again such as, client utilizes the broadcast address of audio frequency, calls local audio player, play-overs described audio frequency.
Again such as, client utilizes the memory address of novel, calls local novel reader, directly shows described novel.
Again such as, client utilizes the memory address of picture, calls local Photo Browser, directly represents described picture.
Embodiment three
Please refer to Fig. 4, the functional block diagram of smelling the embodiment one visiting device of its resource address provided for the embodiment of the present invention.Device shown in Fig. 4 is the executive agent smelling spy method of the resource address that embodiment one provides.As shown in the figure, this device comprises:
Receiving element 401, for receiving the uniform resource position mark URL of the webpage that client sends;
Processing unit 402, for utilizing described URL, obtaining web data, and from described web data, obtaining the resource address of the page resource that described webpage comprises;
Output unit 403, for the resource address of described page resource is sent to described client, with the resource address making described client utilize described page resource, loads described page resource.
Preferably, described processing unit 402, specifically for:
Described web data is resolved, to obtain the HTML (Hypertext Markup Language) html file of described webpage;
According to described html file, judge whether described webpage comprises described page resource;
If described webpage comprises described page resource, from described web data, obtain the resource address of the page resource that described webpage comprises.
Preferably, described processing unit 402 for according to described html file, when judging whether described webpage comprises described page resource, specifically for:
Determine the label of described page resource;
Judge the label whether comprising described page resource in described html file;
According to the label whether comprising described page resource in described html file, judge whether described webpage comprises described page resource.
Preferably, described processing unit 402, specifically for:
To providing the transmission of the server of described webpage for the data acquisition request of described URL, to make to provide the server of described webpage according to described URL, obtain described web data;
Receive the described web data providing the server of described webpage to send.
Optionally, described output unit 403 also for:
The resource address of described page resource is supplied to server, to make the resource address of URL and page resource described in described server corresponding stored.
Because each unit in the present embodiment can perform the method shown in Fig. 2, the part that the present embodiment is not described in detail, can with reference to the related description to Fig. 2.
Embodiment four
Please refer to Fig. 5, the functional block diagram of smelling the embodiment two visiting device of its resource address provided for the embodiment of the present invention.Device shown in Fig. 5 is the executive agent smelling spy method of the resource address that embodiment two provides.As shown in the figure, this device comprises:
Output unit 501, for sending the uniform resource position mark URL of webpage to network view, to make described network view utilize described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises;
Receiving element 502, for receiving the resource address of the described page resource that described network view sends;
Processing unit 503, for utilizing the resource address of described page resource, loads described page resource.
Because each unit in the present embodiment can perform the method shown in Fig. 3, the part that the present embodiment is not described in detail, can with reference to the related description to Fig. 3.
Embodiment six
Please refer to Fig. 6, the structural representation smelling spy system of its resource address provided for the embodiment of the present invention.As shown in the figure, this system comprises: client 601 and network view 602; Wherein,
Described client 601, for the uniform resource position mark URL of the webpage to described network view 602 transmission;
Described network view 602, for utilizing described URL, obtaining web data, and from described web data, obtaining the resource address of the page resource that described webpage comprises, and, the resource address of described page resource is sent to described client;
Described client 601, also for utilizing the resource address of described page resource, loads described page resource.
The technical scheme of the embodiment of the present invention has following beneficial effect:
In the embodiment of the present invention, the uniform resource position mark URL of the webpage that network view is sent by reception client, thus, utilize described URL, obtain web data, and from described web data, obtain the resource address of the page resource that described webpage comprises; And then, the resource address of described page resource is sent to described client, with the resource address making described client utilize described page resource, loads described page resource.
In the technical scheme that the embodiment of the present invention provides, the spy of smelling being carried out the resource address of page resource by network view operates, and provides it to client.Because network view can not be blocked by third party website, therefore network view successfully can smell the resource address visiting page resource, thus solves in prior art, the problem of the resource address failure of sniffer server page resource.
In addition, client can utilize network view to smell to visit and arrive to obtain the direct load page resource of resource address of page resource, and do not need first to load the webpage comprising this page resource, carry out the loading of page resource in webpage again, therefore, it is possible to improve the loading efficiency of page resource, reduce load time and running cost.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, is only a kind of logic function and divides, and actual can have other dividing mode when realizing, such as, multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer installation (can be personal computer, server, or network equipment etc.) or processor (Processor) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various can be program code stored medium.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (13)

1. resource address smell a spy method, it is characterized in that, described method comprises:
Network view receives the uniform resource position mark URL of the webpage that client sends;
Network view utilizes described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises;
The resource address of described page resource is sent to described client by described network view, with the resource address making described client utilize described page resource, loads described page resource.
2. method according to claim 1, is characterized in that, described network view obtains the resource address of the page resource that described webpage comprises from described web data, comprising:
Described network view is resolved described web data, to obtain the HTML (Hypertext Markup Language) html file of described webpage;
Described network view, according to described html file, judges whether described webpage comprises described page resource;
If described webpage comprises described page resource, described network view obtains the resource address of the page resource that described webpage comprises from described web data.
3. method according to claim 2, is characterized in that, described network view, according to described html file, judges whether described webpage comprises described page resource, comprising:
Described network view determines the label of described page resource;
Described network view judges the label whether comprising described page resource in described html file;
Described network view, according to the label whether comprising described page resource in described html file, judges whether described webpage comprises described page resource.
4. method according to claim 1 and 2, is characterized in that, described network view utilizes described URL, obtains web data, comprising:
Described network view, to providing the transmission of the server of described webpage for the data acquisition request of described URL, to make to provide the server of described webpage according to described URL, obtains described web data;
Described network view receives the described web data providing the server of described webpage to send.
5. method according to claim 1, is characterized in that, described method also comprises:
The resource address of described page resource is supplied to server by described network view, to make the resource address of URL and page resource described in described server corresponding stored.
6. resource address smell a spy method, it is characterized in that, described method comprises:
Client sends the uniform resource position mark URL of webpage to network view, to make described network view utilize described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises;
Described client receives the resource address of the described page resource that described network view sends;
Described client utilizes the resource address of described page resource, loads described page resource.
7. resource address smell a spy device, it is characterized in that, described device comprises:
Receiving element, for receiving the uniform resource position mark URL of the webpage that client sends;
Processing unit, for utilizing described URL, obtaining web data, and from described web data, obtaining the resource address of the page resource that described webpage comprises;
Output unit, for the resource address of described page resource is sent to described client, with the resource address making described client utilize described page resource, loads described page resource.
8. device according to claim 7, is characterized in that, described processing unit, specifically for:
Described web data is resolved, to obtain the HTML (Hypertext Markup Language) html file of described webpage;
According to described html file, judge whether described webpage comprises described page resource;
If described webpage comprises described page resource, from described web data, obtain the resource address of the page resource that described webpage comprises.
9. device according to claim 8, is characterized in that, described processing unit is used for according to described html file, when judging whether described webpage comprises described page resource, specifically for:
Determine the label of described page resource;
Judge the label whether comprising described page resource in described html file;
According to the label whether comprising described page resource in described html file, judge whether described webpage comprises described page resource.
10. the device according to claim 7 or 8, is characterized in that, described processing unit, specifically for:
To providing the transmission of the server of described webpage for the data acquisition request of described URL, to make to provide the server of described webpage according to described URL, obtain described web data;
Receive the described web data providing the server of described webpage to send.
11. devices according to claim 7, is characterized in that, described output unit also for:
The resource address of described page resource is supplied to server, to make the resource address of URL and page resource described in described server corresponding stored.
12. 1 kinds of resource address smell spy device, it is characterized in that, described device comprises:
Output unit, for sending the uniform resource position mark URL of webpage to network view, to make described network view utilize described URL, obtains web data, and from described web data, obtains the resource address of the page resource that described webpage comprises;
Receiving element, for receiving the resource address of the described page resource that described network view sends;
Processing unit, for utilizing the resource address of described page resource, loads described page resource.
13. 1 kinds of resource address smell spy system, it is characterized in that, described system comprises client and network view; Wherein,
Described client, for the uniform resource position mark URL of webpage sent to described network view;
Described network view, for utilizing described URL, obtaining web data, and from described web data, obtaining the resource address of the page resource that described webpage comprises, and, the resource address of described page resource is sent to described client;
Described client, also for utilizing the resource address of described page resource, loads described page resource.
CN201510254273.3A 2015-05-18 2015-05-18 Resource address sniffing method, device and system Active CN104881452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510254273.3A CN104881452B (en) 2015-05-18 2015-05-18 Resource address sniffing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510254273.3A CN104881452B (en) 2015-05-18 2015-05-18 Resource address sniffing method, device and system

Publications (2)

Publication Number Publication Date
CN104881452A true CN104881452A (en) 2015-09-02
CN104881452B CN104881452B (en) 2020-05-29

Family

ID=53948945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510254273.3A Active CN104881452B (en) 2015-05-18 2015-05-18 Resource address sniffing method, device and system

Country Status (1)

Country Link
CN (1) CN104881452B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677730A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for reading webpage resources and electronic equipment
CN106469044A (en) * 2015-08-14 2017-03-01 腾讯科技(深圳)有限公司 The method and apparatus realizing page jump
CN110298000A (en) * 2019-05-21 2019-10-01 平安普惠企业管理有限公司 Acquisition methods, terminal device and the medium of page parameter
CN111368135A (en) * 2020-02-24 2020-07-03 郑州阿帕斯数云信息科技有限公司 Video sniffing method and device
CN112714365A (en) * 2019-10-25 2021-04-27 上海哔哩哔哩科技有限公司 Video playing method and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114782A1 (en) * 2003-11-26 2005-05-26 Uwe Klinger Providing navigation in a browser
CN103297498A (en) * 2013-04-19 2013-09-11 北京宽连十方数字技术有限公司 Relevant content pushing method based on mobile phone client side
CN103338384A (en) * 2013-05-31 2013-10-02 优视科技有限公司 Video play method and video play device
CN103455600A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) grabbing method and device and server equipment
CN104008328A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Resource loading method and device
CN104050253A (en) * 2014-06-12 2014-09-17 北京金山网络科技有限公司 Webpage display method and browser
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client
CN104216630A (en) * 2014-08-21 2014-12-17 小米科技有限责任公司 Interface sharing method and interface sharing device
CN104462570A (en) * 2014-12-26 2015-03-25 小米科技有限责任公司 Webpage content obtaining method and device
CN104572777A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Webpage loading method and device based on UIWebView component

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050114782A1 (en) * 2003-11-26 2005-05-26 Uwe Klinger Providing navigation in a browser
CN104008328A (en) * 2013-02-27 2014-08-27 联想(北京)有限公司 Resource loading method and device
CN103297498A (en) * 2013-04-19 2013-09-11 北京宽连十方数字技术有限公司 Relevant content pushing method based on mobile phone client side
CN103338384A (en) * 2013-05-31 2013-10-02 优视科技有限公司 Video play method and video play device
CN103455600A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Video URL (Uniform Resource Locator) grabbing method and device and server equipment
CN104142966A (en) * 2013-09-26 2014-11-12 腾讯科技(深圳)有限公司 Web page displaying method and client
CN104572777A (en) * 2013-10-28 2015-04-29 腾讯科技(深圳)有限公司 Webpage loading method and device based on UIWebView component
CN104050253A (en) * 2014-06-12 2014-09-17 北京金山网络科技有限公司 Webpage display method and browser
CN104216630A (en) * 2014-08-21 2014-12-17 小米科技有限责任公司 Interface sharing method and interface sharing device
CN104462570A (en) * 2014-12-26 2015-03-25 小米科技有限责任公司 Webpage content obtaining method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469044A (en) * 2015-08-14 2017-03-01 腾讯科技(深圳)有限公司 The method and apparatus realizing page jump
CN105677730A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for reading webpage resources and electronic equipment
CN105677730B (en) * 2015-12-29 2019-02-26 北京金山安全软件有限公司 Method and device for reading webpage resources and electronic equipment
CN110298000A (en) * 2019-05-21 2019-10-01 平安普惠企业管理有限公司 Acquisition methods, terminal device and the medium of page parameter
CN112714365A (en) * 2019-10-25 2021-04-27 上海哔哩哔哩科技有限公司 Video playing method and system
CN111368135A (en) * 2020-02-24 2020-07-03 郑州阿帕斯数云信息科技有限公司 Video sniffing method and device
CN111368135B (en) * 2020-02-24 2023-09-05 郑州阿帕斯数云信息科技有限公司 Video sniffing method and device

Also Published As

Publication number Publication date
CN104881452B (en) 2020-05-29

Similar Documents

Publication Publication Date Title
US20160335680A1 (en) Securing expandable display advertisements in a display advertising environment
US8689117B1 (en) Webpages with conditional content
WO2016173200A1 (en) Malicious website detection method and system
JP2018190451A (en) Advertisement present in view
CN104754073A (en) Resource access method and device
CN104881452A (en) Resource locator sniffing method, device and system
US20080071881A1 (en) Advertising on Idle Web Browser Windows
CN110442815B (en) Page generation method, system, device and computer readable storage medium
US9865008B2 (en) Determining a configuration of a content item display environment
US9092731B1 (en) Determining content item expansion prediction accuracy
US9842133B2 (en) Auditing of web-based video
KR20120085715A (en) Determining impressions for mobile devices
CN105210051A (en) Estimating visibility of content items
US20110126113A1 (en) Displaying content on multiple web pages
EP3528474B1 (en) Webpage advertisement anti-shielding methods and content distribution network
CN104572777A (en) Webpage loading method and device based on UIWebView component
US9357366B2 (en) Auditing of mobile applications
CN103152367A (en) Cache dynamic maintenance updating method and system
WO2017054319A1 (en) Delivery data processing method, device and storage medium
CN103577526A (en) Method and system as well as browser for verifying page modification
CN104834588A (en) Permanent residence cross site script vulnerability detection method and apparatus
CN104598571A (en) Method and device for playing multimedia resource
US11477158B2 (en) Method and apparatus for advertisement anti-blocking
US20210326929A1 (en) Methods, systems, and media for dynamically detecting mobile environment information
US20090040927A1 (en) Content Server Latency Determination

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant