CN104182493B - A kind of method of data synchronization and device, terminal - Google Patents

A kind of method of data synchronization and device, terminal Download PDF

Info

Publication number
CN104182493B
CN104182493B CN201410394994.XA CN201410394994A CN104182493B CN 104182493 B CN104182493 B CN 104182493B CN 201410394994 A CN201410394994 A CN 201410394994A CN 104182493 B CN104182493 B CN 104182493B
Authority
CN
China
Prior art keywords
user
browser
record information
user record
caching
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
CN201410394994.XA
Other languages
Chinese (zh)
Other versions
CN104182493A (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.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410394994.XA priority Critical patent/CN104182493B/en
Publication of CN104182493A publication Critical patent/CN104182493A/en
Application granted granted Critical
Publication of CN104182493B publication Critical patent/CN104182493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The embodiment of the invention discloses a kind of method of data synchronization and devices, terminal.Wherein, which includes: that the first user record information is obtained from the caching of the first browser;The first user record information is parsed, record data of the user in first browser is obtained;The cache path that information is recorded according to the second user of the second browser, by the user in the file that the record data in the first browser is stored in second user record information.Implement the embodiment of the present invention, the function that data are synchronous between different browsers may be implemented, user authorization in the case where can by the record data for having installed browser, such as collection, bookmark, historical record information automatic synchronization are into the browser installed, so as to improve the usage experience of user.

Description

A kind of method of data synchronization and device, terminal
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of method of data synchronization and device, terminal.
Background technique
Currently, with the development of communication technology, the terminal devices such as smart phone, tablet computer, notebook and computer can be with Internet is accessed anywhere or anytime.In practical applications, user is more by the browser access interconnection on terminal device Net, the functions such as collection or historical record can store the users such as webpage, the network address browsed of user's collection note in browser Data are recorded, to make user is subsequent quickly can directly access these network address or webpage etc..However, in the prior art, if The different browser of user installation, it is necessary to webpage be carried out respectively in each browser the operation such as to collect, and different Browser history record be also independent from each other, this brings inconvenience to users.
Summary of the invention
The embodiment of the invention discloses a kind of method of data synchronization and devices, terminal, can be same between different browsers Walk the record data respectively cached.
First aspect of the embodiment of the present invention discloses a kind of method of data synchronization, comprising:
The first user record information is obtained from the caching of the first browser;
The first user record information is parsed, record data of the user in first browser is obtained;
The cache path that information is recorded according to the second user of the second browser, by the user in the first browser Record data is stored in the file of second user record information.
It is wherein, described that the first user record information is obtained from the caching of the first browser, comprising:
During installing the second browser, output prompt asks the user whether that authorized browse device data are synchronous;
If user's authorized browse device data are synchronous, the cache way of the first user record information of the first browser is obtained Diameter;
According to the cache path of the first user record information, the first user note is obtained from the caching of the first browser Record information.
Wherein, if user's authorized browse device data are synchronous, the first user record information of the first browser is obtained Cache path, comprising:
If user's authorized browse device data are synchronous, the slow of the first user record information of the first browser is judged whether there is Deposit path;
If so, then obtaining the cache path of the first user record information of first browser.
Wherein, the cache path according to the first user record information, obtains first from the caching of the first browser User record information, comprising:
Whether according to the cache path of the first user record information, inquiring in the caching of the first browser has the first user note Record information;
If there is the first user record information in the caching of the first browser, first is obtained from the caching of the first browser User record information.
Wherein, if there is the first user record information in the caching of first browser, from the caching of the first browser The first user record information of middle acquisition, comprising:
If there is the first user record information in the caching of the first browser, permission is judged whether there is from the slow of the first browser Deposit middle acquisition the first user record information;
If having permission, the first user record information is obtained from the caching of the first browser.
Wherein, the first user record information of the parsing obtains record data of the user in the first browser, packet It includes:
Judge whether the file format of the first user record information can recognize;
If the file format of the first user record information can recognize, the first user record information is parsed, user is obtained and exists Record data in first browser;
If the file format of the first user record information not can recognize, the first user record information is uploaded to service Device obtains record data of the user in the first browser to parse the first user record information by server;
Receive record data of the user of server return in the first browser.
Second aspect of the embodiment of the present invention discloses a kind of data synchronization unit, comprising:
Module is obtained, for obtaining the first user record information from the caching of the first browser;
Parsing module, the first user record information obtained for parsing the acquisition module, it is clear first to obtain user The record data look in device;
Memory module, for recording the cache path of information according to the second user of the second browser, by the parsing mould Record data of the user that block parsing obtains in the first browser is stored in the file of second user record information In.
Wherein, the acquisition module includes:
Output unit, for during installing the second browser, output prompt to ask the user whether authorized browse device Data are synchronous;
First acquisition unit, for obtaining first when user is synchronous for the output unit authorized browse device data The cache path of first user record information of browser;
Second acquisition unit, the cache way of the first user record information for being obtained according to the first acquisition unit Diameter obtains the first user record information from the caching of the first browser.
Wherein, the first acquisition unit includes:
Judging submodule, for judging whether there is when user is synchronous for the output unit authorized browse device data The cache path of first user record information of the first browser;
First acquisition submodule is sometimes, to obtain first browsing for the judging result in the judging submodule The cache path of first user record information of device.
Wherein, the second acquisition unit includes:
Inquiry submodule, the cache path of the first user record information for being obtained according to the first acquisition unit, Whether inquire in the caching of the first browser has the first user record information;
Second acquisition submodule, for having the in the caching that the query result of the inquiry submodule is the first browser When one user record information, the first user record information is obtained from the caching of the first browser.
Wherein, second acquisition submodule includes:
Judgment sub-unit, for having the first use in the caching that the query result of the inquiry submodule is the first browser When family records information, judges whether there is permission and obtain the first user record information from the caching of the first browser;
Subelement is obtained, is when having permission, from the slow of the first browser for the judging result in the judgment sub-unit Deposit middle acquisition the first user record information.
Wherein, the parsing module includes:
Judging unit, for judging whether the file format of the first user record information of the acquisition module acquisition can be known Not;
Resolution unit, when for judging that the file format of the first user record information can recognize in the judging unit, The first user record information is parsed, record data of the user in the first browser is obtained;
Communication unit, for judging that the file format of the first user record information can not identify in the judging unit When, the first user record information is uploaded to server, is existed to obtain user by the first user record information of server parsing Record data in first browser;
The communication unit is also used to receive record data of the user of server return in the first browser.
The third aspect of the embodiment of the present invention discloses a kind of terminal, including device described in foregoing invention embodiment.
In the embodiment of the present invention, terminal can obtain the first user record information from the caching of the first browser, pass through The first user record information is parsed, obtains record data of the user in first browser, and according to the second browsing The cache path of the second user record information of device, is stored in the second use for record data of the user in the first browser Family records in the file of information.To realize the synchronous function of data between different browsers so that user pass through it is a clear Device of looking at can automatically obtain the information such as collection and the historical record of other browsers, quickly and conveniently to surf the Internet.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of an embodiment of method of data synchronization disclosed by the embodiments of the present invention;
Fig. 2 is a kind of flow diagram of another embodiment of method of data synchronization disclosed by the embodiments of the present invention;
Fig. 3 is a kind of flow diagram of the another embodiment of method of data synchronization disclosed by the embodiments of the present invention;
Fig. 4 is a kind of flow diagram of the another embodiment of method of data synchronization disclosed by the embodiments of the present invention;
Fig. 5 is a kind of flow diagram of the another embodiment of method of data synchronization disclosed by the embodiments of the present invention;
Fig. 6 is a kind of structural schematic diagram of data synchronization unit disclosed by the embodiments of the present invention;
Fig. 7 is the structural schematic diagram that module is obtained in data synchronization unit disclosed by the embodiments of the present invention;
Fig. 8 is the structural schematic diagram of first acquisition unit in acquisition module disclosed by the embodiments of the present invention;
Fig. 9 is the structural schematic diagram of second acquisition unit in acquisition module disclosed by the embodiments of the present invention;
Figure 10 is the structural schematic diagram of the second acquisition submodule in second acquisition unit disclosed by the embodiments of the present invention;
Figure 11 is the structural schematic diagram of parsing module in data synchronization unit disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts Example is applied, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of method of data synchronization and devices, terminal, can be same between different browsers Walk the record data respectively cached.It is described in detail separately below.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of method of data synchronization disclosed by the embodiments of the present invention.Such as Fig. 1 institute Show, which may include:
S100, the first user record information is obtained from the caching of the first browser.
In the embodiment of the present invention, the first user record information may include operation note number of the user in the first browser According to, such as collection, historical record.
S200, the first user record information of parsing, obtain record data of the user in the first browser.
S300, the cache path that information is recorded according to the second user of the second browser, by user in the first browser Record data be stored in second user record information file in.
Wherein, second user record information includes record data of the user in the second browser, and such as collection is gone through Records of the Historian record etc..
Above-mentioned first user record information and/or second user record information may include: JSON (JavaScript Object Notation) language file, this is a kind of data exchange voice of lightweight, based on text, is easy to read; Alternatively, Plist file, the file of the object after information serialization for storing user setting binding.
As an optional implementation manner, as shown in Fig. 2, above-mentioned S100 may include:
S101: during installing the second browser, output prompt asks the user whether that authorized browse device data are same Step;
S102: if user's authorized browse device data are synchronous, the slow of the first user record information of the first browser is obtained Deposit path;
S103, according to the cache path of the first user record information, the first user is obtained from the caching of the first browser Record information.
As an optional implementation manner, as shown in figure 3, above-mentioned S102 may include:
S1021: if user's authorized browse device data are synchronous, the first user record letter of the first browser is judged whether there is The cache path of breath;
S1022: if so, obtaining the cache path of the user record information of the first browser.
Correspondingly, in another embodiment, if the cache way of first user record information of the judgement without the first browser The browser identification information of first browser can be sent to server, wherein browser identification information may include clear by diameter Look at the information such as failure of data synchronization reason of device title, version and/or the browser.
As an optional implementation manner, as shown in figure 4, above-mentioned S103 may include:
S1031: whether according to the cache path of the first user record information, inquiring in the caching of the first browser has first User record information;
S1032: if so, then obtaining the first user record information from the caching of the first browser.
In another embodiment, the present invention can also determine first in the cache path according to the first user record information When in the caching of browser without the first user record information, the browser identification information of the first browser is sent to server, And export the prompting message for being used for prompting the first browser data synchronization failure, wherein browser identification information includes browser The information such as title, version and/or the browser data synchronization failure reason.
Specifically, above-mentioned S1032 can specifically include: if there is the first user record information in the caching of the first browser, It judges whether there is permission and obtains the first user record information from the caching of the first browser;It is clear from first if having permission Look at device caching in obtain the first user record information.
Correspondingly, in another embodiment, it if there is the first user record information in the caching of the first browser, but does not weigh Limit obtains the first user record information from the caching, then the browser identification information of the first browser is sent to server. Wherein, browser identification information includes the information such as browser title, version and/or the browser data synchronization failure reason.
As an optional implementation manner, as shown in figure 5, above-mentioned S200 may include:
S201, judge whether the file format of the first user record information can recognize;
If the file format of S202, the first user record information can recognize, the first user record information is parsed, is used Record data of the family in the first browser;
If the first user record information is uploaded to clothes by S203, the file format that can not identify the first user record information Business device obtains record data of the user in the first browser to parse the first user record information by server;
S204, record data of the user of server return in the first browser is received.
The file format as used by the user record information of each browser is different, and server can identify more File format, therefore increase and can carry out the synchronous browser type of browser data, the synchronous energy of the data to improve terminal Power.
The embodiment of the present invention obtains the first user record information from the caching of the first browser, by parsing the first user Information is recorded, obtains record data of the user in the first browser, and record according to the second user of the second browser The record data is stored in the file of second user record information by the cache path of information.As it can be seen that the present invention is real Applying example realizes the function that data are synchronous between different browsers, so that user can automatically be obtained by a browser The record datas such as collection and the historical record of other browsers are taken to improve user experience quickly and conveniently to surf the Internet.
Referring to Fig. 6, Fig. 6 is a kind of structural schematic diagram of data synchronization unit disclosed by the embodiments of the present invention.Wherein, scheme It is comprised the following modules in data synchronization unit shown in 6:
Module 1 is obtained, for obtaining the first user record information from the caching of the first browser.
Wherein, the first user record information may include record data of the user in the first browser, such as collect Folder, historical record etc..
Parsing module 2 obtains user in the first browsing for parsing the first user record information for obtaining module 1 and obtaining Record data in device.
Memory module 3, for recording the cache path of information according to the second user of the second browser, by parsing module 2 The user obtained is parsed in the file that the record data in the first browser is stored in second user record information.
Referring to Figure 7 together, since the cache path of the user record information of different browsers is different, obtaining module 1 can To include:
Output unit 11, for during installing the second browser, output prompt to ask the user whether the authorized browse Device data are synchronous.
First acquisition unit 12, for obtaining first when user is synchronous for 11 authorized browse device data of output unit The cache path of first user record information of browser.
Second acquisition unit 13, the cache way of the first user record information for being obtained according to first acquisition unit 12 Diameter obtains the first user record information from the caching of the first browser.
It is alternatively possible to which mounted all browsers are carried out data simultaneously operating.
Optionally, as shown in figure 8, first acquisition unit 12 may include:
Judging submodule 121, for judging whether there is when user is synchronous for 11 authorized browse device data of output unit The cache path of first user record information of the first browser;
First acquisition submodule 122 is sometimes, to obtain the first browser for the judging result in judging submodule 121 The first user record information cache path.
In the specific implementation, if the judging result of judging submodule 121 is the first user record letter without the first browser The information such as the browser title of the first browser, version then can be sent to background server by the cache path of breath, in order to Background server causes the browser of failure of data synchronization to summarize to due to not corresponding cache path, facilitates the later period Upgrading.In addition, if the judging result of judging submodule 121 is the cache way without the first user record information of the first browser Diameter can also export the prompting message of the first browser data synchronization failure.
Optionally, as shown in figure 9, second acquisition unit 13 may include:
Inquiry submodule 131, the cache path of the first user record information for being obtained according to first acquisition unit 12, Whether inquire in the caching of the first browser has the first user record information;
Second acquisition submodule 132, for having in the caching that the query result of inquiry submodule 131 is the first browser When the first user record information, the first user record information is obtained from the caching of the first browser.
In the specific implementation, even if the second acquisition submodule 132 inquires the slow of the first browser by inquiring submodule 131 There is the first user record information in depositing, it is also possible to the first user record information can not be obtained due to disk failures etc., or There is no authority acquiring the first user record information, therefore, as shown in Figure 10, the second acquisition submodule 132 can also include following Subelement:
Judgment sub-unit 1321, for having the in the caching that the query result of inquiry submodule 131 is the first browser When one user record information, judges whether there is permission and obtain the first user record information from the caching of the first browser;
Subelement 1322 is obtained, is when having permission, from the first browser for the judging result in judgment sub-unit 1321 Caching in obtain the first user record information.
Since the format of the user record information of different browsers is different, as an optional implementation manner, such as Figure 11 Shown, parsing module 2 may include:
Judging unit 21, for judging whether the file format for obtaining the first user record information that module 1 obtains can be known Not.
Resolution unit 22 can be known for the file format that the judging result in judging unit 21 is the first user record information When other, the first user record information is parsed, obtains record data of the user in the first browser.
Communication unit 23, can not for the file format that the judging result in judging unit 21 is the first user record information When identification, the first user record information is uploaded to server, is used to parse the first user record information by server Record data of the family in the first browser.
The communication unit 23 is also used to receive record data of the user of server return in the first browser.
The first user that the data synchronization unit of the embodiment of the present invention can obtain the first browser by obtaining module remembers Information is recorded, and the first user record information is parsed to obtain behaviour of the user in the first browser by parsing module It notes down data, and records the cache path of information according to the second user of the second browser by memory module, by user the Record data in one browser is stored in the file of second user record information of the second browser.As it can be seen that the number The function that data are synchronous between different browsers may be implemented according to synchronizing device, so that user can by a browser Automatic synchronization obtains the information such as collection and the historical record of other browsers and easily surfs the Internet.Further, the synchronous dress of data Set can user authorize under intelligently by mounted first browser collection, bookmark, browsing record etc. data It is synchronized in the second browser installed, avoids user by searching, exporting, importing and saving by hand user's letter again The complicated processes of breath and can not identify file format lead to not using other browser clients record information the problem of.
The embodiment of the invention also discloses a kind of terminal, which includes that data described in foregoing invention embodiment are synchronous Device, the terminal may be implemented the data between different browsers and synchronize, avoid user from searching again, export, import and save The complicated processes of user record information, in addition, the terminal can also be during installing new browser, in the feelings of user's authorization By the user record data such as collection, bookmark, historical record etc. in the user record message file for having installed browser under condition Information automatic synchronization is into the browser newly installed, so as to improve user experience.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (11)

1. a kind of method of data synchronization characterized by comprising
The first user record information is obtained from the caching of the first browser;
The first user record information is parsed, record data of the user in first browser is obtained;
The cache path that information is recorded according to the second user of the second browser, by operation of the user in the first browser Record data are stored in the file of second user record information;
It is described that the first user record information is obtained from the caching of the first browser, comprising:
During installing the second browser, output prompt asks the user whether that authorized browse device data are synchronous;
If user's authorized browse device data are synchronous, the cache path of the first user record information of the first browser is obtained;
According to the cache path of the first user record information, the first user record letter is obtained from the caching of the first browser Breath.
2. the method as described in claim 1, which is characterized in that if user's authorized browse device data are synchronous, obtain the The cache path of first user record information of one browser, comprising:
If user's authorized browse device data are synchronous, the cache way of the first user record information of the first browser is judged whether there is Diameter;
If so, then obtaining the cache path of the first user record information of first browser.
3. method according to claim 1 or 2, which is characterized in that the cache path according to the first user record information, The first user record information is obtained from the caching of the first browser, comprising:
Whether according to the cache path of the first user record information, inquiring in the caching of the first browser has the first user record letter Breath;
If there is the first user record information in the caching of the first browser, the first user is obtained from the caching of the first browser Record information.
4. method as claimed in claim 3, which is characterized in that if having the first user record in the caching of first browser Information then obtains the first user record information from the caching of the first browser, comprising:
If there is the first user record information in the caching of the first browser, permission is judged whether there is from the caching of the first browser Obtain the first user record information;
If having permission, the first user record information is obtained from the caching of the first browser.
5. method according to claim 1 or 2, which is characterized in that the first user record information of the parsing obtains user and exists Record data in first browser, comprising:
Judge whether the file format of the first user record information can recognize;
If the file format of the first user record information can recognize, the first user record information is parsed, obtains user first Record data in browser;
If the file format of the first user record information not can recognize, the first user record information is uploaded to server, with Just the first user record information is parsed by server and obtains record data of the user in the first browser;
Receive record data of the user of server return in the first browser.
6. a kind of data synchronization unit characterized by comprising
Module is obtained, for obtaining the first user record information from the caching of the first browser;
Parsing module, the first user record information obtained for parsing the acquisition module, obtains user in the first browser In record data;
Memory module, for recording the cache path of information according to the second user of the second browser, by the parsing module solution The user obtained is analysed in the file that the record data in the first browser is stored in second user record information;
The acquisition module includes:
Output unit, for during installing the second browser, output prompt to ask the user whether authorized browse device data It is synchronous;
First acquisition unit, for obtaining the first browsing when user is synchronous for the output unit authorized browse device data The cache path of first user record information of device;
Second acquisition unit, the cache path of the first user record information for being obtained according to the first acquisition unit, from The first user record information is obtained in the caching of first browser.
7. device as claimed in claim 6, which is characterized in that the first acquisition unit includes:
Judging submodule, for judging whether there is first when user is synchronous for the output unit authorized browse device data The cache path of first user record information of browser;
First acquisition submodule is sometimes, to obtain first browser for the judging result in the judging submodule The cache path of first user record information.
8. device as claimed in claims 6 or 7, which is characterized in that the second acquisition unit includes:
Inquire submodule, the cache path of the first user record information for obtaining according to the first acquisition unit, inquiry Whether first user record information is had in the caching of first browser;
Second acquisition submodule, for having the first use in the caching that the query result of the inquiry submodule is the first browser When family records information, the first user record information is obtained from the caching of the first browser.
9. device as claimed in claim 8, which is characterized in that second acquisition submodule includes:
Judgment sub-unit, for having the first user note in the caching that the query result of the inquiry submodule is the first browser When recording information, judges whether there is permission and obtain the first user record information from the caching of the first browser;
Subelement is obtained, is when having permission, from the caching of the first browser for the judging result in the judgment sub-unit Obtain the first user record information.
10. device as claimed in claims 6 or 7, which is characterized in that the parsing module includes:
Judging unit, for judging whether the file format of the first user record information of the acquisition module acquisition can recognize;
Resolution unit, when for judging that the file format of the first user record information can recognize in the judging unit, parsing First user record information obtains record data of the user in the first browser;
Communication unit will when for judging that the file format of the first user record information can not be identified in the judging unit First user record information is uploaded to server, clear first to obtain user by the first user record information of server parsing The record data look in device;
The communication unit is also used to receive record data of the user of server return in the first browser.
11. a kind of terminal, which is characterized in that including the described in any item devices of claim 6 to 10.
CN201410394994.XA 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal Active CN104182493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410394994.XA CN104182493B (en) 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410394994.XA CN104182493B (en) 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal

Publications (2)

Publication Number Publication Date
CN104182493A CN104182493A (en) 2014-12-03
CN104182493B true CN104182493B (en) 2019-01-18

Family

ID=51963532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410394994.XA Active CN104182493B (en) 2014-08-12 2014-08-12 A kind of method of data synchronization and device, terminal

Country Status (1)

Country Link
CN (1) CN104182493B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836655B (en) * 2015-04-27 2019-05-21 深圳市金立通信设备有限公司 A kind of method of data synchronization
CN106547800A (en) * 2015-09-23 2017-03-29 北京国双科技有限公司 The method and device of striding equipment synchronization user behavior
CN106095883B (en) * 2016-06-03 2021-01-15 腾讯科技(深圳)有限公司 Method and device for importing browser data
CN112905934B (en) * 2021-02-07 2022-10-28 龙芯中科(合肥)技术有限公司 Data import method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309291A (en) * 2008-05-30 2008-11-19 中兴通讯股份有限公司 Tool and method for terminal data maintenance
CN101764841A (en) * 2009-12-16 2010-06-30 中兴通讯股份有限公司 Method and device for synchronizing user data
CN101924779A (en) * 2009-06-15 2010-12-22 北京搜狗科技发展有限公司 Method equipment and system for sharing resources by browser clients
US20130110937A1 (en) * 2011-11-01 2013-05-02 Microsoft Corporation Real time document presentation data synchronization through generic service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309291A (en) * 2008-05-30 2008-11-19 中兴通讯股份有限公司 Tool and method for terminal data maintenance
CN101924779A (en) * 2009-06-15 2010-12-22 北京搜狗科技发展有限公司 Method equipment and system for sharing resources by browser clients
CN101764841A (en) * 2009-12-16 2010-06-30 中兴通讯股份有限公司 Method and device for synchronizing user data
US20130110937A1 (en) * 2011-11-01 2013-05-02 Microsoft Corporation Real time document presentation data synchronization through generic service

Also Published As

Publication number Publication date
CN104182493A (en) 2014-12-03

Similar Documents

Publication Publication Date Title
Crovella et al. Internet measurement: infrastructure, traffic and applications
CN101753605B (en) Data validation method and server
CN104395884B (en) The data storage layer grade extended for Web page application program and browser
CN102985921B (en) There is the client terminal device high speed caching electronic document resources of e-sourcing data base
CN104182408B (en) A kind of webpage offline access method and device
CN104182493B (en) A kind of method of data synchronization and device, terminal
CN102065145B (en) Information issuing method, device and system
CN102710798B (en) Browser expansion service based on real-time Communication for Power provides system and method
CN105095423B (en) Enumeration data wiring method and device
WO2008021764A1 (en) System and method for forming a podcast
CN102081663A (en) Method and system for synchronizing structured web site contents
CN101976315A (en) Storage device having direct user access
CN101557427A (en) Method for providing diffluent information and realizing the diffluence of clients, system and server thereof
CN103368986A (en) Information recommendation method and information recommendation device
CN103207873A (en) Method and system for displaying exclusive user page
CN104115142A (en) Device specific folders for bookmarks synchronization
CN108762898A (en) A kind of management method, terminal device and the computer readable storage medium of thread interface
CN105653678A (en) Data chart subscription method and data chart subscription system
CN109213824A (en) Data grabber system, method and apparatus
CN104572981B (en) A kind of Webpage method for caching and processing and mobile terminal device
CN104281581B (en) The monitoring method and system of the recommendation position content exposure amount of webpage
CN104202403A (en) Browser, cloud server and method for web browsing acceleration
CN104750817A (en) Page module refreshing method and device based on data broadcast communication
KR101184809B1 (en) Method and server for providing web page
CN102456070B (en) Indexing unit and search 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