CN106487851B - Web wrapper information transferring method, apparatus and system - Google Patents
Web wrapper information transferring method, apparatus and system Download PDFInfo
- Publication number
- CN106487851B CN106487851B CN201510547924.8A CN201510547924A CN106487851B CN 106487851 B CN106487851 B CN 106487851B CN 201510547924 A CN201510547924 A CN 201510547924A CN 106487851 B CN106487851 B CN 106487851B
- Authority
- CN
- China
- Prior art keywords
- browser
- character string
- character
- marking
- web wrapper
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses Web wrapper information transferring methods, apparatus and system, are related to internet area, solve the problems, such as that the Web wrapper information of large information capacity can not be transmitted by url browser-cross.This method comprises: Web wrapper information to be passed is converted to unique corresponding character string and creates unique corresponding character marking for character string by the first browser, character marking write-in url is passed into the second browser and corresponding character string is sent to server preservation simultaneously and by the unique corresponding character marking of server generation, second browser reads the character marking in url and sends it to server, received character marking is compared by server with the character marking that it is generated, the unique corresponding character string of identical characters label institute is sent to the second browser, the character string received is converted unique corresponding Web wrapper information by second browser.Present invention is mainly used in Web wrapper information browser-cross transmission process.
Description
Technical field
The present invention relates to internet areas, more particularly to a kind of Web wrapper information transferring method, apparatus and system.
Background technique
Usual browser needs (variable, normal to network side requested webpage programming information during carrying out webpage switching
Amount, object), such as hypertext markup language (Hypertext Markup Language, abbreviation HTML) file, scripting language
(Javascript, abbreviation JS) file etc., HTML is for writing static page;Javascript can be nested in HTML, real
Existing some dynamic functions.Information exchange between webpage and webpage is usually required particularly across the information exchange between browser
Web wrapper information is transmitted using uniform resource locator (Uniform Resource Locator, abbreviation ur l).
Uniform resource locator (Uniform Resource Locator, abbreviation ur l) is standard resource on internet
Address, each file has unique ur l on internet, and the information that it includes points out that the position of file and browser should
How it is handled.The grammer of general ur l be it is expansible, Web wrapper information by carry carried out in ur l inter-network page or
The transmitting of browser-cross.But due to the limited length of ur l, the Web wrapper information content if necessary to transmitting is very big, then
Transmitting webpage programming information by ur l browser-cross just cannot achieve.
Summary of the invention
In view of this, the invention proposes a kind of Web wrapper information transferring method, apparatus and system, main purpose is
Solving the problems, such as can not be by the Web wrapper information of ur l browser-cross transmission large information capacity.
First aspect according to the present invention, the embodiment of the invention provides a kind of Web wrapper information transferring methods, should
Method is commonly used in the first browser side, comprising:
Web wrapper information to be passed is converted to unique corresponding character string by the first browser;
Determine character string uniquely corresponding character marking;
Uniform resource locator ur l is added in character marking and passes to the second browser.
The second aspect according to the present invention, the embodiment of the invention provides a kind of Web wrapper information transferring methods, should
Method is commonly used in the second browser side, comprising:
Second browser receives the uniform resource locator ur l of the carrying character marking of the first browser transmitting, character mark
Uniquely corresponding character string is uniquely corresponding with Web wrapper information to be passed for note;
Read the character marking that ur l is carried;
The character marking carried according to ur l is read receives character marking uniquely corresponding character string;
Unique corresponding Web wrapper information is converted by character string.
In terms of third according to the present invention, the embodiment of the invention provides a kind of Web wrapper information transferring methods, should
Method is commonly used in server-side, comprising:
The character string that the first browser reports is received, character string and Web wrapper information to be passed are uniquely corresponding;
Unique corresponding character marking is created for the character string that received first browser reports, and will be on the first browser
The character string of report and for its creation unique corresponding character marking be stored in memory block;
The character marking of the second browser transmission is received, and the character marking sent according to the second browser is in memory block
Search unique corresponding character string;
The unique corresponding character string found is returned into the second browser.
The 4th aspect according to the present invention, the embodiment of the invention provides a kind of Web wrapper information carrying means, should
Device is usually located in the first browser, or has data interaction relationship independently of the first browser but with the first browser, should
Device includes:
Conversion unit, for Web wrapper information to be passed to be converted to unique corresponding character string;
Creating unit, the unique corresponding character marking of character string generated for determining conversion unit;
Processing unit, the character marking for determining creating unit are added uniform resource locator ur l and pass to the
Two browsers.
The 5th aspect according to the present invention, the embodiment of the invention provides a kind of Web wrapper information carrying means, should
Device is usually located in the second browser, or has data interaction relationship independently of the second browser but with the second browser, should
Device includes:
Receiving unit, the uniform resource locator ur l of the carrying character marking for receiving the transmitting of the first browser, word
Uniquely corresponding character string is uniquely corresponding with Web wrapper information to be passed for symbol label;
Reading unit, the character marking carried for reading the received uniform resource locator ur l of receiving unit;
Receiving unit is used for the character marking read according to reading unit, receives character marking uniquely corresponding character string;
Conversion unit, for converting unique corresponding Web wrapper information for the received character string of receiving unit.
The 6th aspect according to the present invention, the embodiment of the invention provides a kind of Web wrapper information carrying means, should
Device is usually located in server, or has data interaction relationship independently of server but with server, which includes:
Receiving unit, the character string reported for receiving the first browser, character string and Web wrapper information to be passed are only
One is corresponding;
Processing unit, the character string for reporting for received first browser of receiving unit create unique corresponding character
Label, and be stored in memory block by character string that the first browser reports and for unique corresponding character marking of its creation;
Searching unit, the character marking for being sent according to received second browser of receiving unit are searched in memory block
Unique corresponding character string;
Transmission unit, unique corresponding character string for finding searching unit return to the second browser.
The 7th aspect according to the present invention, the embodiment of the invention provides a kind of Web wrapper information transmission systems, should
System includes:
First browser, the second browser and server;Wherein the first browser includes as described in terms of first 4th
Device, the second browser include the device as described in terms of first 5th, and server includes the dress as described in terms of first 6th
It sets.
By above-mentioned technical proposal, Web wrapper information transferring method provided in an embodiment of the present invention, apparatus and system, energy
Web wrapper information to be passed is enough converted to by unique corresponding character string by the first browser, and unique for character string creation
Character marking write-in ur l is passed to the second browser and corresponding character string is sent to clothes simultaneously by corresponding character marking
Business device save and generates unique corresponding character marking by server, and subsequent second browser reads the character mark in ur l
Remember and send it to server, the character marking generated the character marking that the second browser is sent with it so as to server into
Row compares, and the unique corresponding character string of identical characters label institute is sent to the second browser, so that the second browser will receive
To character string be converted into unique corresponding Web wrapper information.The Web wrapper information excessive with information content in the prior art without
Method is compared by the defect that ur l carries out browser-cross transmitting, and the present invention enables to the webpage transmitted by ur l browser-cross
Programming information size is unrestricted.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of Web wrapper information transferring method provided in an embodiment of the present invention;
Fig. 2 shows a kind of flow charts of Web wrapper information transferring method provided in an embodiment of the present invention;
Fig. 3 shows a kind of flow chart of Web wrapper information transferring method provided in an embodiment of the present invention;
Fig. 4 shows a kind of composition block diagram of Web wrapper information carrying means provided in an embodiment of the present invention;
Fig. 5 shows a kind of composition block diagram of Web wrapper information carrying means provided in an embodiment of the present invention;
Fig. 6 shows a kind of composition block diagram of Web wrapper information carrying means provided in an embodiment of the present invention;
Fig. 7 shows a kind of schematic diagram of Web wrapper information transmission system provided in an embodiment of the present invention.
Specific embodiment
It is described more fully the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although showing this public affairs in attached drawing
The exemplary embodiment opened, it being understood, however, that may be realized in various forms the disclosure without the implementation that should be illustrated here
Example is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the model of the disclosure
It encloses and is fully disclosed to those skilled in the art.
Information exchange between usual webpage and webpage, usually requires to use particularly across the information exchange between browser
Uniform resource locator (Uniform Resource Locator, abbreviation ur l) transmits Web wrapper information.General ur l's
Grammer be it is expansible, Web wrapper information carries out the transmitting of inter-network page or browser-cross by carrying in ur l, but by
In the limited length of ur l, the Web wrapper information content if necessary to transmitting is very big, then being transmitted by ur l browser-cross
Web wrapper information just cannot achieve.
In order to solve the problems, such as that the prior art can not transmit the Web wrapper information of large information capacity by ur l browser-cross.
The embodiment of the invention provides a kind of Web wrapper information transferring method, this method is mainly used in the first browser side, such as
Shown in Fig. 1, this method comprises:
101, Web wrapper information to be passed is converted to unique corresponding character string by the first browser.
Information exchange between usual webpage and webpage, usually requires to use particularly across the information exchange between browser
Uniform resource locator ur l transmit Web wrapper information, including in html file, JS file, Web wrapper variable, object,
Constant etc., when the information content for the Web wrapper information for needing to transmit is very big, ur l usually can not correctly transmit these webpages
Programming information.Therefore, when browser-cross transmits a large amount of Web wrapper information, the embodiment of the present invention needs the first browser will be to
Transmitting Web wrapper information is converted to unique corresponding character string.This process is to convert Web wrapper information to and be convenient for
The format stored and transmitted, while capableing of the information content of compressed webpage programming information.
102, character string uniquely corresponding character marking is determined.
After Web wrapper information to be passed is converted to unique corresponding character string in a step 101, for the ease of
The corresponding character string of Web wrapper information is transmitted by ur l, the embodiment of the present invention needs to determine word by step 102
The unique corresponding character marking of string is accorded with, this process includes carrying out operation to character string by specifically regular, creates the character
The unique corresponding character marking of string, the information content of certain character marking are very small.
103, uniform resource locator ur l is added in character marking and passes to the second browser.
Wherein, the corresponding character string of Web wrapper information to be passed is transmitted not by ur l, which can quilt
First browser is reported to server and carries out transfer, i.e., character string is reported to corresponding server.
What is transmitted in the embodiment of the present invention by ur l is that the unique corresponding character mark of character string is determined in step 102
Character marking is added uniform resource locator ur l and passes to the second browser by note, step 103.
As the correspondence to method shown in above-mentioned Fig. 1, the embodiment of the invention also provides a kind of transmission of Web wrapper information
Method, this method are mainly used in the second browser side, as shown in Fig. 2, this method comprises:
201, the second browser receives the uniform resource locator ur l of the carrying character marking of the first browser transmitting.
In the ur l that the second browser receives, the character marking of carrying and Web wrapper information to be passed are uniquely corresponding
Character string uniquely correspond to, the second browser can get Web wrapper information to be passed by the character marking in ur l.
202, the character marking that ur l is carried is read.
After the second browser receives the ur l of the first browser transmitting, it is necessary to read the character of carrying from ur l
Label.
203, the character marking carried according to ur l is read receives character marking uniquely corresponding character string.
After the second browser reads the character marking carried in ur l, which can be sent to server simultaneously
The response of waiting for server receives the character marking uniquely corresponding character string.
204, unique corresponding Web wrapper information is converted by character string.
After the second browser receives the character string of server return, so that it may convert character string to unique corresponding
Web wrapper information, the Web wrapper information obtained after conversion are exactly Web wrapper information to be passed.This process is to incite somebody to action
Character string convenient for storing and transmitting is converted to Web wrapper information, compiles so that the second browser operates these webpages as needed
Journey information.
As the correspondence to method shown in above-mentioned Fig. 1 and Fig. 2, the embodiment of the invention also provides a kind of Web wrapper information
Transmission method, this method are mainly used in server-side, as shown in figure 3, this method comprises:
301, the character string that the first browser reports is received.
Server is as terminal, it is necessary first to receive the character string that the first browser reports, the character string with it is to be passed
Web wrapper information uniquely corresponds to, and is transformed by Web wrapper information.
302, unique corresponding character marking is created for the character string that received first browser reports, and first is browsed
The character string and be stored in memory block for unique corresponding character marking of its creation that device reports.
After server receives the character string that the first browser reports, need to create for received character string unique corresponding
Character marking, this creation process be in above-mentioned steps 102 character string create unique corresponding character marking process it is complete
It is complete the same, including identical rule is used to carry out operation to character string, calculate character string uniquely corresponding character marking.Work as clothes
After device be engaged in as the unique corresponding character marking of received character string creation, the character mark that received character string is corresponding is needed
Note is stored in memory block.
303, the character marking that the second browser is sent is received, and is being stored according to the character marking that the second browser is sent
Unique corresponding character string is searched in area.
When server receive the second browser transmission character marking after, need to search whether in memory block exist with
The identical character marking of character marking that second browser is sent, if it is present obtaining the character sent with the second browser
Mark the identical unique corresponding character string of character marking institute.
304, the unique corresponding character string found is returned into the second browser.
After server finds the unique corresponding character string of character marking institute of the second browser transmission in memory block,
With regard to needing the unique corresponding character string found returning to the second browser, so that the second browser is according to the word of the return
Symbol string obtains Web wrapper information to be passed.
Web wrapper information transferring method provided in an embodiment of the present invention, can be by the first browser by webpage to be passed
Programming information is converted to unique corresponding character string, and creates unique corresponding character marking for character string, by the character marking
Write-in ur l passes to the second browser while corresponding character string is sent to server and save and generated by server
Unique corresponding character marking, the second browser reads the character marking in ur l and sends it to server, to service
The character marking that second browser is sent is compared by device with the character marking that it is generated, and identical characters label institute is unique right
The character string answered is sent to the second browser, so that the character string received is converted unique corresponding webpage by the second browser
Programming information.The Web wrapper information excessive with information content in the prior art can not carry out lacking for browser-cross transmitting by ur l
It falls into and compares, the present invention enables to the Web wrapper information size transmitted by ur l browser-cross unrestricted.
In order to preferably understand above-mentioned Fig. 1, Fig. 2 and method shown in Fig. 3, the embodiment of the present invention will in conjunction with Fig. 1,
Each step in Fig. 2 and Fig. 3 is described in detail.
In embodiments of the present invention, when the transmitting for carrying out Web wrapper information between the first browser and the second browser
When, since the information content of Web wrapper information is excessive, the first browser needs to convert Web wrapper information to be passed to
Unique corresponding character string, as an alternative embodiment, the first browser can by Web wrapper information to be passed into
Line character serializing generates unique corresponding character string.In general, can be by Java.serializable interface to net
Page programming information carries out character string, obtains the character string of default form, XML format or json format.For example, in this implementation
Web wrapper information to be passed can be converted to unique corresponding json character string in example.
Since ur l generally can not transmit the excessive information of information content, the embodiment of the present invention do not pass through ur l transmitting to
Web wrapper information uniquely corresponding json character string is transmitted, but needs to create unique corresponding character mark for json character string
Note, the character marking information content is very small, can carry and be transmitted in ur l.As an alternative embodiment, the
One browser can calculate json character string by the algorithm of ad hoc rules, generate unique corresponding character marking.Example
Such as, the present embodiment can pass through message digest algorithm (Message-Digest Algorithm 5, abbreviation MD5) coding mode pair
The json character string is calculated, and unique corresponding character marking is generated.Arbitrary string can be converted to regular length by MD5
Character marking, and if character string is constant in the case where, character marking all phases that any time conversion obtains are carried out to it
Together, therefore in the present embodiment by MD5, to Web wrapper information to be passed, uniquely corresponding character string is calculated, Ke Yisheng
At unique corresponding character marking.
Web wrapper information to be passed uniquely corresponding character string is transmitted since the first browser is not directed through ur l, and
It is that will be transmitted in the character string uniquely corresponding character marking write-in ur l.Therefore the embodiment of the present invention needs clear by first
Look at device by post mode by Web wrapper information to be passed, uniquely corresponding character string is reported to server, make webpage to be passed
Uniquely in server progress transfer, while by the character string, uniquely corresponding character marking is written corresponding character string programming information
It is sent to the second browser in ur l and by ur l, so that the second browser obtains uniquely according to the character marking carried in ur l
Corresponding Web wrapper information to be passed.First browser reports character string by post mode, can guarantee that character string will not
Be buffered in the first browser and post mode to the data reported also there is no limit that more will not be shown in ur l, guarantee
The safety of transmission.
After the first browser completes the work of itself, server can receive the webpage to be passed that the first browser reports
Uniquely corresponding character string, subsequent server can be that the character string received creates unique corresponding character marking to programming information,
Specific creation mode is that the unique mode of corresponding character marking of character string creation is identical with above-mentioned first browser, this
Place repeats no more.In practical situations, if server and the first browser, which are all adopted, creates word in a like fashion for character string
Symbol label, then the character marking that the same character string generates in the first browser and the character marking generated in the server
It is identical.It, can be by received character mark after server is that received character string creates unique corresponding character marking
Remember and saved for unique corresponding character marking of its creation, is placed in memory block.For example, can be stored in servicing
In the caching of device or in other designated memories, naturally it is also possible to use cloud storage.
After the first browser completes the work of itself, the second browser can receive the carrying word of the first browser transmitting
The ur l of label is accorded with, uniquely corresponding character string is uniquely corresponding with Web wrapper information to be passed for the character marking, and subsequent second
Browser can read the character marking carried in ur l, and the character marking is sent to server.
It, can be by the character marking of the second browser transmission after server receives the character marking of the second browser transmission
It is compared with the character marking saved in its memory block, if a certain character marking and the second browser that are saved in its memory block
The character marking of transmission is identical, then obtains the character marking uniquely corresponding character string, and the character that will acquire in memory block
String is sent to the second browser.After the second browser receives the character string of server transmission, character string can be subjected to word
Symbol unserializing obtains unique corresponding Web wrapper information and operates these Web wrapper information as needed.
Web wrapper information to be passed progress character string is converted to only by the embodiment of the present invention by the first browser
One corresponding character string, and server is sent in a manner of post, the transfer by server as Web wrapper information to be passed
It stands, webpage programming information can be transmitted across any browser in different moments, and do not contained much information by Web wrapper information
Small limitation;Web wrapper information to be passed uniquely corresponding character marking is sent from the second browser to server simultaneously, and
The unique corresponding character string of the character marking that server returns is received, string characters unserializing is obtained unique corresponding
Web wrapper information, the Web wrapper information that character unserializing obtains do not need parse to be used directly for programming.
Further, as the application to method shown in above-mentioned Fig. 1, the embodiment of the invention provides a kind of Web wrapper letters
Transmitting device is ceased, which is usually located in the first browser, or has number independently of the first browser but with the first browser
According to interactive relation.As shown in figure 4, the device includes: conversion unit 41, creating unit 42 and processing unit 43, wherein
Conversion unit 41, for Web wrapper information to be passed to be converted to unique corresponding character string;
Creating unit 42, the unique corresponding character marking of character string generated for determining conversion unit 41;
Processing unit 43, the character marking for determining creating unit 42 are added uniform resource locator ur l and transmit
To the second browser.
Further, as the application to method shown in above-mentioned Fig. 2, the embodiment of the invention provides a kind of Web wrapper letters
Transmitting device is ceased, which is usually located in the second browser, or has number independently of the second browser but with the second browser
According to interactive relation.As shown in figure 5, the device includes: receiving unit 51, reading unit 52 and conversion unit 53, wherein
Receiving unit 51, the uniform resource locator ur l of the carrying character marking for receiving the transmitting of the first browser,
Uniquely corresponding character string is uniquely corresponding with Web wrapper information to be passed for character marking;
Reading unit 52, for reading the character marking of the received uniform resource locator ur l of receiving unit 51 carrying;
Receiving unit 51 is used for the character marking read according to reading unit 52, receives character marking uniquely corresponding character
String;
Conversion unit 53, for converting unique corresponding Web wrapper information for the received character string of receiving unit 51.
Further, as the application to method shown in above-mentioned Fig. 3, the embodiment of the invention provides a kind of Web wrapper letters
Transmitting device is ceased, which is usually located in server, or has data interaction relationship independently of server but with server.Such as
Shown in Fig. 6, which includes: receiving unit 61, processing unit 62, searching unit 63 and transmission unit 64, wherein
Receiving unit 61, the character string reported for receiving the first browser, character string and Web wrapper information to be passed
It is unique corresponding;
Processing unit 62, the character string creation for reporting for received first browser of receiving unit 61 are unique corresponding
Character marking, and memory block is stored in by character string that the first browser reports and for unique corresponding character marking of its creation
In;
Searching unit 63, the character marking for being sent according to received second browser of receiving unit 61 is in memory block
Search unique corresponding character string;
Transmission unit 64, unique corresponding character string for finding searching unit 63 return to the second browser.
Web wrapper information carrying means provided in an embodiment of the present invention, can be by the first browser by webpage to be passed
Programming information is converted to unique corresponding character string, and creates unique corresponding character marking for character string, by the character marking
Write-in ur l passes to the second browser while corresponding character string is sent to server and save and generated by server
Unique corresponding character marking, the second browser reads the character marking in ur l and sends it to server, to service
The character marking that second browser is sent is compared by device with the character marking that it is generated, and identical characters label institute is unique right
The character string answered is sent to the second browser, so that the character string received is converted unique corresponding webpage by the second browser
Programming information.The Web wrapper information excessive with information content in the prior art can not carry out lacking for browser-cross transmitting by ur l
It falls into and compares, the present invention enables to the Web wrapper information size transmitted by ur l browser-cross unrestricted.
In addition, Web wrapper information to be passed is carried out character string conversion by the first browser by the embodiment of the present invention
At unique corresponding character string, and server is sent in a manner of post, by server as Web wrapper information to be passed
Terminal can transmit webpage programming information across any browser in different moments, and not by the information of Web wrapper information
Measure the limitation of size;Web wrapper information to be passed uniquely corresponding character mark is sent from the second browser to server simultaneously
Note, and the unique corresponding character string of the character marking of server return is received, character unserializing is carried out to character string and is obtained
Unique corresponding Web wrapper information, the Web wrapper information that character unserializing obtains do not need parse and can directly use
In programming.
Further, as to method shown in above-mentioned Fig. 1 Fig. 2 and Fig. 3 realization and Fig. 4 Fig. 5 and Fig. 6 shown device
Using the embodiment of the invention also provides a kind of Web wrapper information transmission systems, as shown in fig. 7, the system includes: first clear
Look at device 71, the second browser 72 and server 73;Wherein, the first browser 71 includes device shown in Fig. 4, the second browser 72
Comprising device shown in fig. 5, server 73 includes device as shown in FIG. 6.
The Web wrapper information transmission system provided in an embodiment of the present invention, can be by the first browser by webpage to be passed
Programming information is converted to unique corresponding character string, and creates unique corresponding character marking for character string, by the character marking
Write-in ur l passes to the second browser while corresponding character string is sent to server and save and generated by server
Unique corresponding character marking, the second browser reads the character marking in ur l and sends it to server, to service
The character marking that second browser is sent is compared by device with the character marking that it is generated, and identical characters label institute is unique right
The character string answered is sent to the second browser, so that the character string received is converted unique corresponding webpage by the second browser
Programming information.The Web wrapper information excessive with information content in the prior art can not carry out lacking for browser-cross transmitting by ur l
It falls into and compares, the present invention enables to the Web wrapper information size transmitted by ur l browser-cross unrestricted.
In addition, Web wrapper information to be passed is carried out character string conversion by the first browser by the embodiment of the present invention
At unique corresponding character string, and server is sent in a manner of post, by server as Web wrapper information to be passed
Terminal can transmit webpage programming information across any browser in different moments, and not by the information of Web wrapper information
Measure the limitation of size;Web wrapper information to be passed uniquely corresponding character mark is sent from the second browser to server simultaneously
Note, and the unique corresponding character string of the character marking of server return is received, character unserializing is carried out to character string and is obtained
Unique corresponding Web wrapper information, the Web wrapper information that character unserializing obtains do not need parse and can directly use
In programming.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment
" first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the denomination of invention according to an embodiment of the present invention (as determined in website
The device of Hyperlink rank) in some or all components some or all functions.The present invention is also implemented as being used for
Some or all device or device programs of method as described herein are executed (for example, computer program and calculating
Machine program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one
Or the form of multiple signals.Such signal can be downloaded from an internet website to obtain, or be provided on the carrier signal,
Or it is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (16)
1. a kind of Web wrapper information transferring method, which is characterized in that the described method includes:
Web wrapper information to be passed is converted to unique corresponding character string by the first browser, and the character string is reported to
Server, so that the server is according to the unique corresponding character marking of the text string generation;
Determine the character string uniquely corresponding character marking;
Uniform resource locator url is added in the character marking and passes to the second browser.
2. the method according to claim 1, wherein first browser turns Web wrapper information to be passed
It is melted into unique corresponding character string, comprising:
Web wrapper information to be passed is carried out character string by the first browser, generates unique corresponding character string.
3. the method according to claim 1, wherein the unique corresponding character mark of the determination character string
Note, comprising:
It is that the character string creates unique corresponding character marking by message digest algorithm MD5 coding mode.
4. a kind of Web wrapper information transferring method, which is characterized in that the described method includes:
Second browser receives the uniform resource locator url of the carrying character marking of the first browser transmitting, the character mark
Uniquely corresponding character string is uniquely corresponding with Web wrapper information to be passed for note;
The character marking that the url is carried is read, and the character marking is sent to server, so that the server determines
The unique corresponding character string of the character marking;
The character marking carried according to the url is read, receives the character marking uniquely corresponding character string;
Unique corresponding Web wrapper information is converted by the character string.
5. according to the method described in claim 4, it is characterized in that, described convert unique corresponding webpage for the character string
Programming information, comprising:
The character string is subjected to character unserializing, generates unique corresponding Web wrapper information.
6. a kind of Web wrapper information transferring method, which is characterized in that the described method includes:
The character string that the first browser reports is received, the character string and Web wrapper information to be passed are uniquely corresponding;
Unique corresponding character marking is created for the character string that received first browser reports, and described first is browsed
The character string and be stored in memory block for unique corresponding character marking of its creation that device reports;
The character marking of the second browser transmission is received, and the character marking sent according to second browser is in the storage
Unique corresponding character string is searched in area;
The unique corresponding character string found is returned into the second browser.
7. a kind of Web wrapper information carrying means, which is characterized in that described device includes:
Conversion unit, for Web wrapper information to be passed to be converted to unique corresponding character string, and will be in the character string
Server is offered, so that the server is according to the unique corresponding character marking of the text string generation;
Creating unit, for determining the character string uniquely corresponding character marking;
Processing unit, the character marking for generating the creating unit are added uniform resource locator url and transmit
To the second browser.
8. a kind of Web wrapper information carrying means, which is characterized in that described device includes:
Receiving unit, the uniform resource locator url of the carrying character marking for receiving the transmitting of the first browser, the character
Uniquely corresponding character string is uniquely corresponding with Web wrapper information to be passed for label;
Reading unit, the character marking carried for reading the received uniform resource locator url of the receiving unit, and
The character marking is sent to server;
The receiving unit is used to receive the unique corresponding character string of the character marking of server return;
Conversion unit, for converting unique corresponding Web wrapper information for the received character string of the receiving unit.
9. a kind of Web wrapper information carrying means, which is characterized in that described device includes:
Receiving unit, the character string reported for receiving the first browser, the character string and Web wrapper information to be passed are only
One is corresponding;
Processing unit, the character string creation for reporting for received first browser of the receiving unit are unique corresponding
Character marking, and be stored in character string that first browser reports and for unique corresponding character marking of its creation and deposit
In storage area;
Searching unit, the character marking for being sent according to received second browser of the receiving unit is in the memory block
Search unique corresponding character string;
Transmission unit, unique corresponding character string for finding the searching unit return to the second browser.
10. a kind of Web wrapper information transmission system, which is characterized in that the system comprises:
First browser, the second browser and server;Wherein,
First browser includes device as claimed in claim 7, and second browser includes dress according to any one of claims 8
It sets, the server includes device as claimed in claim 9.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require 1 to the Web wrapper letter described in any one of claim 3
Cease transmission method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit requires 1 to the Web wrapper information transferring method described in any one of claim 3.
13. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require 4 or 5 described in Web wrapper information transferring method.
14. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require 4 or 5 described in Web wrapper information transferring method.
15. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require 6 described in Web wrapper information transferring method.
16. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require 6 described in Web wrapper information transferring method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510547924.8A CN106487851B (en) | 2015-08-31 | 2015-08-31 | Web wrapper information transferring method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510547924.8A CN106487851B (en) | 2015-08-31 | 2015-08-31 | Web wrapper information transferring method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106487851A CN106487851A (en) | 2017-03-08 |
CN106487851B true CN106487851B (en) | 2019-06-18 |
Family
ID=58236306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510547924.8A Active CN106487851B (en) | 2015-08-31 | 2015-08-31 | Web wrapper information transferring method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106487851B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107295003B (en) * | 2017-07-17 | 2020-01-07 | 联动优势科技有限公司 | Data transmission method, device and system |
CN111078219B (en) * | 2019-12-13 | 2023-10-03 | 北京金山云网络技术有限公司 | Page display method, device and system, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853174A (en) * | 2009-04-03 | 2010-10-06 | 中兴通讯股份有限公司 | Method and device for synchronizing defining and calling of string resource |
CN103095663A (en) * | 2011-11-04 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Information interactive method among non-login users and device |
CN103973730A (en) * | 2013-01-29 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Method, terminal and system for achieving data sharing |
CN104049557A (en) * | 2014-05-12 | 2014-09-17 | 南昌大学 | Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6167187B2 (en) * | 2013-12-25 | 2017-07-19 | 株式会社日立製作所 | Query generation method and query generation apparatus |
-
2015
- 2015-08-31 CN CN201510547924.8A patent/CN106487851B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853174A (en) * | 2009-04-03 | 2010-10-06 | 中兴通讯股份有限公司 | Method and device for synchronizing defining and calling of string resource |
CN103095663A (en) * | 2011-11-04 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Information interactive method among non-login users and device |
CN103973730A (en) * | 2013-01-29 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Method, terminal and system for achieving data sharing |
CN104049557A (en) * | 2014-05-12 | 2014-09-17 | 南昌大学 | Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer |
Also Published As
Publication number | Publication date |
---|---|
CN106487851A (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484383B (en) | Page rendering method, device and equipment | |
CN106528432B (en) | The construction method and device of test scene data bury a test method | |
CN103942225B (en) | A kind of resource transfer method, client and the system of mixed type applications client | |
CN107808010A (en) | A kind of pop-up page generation method, device, browser and storage medium | |
CN104426925B (en) | Web page resources acquisition methods and device | |
US9483449B1 (en) | Optimizing page output through run-time reordering of page content | |
CN104112002B (en) | A kind of methods, devices and systems of list adaptation | |
CN103279538B (en) | Prestrain accesses the server of webpage, browser client and method in website | |
CN106294379A (en) | The loading method of a kind of page, device and system | |
CN104063401B (en) | The method and apparatus that a kind of webpage pattern address merges | |
CN108664248A (en) | A kind of generation method and device of wechat small routine | |
CN110442815A (en) | Page generation method, system, device and computer readable storage medium | |
CN107203470B (en) | Page adjustment method and device | |
WO2014112727A1 (en) | Shortened url management method and management device, and storage medium storing computer program for management thereof | |
CN105528369B (en) | Webpage code-transferring method, device and server | |
CN106547806B (en) | Page loading method and device | |
CN106487851B (en) | Web wrapper information transferring method, apparatus and system | |
CN104980464B (en) | A kind of network request processing method, network server and network system | |
CN101770511B (en) | Browse system for accelerating backspace operation of mobile communication equipment terminal and application method thereof | |
CN106156128B (en) | Method and device for realizing multi-language and multi-domain name service of website | |
CN104461893B (en) | Data processing method and data processing equipment | |
CN105930385A (en) | Data crawling method and system | |
CN103347069A (en) | Method and device for realizing network access | |
CN105956182B (en) | A kind of method, apparatus and system of resource load | |
US8458146B2 (en) | Accessing data remotely |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |