CN105808587B - method, gateway equipment and system for embedding information in webpage - Google Patents

method, gateway equipment and system for embedding information in webpage Download PDF

Info

Publication number
CN105808587B
CN105808587B CN201410849919.8A CN201410849919A CN105808587B CN 105808587 B CN105808587 B CN 105808587B CN 201410849919 A CN201410849919 A CN 201410849919A CN 105808587 B CN105808587 B CN 105808587B
Authority
CN
China
Prior art keywords
webpage
information
page
response
embedding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410849919.8A
Other languages
Chinese (zh)
Other versions
CN105808587A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410849919.8A priority Critical patent/CN105808587B/en
Publication of CN105808587A publication Critical patent/CN105808587A/en
Application granted granted Critical
Publication of CN105808587B publication Critical patent/CN105808587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, gateway equipment and a system for embedding information in a webpage, wherein the method comprises the following steps: receiving a response webpage returned to the user terminal; analyzing the response webpage to obtain webpage content, and determining a content modification strategy based on the webpage content; and rearranging the response webpage according to the content modification strategy, generating a new response webpage and transmitting the new response webpage to the user terminal. According to the method, the gateway equipment and the system for embedding the information in the webpage, the new webpage with the embedded additional information is sent to the user terminal, and services such as auxiliary network browsing, flow management, service marketing, commercial advertisement and the like can be developed; the processing capability of the operator flow gateway can be fully utilized, the efficient utilization of the terminal page space is realized, the user experience is not influenced, the access cost of the value-added service can be effectively reduced, and the difficulty of embedding the functional service and the additional information is reduced.

Description

Method, gateway equipment and system for embedding information in webpage
Technical Field
The invention relates to the technical field of communication, in particular to a method for embedding information in a webpage
a method, gateway device and system.
Background
With the development of mobile communication technology, browsing the internet using a mobile phone terminal is becoming popular. Under the background, various companies upgrade the mobile phone terminal browsing function of the mobile user through the existing resources, so that richer services can be provided for the user, the brand value of the user is enhanced, for example, portal websites, e-commerce, SP providers and the like provide various mobile services, and the user can surf the internet, shop, read, watch movies and the like through a mobile phone.
At present, many companies have demands for pushing publicity information to users for service promotion. In the aspect of web page embedding technology, the main purpose of the existing web page modification technology is to implant additional information, namely to implant advertisements, and the content is relatively simple. Meanwhile, the existing page processing technology mainly inserts a popup page, so that the time and resource consumption of background analysis are large, and the browsing experience of a user is seriously influenced; in addition, the gateway device provided by the current operator for the mobile data is only used for storing and forwarding the mobile data, for example, a page requested to be browsed by the user is sent to the user terminal, a browser of the user terminal displays the page, and the processing capacity of the gateway device is idle to some extent, so that the possibility of further capacity opening exists.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method for embedding information in a web page, which is capable of sending a page with embedded additional information to a user terminal device.
A method of embedding information in a web page, comprising: receiving a response webpage returned to the user terminal; analyzing the response webpage to obtain webpage content, and determining a content modification strategy based on the webpage content; and rearranging the response webpage according to the content modification strategy, generating a new response webpage and transmitting the new response webpage to the user terminal.
Further, according to an embodiment of the present invention, the web page content includes: web page sensitive field information, web page blank position information and web page picture information; the web page sensitive field information comprises: request url of the user, user position information and user number information.
Further, according to an embodiment of the present invention, the rearranging the response webpage according to the content modification policy includes: embedding an additional information script at a blank position of an original webpage, embedding a related information link after a sensitive field, modifying a sensitive text field of the original webpage, recoding a picture of the original webpage, and embedding a toolbar in the original webpage; wherein, blank position contains: blanks at the head, tail and two sides of the page, and blanks between text paragraphs in the page.
According to an embodiment of the present invention, further, an original script included in the response page is analyzed, and according to a tag included in the original script, a paragraph position in the response page is determined; the label includes: div, body, img, p, br, script; determining the area where the picture content in the response page is located through the tag div and the tag img; determining a blank position through a div tag or a p tag, and calculating the size and the relative position of the blank position by combining the model of the user terminal and the browser information of the user terminal; the user terminal includes: smart phones, tablet computers.
According to an embodiment of the present invention, further, content feature information is obtained from the response page; matching the content characteristic information with preset key characteristic information, and if the matching is successful, triggering online embedding operation; wherein the key feature information includes: searching key words, directional websites and position information; embedding additional content corresponding to the content characteristic information in an original script of the response page, and rearranging the original response page to generate a new response page; returning the new response page to the user terminal, and displaying the embedded additional content when the user terminal displays the new response page; wherein the additional content includes: text, picture, audio, video, toolbar, operator add-on; the operator additional functions include: user flow query, recharge and experience plan.
according to an embodiment of the present invention, further, if the content feature information is unsuccessfully matched with the preset key feature information, an offline embedding operation is triggered; embedding a URL corresponding to a designated function or information used by a guide user into an original script of the response page, and rearranging the original response page to generate a new response page; and returning the new response page to the user terminal, and acquiring the delivery function or information through the URL when the user terminal displays the new response page.
The invention aims to solve the technical problem of providing a device for embedding information in a webpage, which can send the webpage embedded with additional information to user terminal equipment.
A gateway device, comprising: the webpage receiving unit is used for receiving a response webpage returned to the user terminal; the webpage analyzing unit is used for analyzing the response webpage to obtain webpage content and determining a content modification strategy based on the webpage content; the webpage rearrangement unit is used for rearranging the response webpage according to the content modification strategy to generate a new response webpage; and the webpage sending unit is used for transmitting the new response webpage to the user terminal.
Further, according to an embodiment of the present invention, the web page content includes: web page sensitive field information, web page blank position information and web page picture information; the web page sensitive field information comprises: request url of the user, user position information and user number information.
Further, according to an embodiment of the present invention, the rearranging of the response web page by the web page rearranging unit includes: embedding an additional information script at a blank position of an original webpage, embedding a related information link after a sensitive field, modifying a sensitive text field of the original webpage, recoding a picture of the original webpage, and embedding a toolbar in the original webpage; wherein, blank position contains: blanks at the head, tail and two sides of the page, and blanks between text paragraphs in the page.
according to an embodiment of the present invention, further, the web page parsing unit includes: the webpage script analysis submodule is used for analyzing an original script contained in the response page and determining the position of a paragraph in the response page according to a label contained in the original script; the label includes: div, body, img, p, br, script; the webpage script analysis submodule determines the area where the picture content in the response page is located through the tag div and the tag img; the webpage script analysis submodule determines a blank position through a div tag or a p tag, and calculates the size and the relative position of the blank position by combining the model of the user terminal and the browser information of the user terminal; the user terminal includes: smart phones, tablet computers.
According to an embodiment of the invention, the webpage parsing unit further comprises a key information extraction submodule for acquiring content characteristic information from the response page; matching the content characteristic information with preset key characteristic information, and if the matching is successful, triggering online embedding operation; wherein the key feature information includes: searching key words, directional websites and position information; the webpage rearrangement unit comprises: the script embedding submodule is used for embedding additional content corresponding to the content characteristic information into an original script of the response page and rearranging the original response page to generate a new response page; the webpage sending unit is used for returning the new response page to the user terminal; the user terminal displays the embedded additional content when displaying the new response page; wherein the additional content includes: text, picture, audio, video, toolbar, operator add-on; the operator additional functions include: user flow query, recharge and experience plan.
according to an embodiment of the present invention, further, the key information extraction sub-module is configured to trigger an offline embedding operation if the content feature information is unsuccessfully matched with the preset key feature information; the script embedding submodule is used for embedding a URL (uniform resource locator) corresponding to a specified function or information used for guiding a user into an original script of the response page, and rearranging the original response page to generate a new response page; the webpage sending unit is used for returning the new response page to the user terminal; and the user terminal acquires the delivery function or information through the URL when displaying the new response page.
A system for embedding information in a web page, comprising: a user terminal, such as a gateway device as above.
The method, the gateway equipment and the system for embedding the information in the webpage can send the new webpage script embedded with the additional information to the user terminal equipment requesting the webpage, and the displayed webpage content and the additional content corresponding to the additional information can develop services such as auxiliary network browsing, flow management, service marketing, commercial advertisement and the like; and the processing capability of the operator flow gateway can be fully utilized, the efficient utilization of the terminal page space is realized, and the user experience is not influenced.
Drawings
in order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow diagram of one embodiment of a method for embedding information in a web page in accordance with the present invention;
FIG. 2 is a schematic diagram of embedding information in a blank space according to an embodiment of the method for embedding information in a web page of the present invention;
FIG. 3 is a schematic diagram illustrating web page analysis according to one embodiment of a method for embedding information in a web page;
FIG. 4 is an open schematic diagram of traffic gateway capability according to one embodiment of a method of embedding information in a web page of the present invention;
FIG. 5 is an online script embedding policy flow for one embodiment of a method of embedding information in a web page in accordance with the present invention;
FIG. 6 is a flowchart of an offline script embedding policy for one embodiment of a method for embedding information in a web page in accordance with the present invention;
fig. 7 is a schematic structural diagram of an embodiment of a gateway device according to the present invention;
fig. 8 is a schematic structural diagram of a web page parsing unit according to an embodiment of the gateway device of the present invention.
Detailed Description
The present invention now will be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the invention are shown. The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The technical solution of the present invention is described in various aspects below with reference to various figures and embodiments.
FIG. 1 is a flowchart of one embodiment of a method for embedding information in a web page according to the present invention, as shown in FIG. 1:
Step 101, a response webpage returned to the user terminal is received.
And 102, analyzing the response webpage to obtain webpage content, and determining a content modification strategy based on the webpage content.
and 103, rearranging the response webpage according to the content modification strategy to generate a new response webpage.
Step 104, transmitting the new response webpage to the user terminal.
Analyzing the obtained original webpage script and the user information to obtain the following contents: web page sensitive field information, web page blank position information, web page picture information and the like. The web page sensitive field information includes but is not limited to: user's request url, user location information, user number information, etc., blank bits include but are not limited to: the blank bits at the head, tail and two sides of the page can also be large blank between text paragraphs in the page.
and according to the page analysis result, typesetting the page again to generate a new webpage script. Rearranging the items includes: embedding additional information scripts in blank positions of the original webpage, embedding associated information links behind the sensitive fields, modifying the sensitive text fields of the original webpage, recoding the pictures of the original webpage, embedding toolbars with specific functions and the like.
according to the method for embedding the information in the webpage, the webpage embedding technology is used, the original information of the webpage is not damaged, pop-up advertisements are not generated, the user interface typesetting is optimized, the embedded content is various in form, such as simple toolbars and expanded information, and the browsing experience of a user can be enriched.
And embedding specified additional information into the original webpage script by using an http page script embedding technology through calculating and analyzing blank bits, picture sizes and positions of the page, sensitive character information in the text and the like, and embedding the specified additional information into the original webpage script by the gateway equipment according to a page analysis result in combination with comprehensive information attached to the user number, typesetting again, and returning the page with the modified script to a browser of a terminal user through a flow gateway for displaying.
In one embodiment, the original script S2 contained in the input web page S1 is analyzed, the available space in the original script is determined, and the analysis result S3 is generated. The positions of the paragraphs of the http page are analyzed using the attached tags contained in the original script S2. The label in the invention is < label > defined according to http webpage typesetting design, cascading style sheet CCS design standard/java script and the like in the http original script.
for example, a tag < body > indicates a tag of a form design for auxiliary layout, a tag < img > indicates a tag of an embedded web page picture, a tag < table > indicates a tag of a form design for auxiliary layout, a tag < p > or a tag < br > indicates a tag of a paragraph of a text, a tag < href > indicates a hyperlink, a tag < style > indicates a color and size of a text for CSS design, and a tag < script > indicates a tag for providing interaction for javascript.
As shown in FIG. 2, the original script of the web page contains many different tags. The webpage analysis can capture the meaning related to each paragraph and position in the original webpage through the defined label. For example, the area where the picture content of the input original web page S1 is located can be determined by the tag < div > and the tag < img >, and most of these contents are advertisements, because the tag < div > can specify the width and height of the screen, and most of advertisement typesetting is placed on the left and right sides of the web page content, and the additional advertisements are mostly pictures and must include the use of the tag < img >.
Since a large number of tags < p > are applied to the article in the segment-and-line format, and the region division or the article segmentation is necessarily separated by blank bits due to the reading requirement, the web page analysis can find larger or smaller blank bits through the < div > tag or the < p > tag. The size and relative position of the blank bit can be calculated accurately by the user terminal model and the user terminal browser information extracted from the user terminal information, and the embedded additional information can refer to the data, for example, the script of the selected line in fig. 2 corresponds to the left and right blanks in the page.
In one embodiment, as shown in FIG. 3, a gateway device, such as a traffic gateway, may modify the original script S2 contained in the input web page S1 using a web layout algorithm to generate a modified original script S4 according to the analysis result S3 generated by the web page analysis.
The web script embedding is used for modifying the original script S1 through a web typesetting algorithm according to the size of a display area of the user terminal equipment and a display picture configuration mode to generate a modified original script S4, wherein if the web browsing system is a handheld terminal, the display picture configuration mode means that the placing direction of the handheld device is horizontal or vertical.
For example, according to the result S3 of the webpage script analysis, when implementing the webpage script modification, the selection of the above original webpage script using the hierarchical typesetting algorithm may be rewritten and may be inserted into a part of the javascript function, such as a blank part between two pairs of < p > tags, or a blank part before a < head > tag, or a picture part between < img > tags. And determining a script modification method according to the original position information needing to be embedded, and acquiring the information with embedding or URL from the flow gateway.
And generating a javascript function part of the information to be inserted, generating a script modification code, embedding the script modification code into a blank position which can be embedded in the webpage script analysis result S3, or replacing the original information, adding an additional floating toolbar, typesetting the webpage script again, and sending the webpage script to a corresponding traffic gateway to transmit the webpage script to the terminal equipment browser.
In one embodiment, the opening of the gateway device capability may be performed in two ways: 1. and 2, the traffic gateway embedded with the online script is opened in operation capacity, and the traffic gateway embedded with the offline script is opened in operation capacity.
The online script embedding mode acquires and analyzes the page information of a user by relying on a flow gateway, and extracts key data in the page information, and comprises the following steps: user search keywords, targeted web sites, specific location information (BSID), etc. When the user is determined to have the above characteristic information, the data is embedded to the user in an online script mode.
the online script embedding mode comprises the following steps:
1. The flow gateway receives a response page data packet returned to the designated user by the designated Internet SP, and directly carries out strategy judgment by the flow gateway instead of directly returning to the designated user. The flow gateway judges whether to embed the webpage script according to the information of the user UA, URL, MDN and the like of the original data.
2. The flow gateway device finds specific keywords in the original webpage information of the user and triggers an online script embedding mode.
The traffic gateway finds specific keywords in the original webpage, such as specific web addresses, specific positions or search keywords and the like by analyzing data in the specified label of the original webpage. The information can show that the purpose of the terminal user is clear, specific function requirements exist, and the traffic gateway can add specified content to a user page according to the content of the requirements to obtain user clicks.
For example, the traffic gateway processes http web page data of a certain terminal user, determines that search content exists in the user web page data, and determines that a search keyword is a certain latest movie. And the flow gateway directly calls the film comment and cinema information synchronized in advance from the background before and embeds the film comment and cinema information into the user script.
3. and the traffic gateway embeds the additional information into the original page script by adopting a webpage blank bit embedding technology according to an online script strategy.
In one embodiment, the content characteristic information is obtained from a response page. Matching the content characteristic information with preset key characteristic information, and if the matching is successful, triggering online embedding operation; wherein the key feature information includes: search keywords, targeted web sites, location information, etc.
And embedding additional content corresponding to the content characteristic information in the original script of the response page, rearranging the original response page to generate a new response page, and returning the new response page to the user terminal.
The user terminal displays the embedded additional content when displaying the new response page, the additional content including: text, pictures, audio, video, toolbars, operator add-on functions, etc. The operator additional functions include: user flow query, recharge and experience plan.
as shown in fig. 4, the embedding of the information is performed on the gateway device, the traffic gateway device embeds the additional information according to the result of analyzing the blank bits of the web script, and rearranges the page, and then transmits the rearranged page to the terminal device, and the embedded page can be displayed on the browser of the terminal device.
The types of data content transmitted in the internet pipeline are many, including text, picture, audio, video, etc., and the page (WEB/WAP) is the most important form of internet information bearer, and when a user accesses a content server through a browser on a terminal device, the browser returns page content integrating multiple data content types to the user. The pages may contain additional information, such as commercial advertising information and possibly ancillary information, such as toolbars, in addition to business content information, such as news, entertainment, learning, etc.
for example, the gateway device forwards the page request to the page script analyzer, and the page script analyzer returns the corresponding original page information analysis result to the gateway device. The gateway device embeds operator additional functions, such as user traffic query, quick recharge, experience plan and the like, into the received original page, so that the terminal user can browse the operator additional information when browsing the requested page.
FIG. 5 is a flow of an online script embedding policy according to an embodiment of a method for embedding information in a web page of the present invention, as shown in FIG. 5:
step 201, 202, a gateway device, e.g. a WAP gateway, obtains the embedded conditions and codes for the synchronization of the additional content server.
Step 203, when the browser of the terminal device sends a page request to the gateway device, the gateway device forwards the page request to the service site SP, and the WAP gateway receives a response page returned by the service site SP.
In step 205, the traffic gateway receives the response page data packet returned to the designated user by the designated internet SP, and the response page data packet is not directly returned to the designated user, and the traffic gateway directly performs policy judgment first. The flow gateway judges whether to embed the webpage script according to the information of the user UA, URL, MDN and the like of the original data.
and step 206, the gateway equipment embeds the additional content code in the corresponding page response body according to the webpage analysis result, and converts the additional content code into the original script format. The pseudo code for the flow is as follows:
accessory content implant function (input: response data stream, output: embedded response data stream)
{
response data object-decoding function (response data stream);
if (response data object. content type ═ html "& & browser check function supported (response data object. browser UA) ═ future" & & target URL check function (response data object. target URL) ═ true & & user opens this function check function (response data object. user ID) & & user & & other functions, can be added on demand)
{
response data object, message body, embedding function (additional content address);
}
Embedded response data stream ═ coding function (response data object)
}。
and step 207, rearranging the original response page to generate a new response page, and returning the new response page to the user terminal.
in one embodiment, if the content characteristic information is unsuccessfully matched with the preset key characteristic information, an offline embedding operation is triggered. And embedding a URL corresponding to the specified function or information used for guiding the user into the original script of the response page, and rearranging the original response webpage to generate a new response page. And returning the new response page to the user terminal, and acquiring the delivery function or information through the URL when the user terminal displays the new response page.
Offline script embedding mode: for users who do not meet the requirements of the online script, the traffic gateway directly embeds the preset URL with high relevance into a response page returned by the target website (without embedding specific information). When browsing next time, the user is triggered to acquire a complete toolbar script from the third party SP and display the toolbar script in a user page.
the off-line script embedding mode is suitable for scenes with low requirements on real-time performance and control capability, high flexibility requirements and complex processing logic, and is suitable for being introduced into third-party content providers. And for terminal page scripts which do not meet the keyword requirements of the online script mode, the traffic gateway embeds additional information into the original webpage in an offline script mode.
FIG. 6 is a flowchart of an offline script embedding policy of an embodiment of a method for embedding information in a web page according to the present invention, as shown in FIG. 6:
Step 301, 302, the gateway device, e.g. a WAP gateway, obtains the embedded conditions and codes for the synchronization of the additional content server.
In steps 303, 304, 305, when the browser of the terminal device sends a page request to the gateway device, the gateway device forwards the page request to the service site SP, and the WAP gateway receives a response page returned by the service site SP.
Step 306: and the flow gateway equipment does not find specific keywords in the original webpage information of the user and triggers an offline script embedding mode. For page information without specific and definite user requirements, the traffic gateway can only perform information combination by analyzing past behaviors of users.
For example, the traffic gateway processes http web page data of a certain terminal user, finds that the used page request belongs to reading and page turning, does not contain explicit requirements, cannot directly embed specific specified additional information into the page, and can only embed a URL to guide the user to use a specified function or information.
Step 307: and the traffic gateway embeds additional information into the original page script by utilizing a webpage blank bit embedding technology according to an offline script strategy. This step embeds third party URLs instead of specific information in the blank bit and toolbar since specific additional information combinations cannot be resolved.
Step 308-.
Step 314-.
The off-line script embedding mode of the traffic gateway does not embed additional information of specific content in real time, but embeds third party URLs, and the third party SPs pointed to by the URLs provide various additional functional services including big data analysis. In the offline script embedding mode, the traffic gateway functions as a backward portal for the third party SP.
In the method for embedding information in a web page in the embodiment, after the gateway device embeds the additional information into the original page script, the new page script is sent to the user terminal device requesting the page, so that a browser of the user terminal device can display the page according to the received page script, the displayed page content also comprises the additional content corresponding to the additional information embedded in the gateway device besides the original page content provided by the content service, the additional information is directly introduced by a traffic gateway device editing module of an operator, and the operator can provide direct service for the user through the module, develop services such as auxiliary network browsing, traffic management, service marketing, commercial advertisement and the like, and create more commercial values.
The method for embedding information in the webpage in the embodiment has the following advantages:
1. The processing capacity of the operator flow gateway is fully utilized, the mobile data is stored and forwarded, meanwhile, data acquisition, analysis and embedding are carried out, and the existing gateway equipment of the operator is utilized to the maximum extent.
2. The embedded content is diversified and differentiated. The gateway can be embedded with more than advertisement information, such as simple toolbar, extension information, jump link and the like. And different content can be embedded for each user through the embedding strategy of the traffic gateway.
3. The webpage embedding is based on a blank bit analysis technology, the original webpage is not changed and deleted, a new webpage is not popped up, the efficient utilization of the terminal webpage space is realized, and the user experience is not influenced. And an off-line and on-line script embedding strategy is introduced, so that the content embedding is more flexible.
The flow gateway with opened capacity can effectively reduce the access cost of the value-added service and reduce the difficulty of embedding the functional service and the additional information. If an operator constructs a self-operated traffic gateway user entrance and a big data-based marketing support and advertisement delivery system, the system is the most feasible case for the operator to try transformation, cut into an internet value chain and try big data application.
as shown in fig. 7, the present invention provides a gateway apparatus 4. The web page receiving unit 41 receives a response web page returned to the user terminal. The web page parsing unit 42 parses the response web page to obtain web page contents, and determines a content modification policy based on the web page contents. The web page rearrangement unit 43 rearranges the response web page according to the content modification policy, and generates a new response web page. The web page transmission unit 44 transmits the new response web page to the user terminal.
the rearrangement of the response web page by the web page rearrangement unit 43 includes: embedding additional information scripts at blank positions of an original webpage, embedding associated information links after sensitive fields, modifying sensitive text fields of the original webpage, recoding pictures of the original webpage and embedding toolbars in the original webpage. The blank locations include: blanks at the head, tail and two sides of the page, and blanks between text paragraphs in the page.
As shown in fig. 8, the web script parsing sub-module 421 analyzes the original script contained in the response page, and determines the paragraph position in the response page according to the tag contained in the original script. The label includes: div, body, img, p, br, script; the webpage script parsing sub-module 421 determines the area where the picture content in the response page is located through the tag div and the tag img. The webpage script parsing submodule 421 determines a blank position by a div tag or a p tag, and calculates the size and the relative position of the blank position by combining the user terminal model and the user terminal browser information; the user terminal includes: smart phones, tablet computers.
the key information extraction sub-module 422 obtains content feature information from the response page. And matching the content characteristic information with preset key characteristic information, and triggering online embedding operation if the matching is successful. Wherein the key feature information includes: searching keywords, directional websites and position information.
The web page rearrangement unit 43 includes: the script is embedded in the sub-module. And the script embedding submodule embeds additional content corresponding to the content characteristic information in the original script of the response page, and rearranges the original response page to generate a new response page. The web page transmitting unit 44 returns a new response page to the user terminal.
The user terminal displays the embedded additional content when displaying the new response page; the additional content includes: text, pictures, audio, video, toolbars, operator add-on functions, etc.; the operator additional functions include: user traffic query, recharge, experience planning, and the like.
if the matching of the content feature information and the preset key feature information is unsuccessful, the key information extraction sub-module 422 triggers an offline embedding operation. And embedding the URL corresponding to the specified function or information used by the guide user in the original script of the response page by the script embedding submodule, and rearranging the original response page to generate a new response page. The web page transmitting unit 44 returns the new response page to the user terminal, and the user terminal acquires the delivery function or information through the URL when displaying the new response page.
in one embodiment, the present invention provides a system for embedding information in a web page, comprising: a user terminal, such as a gateway device as above.
In the method, the gateway device and the system for embedding information in the webpage in the embodiment, the new page script embedded with the additional information is sent to the user terminal device requesting the page, the page content and the additional content corresponding to the additional information are displayed, and services such as auxiliary network browsing, traffic management, service marketing, commercial advertisement and the like can be developed; and the processing capacity of the operator flow gateway can be fully utilized, the efficient utilization of the terminal page space is realized, the user experience is not influenced, and an offline and online script embedding strategy is introduced, so that the content embedding is more flexible. The flow gateway with opened capacity can effectively reduce the access cost of the value-added service and reduce the difficulty of embedding the functional service and the additional information. If an operator constructs a self-operated traffic gateway user entrance and a big data-based marketing support and advertisement delivery system, the system is the most feasible scheme for the operator to try transformation, cut into an internet value chain and try big data application.
the method and system of the present invention may be implemented in a number of ways. For example, the methods and systems of the present invention may be implemented in software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustrative purposes only, and the steps of the method of the present invention are not limited to the order specifically described above unless specifically indicated otherwise. Furthermore, in some embodiments, the present invention may also be embodied as a program recorded in a recording medium, the program including machine-readable instructions for implementing a method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
the description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (13)

1. A method for embedding information in a web page, comprising:
receiving a response webpage returned to the user terminal;
Analyzing the response webpage to obtain webpage content, and determining a content modification strategy based on the webpage content;
analyzing an original script contained in the response page, and determining the paragraph position in the response page according to a label contained in the original script; determining the area of the picture content in the response page through the tag div and the tag img; determining a blank position through a div tag or a p tag, and calculating the size and the relative position of the blank position by combining the model of the user terminal and the browser information of the user terminal;
rearranging the response webpage according to the content modification strategy, generating a new response webpage and transmitting the new response webpage to the user terminal;
Acquiring content characteristic information from the response page; matching the content characteristic information with preset key characteristic information, and if the matching is successful, triggering online embedding operation; wherein the key feature information includes: searching key words, directional websites and position information; embedding additional content corresponding to the content characteristic information into the original script of the response page, and rearranging the original response page to generate a new response page;
If the matching is unsuccessful, triggering off-line embedding operation; and embedding a URL corresponding to the specified function or information used for guiding the user into the original script of the response page, and rearranging the original response webpage to generate a new response page.
2. The method of claim 1, wherein:
The webpage content comprises: web page sensitive field information, web page blank position information and web page picture information;
The web page sensitive field information comprises: request url of the user, user position information and user number information.
3. the method of claim 1 or 2, wherein the reprinting the response webpage according to the content modification policy comprises:
Embedding an additional information script at a blank position of the original webpage, embedding a related information link after a sensitive field, modifying a sensitive text field of the original webpage, recoding a picture of the original webpage, and embedding a toolbar in the original webpage;
wherein, blank position contains: blanks at the head, tail and two sides of the page, and blanks between text paragraphs in the page.
4. the method of claim 3, wherein:
The label includes: div, body, img, p, br, script;
The user terminal includes: smart phones, tablet computers.
5. The method of claim 4, wherein:
returning the new response page to the user terminal, and displaying the embedded additional content when the user terminal displays the new response page;
Wherein the additional content includes: text, picture, audio, video, toolbar, operator add-on; the operator additional functions include: user flow query, recharge and experience plan.
6. The method of claim 5, wherein:
and returning the new response page to the user terminal, and acquiring the delivery function or information through the URL when the user terminal displays the new response page.
7. A gateway device, comprising:
The webpage receiving unit is used for receiving a response webpage returned to the user terminal;
The webpage analyzing unit is used for analyzing the response webpage to obtain webpage content and determining a content modification strategy based on the webpage content;
Wherein, the webpage analysis unit comprises: the webpage script analysis submodule is used for analyzing an original script contained in the response page and determining the paragraph position in the response page according to a label contained in the original script; the webpage script analysis submodule determines the area of the picture content in the response page through a tag div and a tag img; the webpage script analysis submodule determines a blank position through a div tag or a p tag, and calculates the size and the relative position of the blank position by combining the model of the user terminal and the browser information of the user terminal;
the webpage rearrangement unit is used for rearranging the response webpage according to the content modification strategy to generate a new response webpage;
A web page transmitting unit for transmitting the new response web page to the user terminal;
wherein, the webpage analysis unit comprises:
The key information extraction submodule is used for acquiring content characteristic information from the response page; matching the content characteristic information with preset key characteristic information, and if the matching is successful, triggering online embedding operation; wherein the key feature information includes: searching key words, directional websites and position information;
The webpage rearrangement unit comprises:
the script embedding submodule is used for embedding additional content corresponding to the content characteristic information into an original script of the response page and rearranging the original response page to generate a new response page;
the key information extraction sub-module is further used for triggering off-line embedding operation if the content feature information is unsuccessfully matched with preset key feature information;
the script embedding submodule is also used for embedding a URL corresponding to the specified function or information used for guiding the user into the original script of the response page, and rearranging the original response page to generate a new response page.
8. The gateway device of claim 7, wherein:
The webpage content comprises: web page sensitive field information, web page blank position information and web page picture information; the web page sensitive field information comprises: request url of the user, user position information and user number information.
9. The gateway device according to claim 7 or 8, wherein:
The rearranging of the response webpage by the webpage rearranging unit comprises the following steps: embedding an additional information script at a blank position of the original webpage, embedding a related information link after a sensitive field, modifying a sensitive text field of the original webpage, recoding a picture of the original webpage, and embedding a toolbar in the original webpage; wherein, blank position contains: blanks at the head, tail and two sides of the page, and blanks between text paragraphs in the page.
10. The gateway device of claim 9, wherein:
The label includes: div, body, img, p, br, script;
The user terminal includes: smart phones, tablet computers.
11. The gateway device of claim 10, wherein:
The webpage sending unit is used for returning the new response page to the user terminal;
the user terminal displays the embedded additional content when displaying the new response page;
Wherein the additional content includes: text, picture, audio, video, toolbar, operator add-on; the operator additional functions include: user flow query, recharge and experience plan.
12. The gateway device of claim 11, wherein:
The webpage sending unit is used for returning the new response page to the user terminal;
And the user terminal acquires the delivery function or information through the URL when displaying the new response page.
13. a system for embedding information in a web page, comprising:
A user terminal, a gateway device according to any one of claims 7 to 12.
CN201410849919.8A 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage Active CN105808587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849919.8A CN105808587B (en) 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849919.8A CN105808587B (en) 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage

Publications (2)

Publication Number Publication Date
CN105808587A CN105808587A (en) 2016-07-27
CN105808587B true CN105808587B (en) 2019-12-06

Family

ID=56421094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849919.8A Active CN105808587B (en) 2014-12-31 2014-12-31 method, gateway equipment and system for embedding information in webpage

Country Status (1)

Country Link
CN (1) CN105808587B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526757B (en) * 2016-10-13 2020-04-07 腾讯科技(北京)有限公司 Page graphic file display method and device
CN110147478B (en) * 2017-10-20 2021-06-29 中国电信股份有限公司 Webpage subject term obtaining method and system, server and user terminal
CN107943869A (en) * 2017-11-10 2018-04-20 深圳市华阅文化传媒有限公司 The method and apparatus for reading third party's webpage
US11682148B2 (en) 2018-08-16 2023-06-20 Huawei Technologies Co., Ltd. Method for displaying advertisement picture, method for uploading advertisement picture, and apparatus
CN110334304A (en) * 2019-06-05 2019-10-15 上海易点时空网络有限公司 Configuration method and system based on layout disaster tolerance
CN113347276B (en) * 2021-07-07 2022-07-12 南京大学城市规划设计研究院有限公司深圳分公司 Mobile access system based on GIS
CN113973111B (en) * 2021-10-29 2023-12-22 珠海天融信网络安全技术有限公司 Data forwarding method, device, gateway equipment and computer readable storage medium
CN117150484B (en) * 2023-10-30 2024-02-13 信智慧通科技(北京)有限公司 Page information processing method, device and equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539934A (en) * 2009-03-30 2009-09-23 北京跳网无限科技发展有限公司 Method for inserting advertisements in WAP web page
CN102402580A (en) * 2010-09-30 2012-04-04 微软公司 Securely rendering online ads in a host page
CN103118082A (en) * 2013-01-21 2013-05-22 华为技术有限公司 Method, device and system for embedding additional information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003141018A (en) * 2001-11-02 2003-05-16 Fujitsu Ltd Server, relay device, information providing method and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539934A (en) * 2009-03-30 2009-09-23 北京跳网无限科技发展有限公司 Method for inserting advertisements in WAP web page
CN102402580A (en) * 2010-09-30 2012-04-04 微软公司 Securely rendering online ads in a host page
CN103118082A (en) * 2013-01-21 2013-05-22 华为技术有限公司 Method, device and system for embedding additional information

Also Published As

Publication number Publication date
CN105808587A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN105808587B (en) method, gateway equipment and system for embedding information in webpage
US9235557B2 (en) System and method thereof for dynamically associating a link to an information resource with a multimedia content displayed in a web-page
US10515142B2 (en) Method and apparatus for extracting webpage information
US8403222B2 (en) Method of enabling the downloading of content
TWI703463B (en) Information display method, device and intelligent terminal
US20100324999A1 (en) Advertisement proxy service
JP2004518202A (en) Method for delivering advertisement using embedded media player page, recording medium, and transmission medium
CN104346471A (en) Method, device and system for determining to-be-pushed application based on geological position information
WO2009089750A1 (en) Method, system and apparatus for implanting advertisement
CN101765979A (en) Document processing for mobile devices
CN104516892A (en) Distribution method, system and terminal of user generated content associated with rich media information
CN104731870A (en) Method and device for providing recommendation information
CN110580318B (en) Information display method, device and storage medium
CN107918619B (en) Advertisement display method and device
US20230237531A1 (en) Methods, systems, and media for dynamically detecting mobile environment information
US20130254806A1 (en) System and Method for Displaying a Media Program Stream on Mobile Devices
CN102523296A (en) Method, device and system for optimizing wireless webpage browsing resources
JP2007323336A (en) Advertisement delivery system, advertisement delivery server, terminal device and advertisement delivery method
CN102289479A (en) Method, device and equipment for determining image showing mode and showing image
JP2009211278A (en) Retrieval system using mobile terminal, and its retrieval method
CN104239432A (en) Method and device for identifying responsive pages
KR101102851B1 (en) Method, system and computer-readable recording medium for providing additional content in blank of web page caused by difference of a resolution of user terminal from a reference resolution provided by contents providing server
US11954168B2 (en) System and method thereof for dynamically associating a link to an information resource with a multimedia content displayed in a web-page
KR20090000935A (en) System, method and server for supplying advertisement, and program recording medium
CN106708915B (en) Webpage content display system and method

Legal Events

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