CN106682171B - A kind of caching method and device of web data - Google Patents
A kind of caching method and device of web data Download PDFInfo
- Publication number
- CN106682171B CN106682171B CN201611232546.5A CN201611232546A CN106682171B CN 106682171 B CN106682171 B CN 106682171B CN 201611232546 A CN201611232546 A CN 201611232546A CN 106682171 B CN106682171 B CN 106682171B
- Authority
- CN
- China
- Prior art keywords
- caching
- index
- webpage
- link
- user
- 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
Images
Classifications
-
- 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/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- 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/957—Browsing optimisation, e.g. caching or content distillation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a kind of caching method of web data and devices, wherein the described method includes: obtaining and selecting according to user the instruction of the first webpage, starts the first preset cache action link of the first webpage;In the second caching link for receiving user's selection, starting links corresponding first preset cache operation with the second caching and indexes;When the first preset cache for receiving user's selection operates an index in index, according to an index in the first preset cache of selection operation index, the web data in corresponding first webpage of an index in the first preset cache operation index of selection is cached.The caching method of web data, it can be according to the user's choice, the dynamically web data of the named web page of cache user selection, when user accesses the webpage again, in no network or local flow, the content of the webpage is also may browse through, checked, simultaneously, faster, user experience is more preferable for the speed of local browsing.
Description
Technical field
The present invention relates to technical field of internet application, more particularly to the caching method and device of a kind of web data.
Background technique
With the continuous development of Internet technology, the application of internet is also more and more extensive, and user can be looked by network
Ask, browse the content of oneself concern.
But in actual application, somewhere or in the case where a certain period network signal is particularly poor, lead to
Browser or website are crossed, it is longer to open the time that webpage needs to wait, or even webpage can not be opened, prevent user is from browsing
Web page contents;Or when being that the set meal flow of mobile phone user is finished, user refuels packet unless in addition handling new flow increasing,
Otherwise it has no idea browsed web content, and in addition handles the new flow increasing packet that refuels and need additional rate.In short, due to network
Perhaps so that user cannot perhaps be browsed certainly at certain moment by browser or website in some cases the reason of flow
Oneself wants the content of browsing.
Summary of the invention
The caching method and device for being designed to provide a kind of web data of the embodiment of the present invention, selectively delay in advance
Web data is deposited, so that user also may browse through, check that oneself wants the web page contents of browsing when not having network.Specific skill
Art scheme is as follows:
The embodiment of the invention discloses a kind of caching methods of web data, comprising:
The instruction for obtaining and selecting according to user the first webpage, starts the first preset cache operational chain of first webpage
It connects, wherein to select the instruction wait cache the first webpage on website, described first is default for the instruction for selecting the first webpage
Caching link at least includes: directly to open the first caching link of first webpage and receive to cache first webpage
Second caching link;
When receiving the second caching link that user selects, starting links corresponding first in advance with second caching
If caching indexes, wherein the first preset cache operation index at least includes: the index for caching text, caching text
With the index of picture and the index of caching text, picture and video;
When the first preset cache for receiving user's selection operates an index in index, according to selected first
An index in preset cache operation index caches an index pair in the selected first preset cache operation index
The web data in first webpage answered.
Preferably, in the acquisition and according to the instruction of user's the first webpage of selection, start the first of first webpage
Preset cache action link, before, the caching method of the web data further include:
Receive the instruction of triggering caching, the default website operation link of the starting web site tags page, wherein the website mark
The page that the page is multiple website logos is signed, the instruction of the triggering caching includes the cache instruction that user sends;
After starting the default website operation link, open user's selection where first webpage wait cache
Website.
Preferably, positioned at described in the second caching link for receiving user's selection, starting and second caching
After linking corresponding first preset cache operation index, the caching method of the web data further include:
There are at least one sons in the second caching link for receiving user's selection, and judging first webpage
When web page interlinkage, start the second preset cache action link of at least one sub-pages link of first webpage, wherein institute
It states the second preset cache action link to include at least: directly opening the third caching link of the sub-pages link and receive caching
4th caching link of the sub-pages link;
In the 4th caching link for receiving user's selection, start the second preset cache of the 4th caching link
Operation index, wherein the second preset cache operation index at least includes: the index for caching text, caching text and picture
Index and caching text, picture and video index;
When the second preset cache for receiving user's selection operates an index in index, according to selected second
An index in preset cache operation index caches an index pair in the selected second preset cache operation index
Data in the sub-pages for first webpage answered.
Preferably, the first preset cache action link of starting first webpage, comprising:
Start and shows linking corresponding first user's operation button with first caching, opening on first webpage
It moves and shows and link corresponding second user operation button with second caching.
Preferably, described in the second caching link for receiving user's selection, starting is linked with second caching
Corresponding first preset cache operation index, comprising:
When receiving the second user operation button of user's selection, the second caching link corresponding first is triggered
Preset cache operation index;
Start and show the third user's operation button corresponding with the caching index of text on first webpage,
Start and show the corresponding fourth user operation button of index or starting with the caching text and picture and shows and institute
State the corresponding 5th user's operation button of index of caching text, picture and video.
Preferably, an index according in selected first preset cache operation index, caches the choosing
The web data in corresponding first webpage of an index in the first preset cache operation index selected, comprising:
According to an index in selected first preset cache operation index, the net of first webpage is obtained
Location;
According to the network address of first webpage, an index in the selected first preset cache operation index is obtained
Web data in corresponding first webpage;
Cache the web data.
Preferably, an index in the caching selected first preset cache operation index corresponding described the
Web data in one webpage, comprising:
The web data is cached to predetermined position, wherein the predeterminated position includes: local path.
Also a kind of buffer storage of web data of the embodiment of the present invention, comprising:
Start link module, for obtaining and selecting according to user the instruction of the first webpage, starts the first of the first webpage
Preset cache action link, wherein select the first web page instructions for the instruction wait cache the first webpage on website, first is default
It at least includes: that the first caching link of the first webpage of direct opening and the second of receiving the first webpage of caching are delayed that caching, which links,
Deposit link;
First starting index module, when for being linked in the second caching for receiving user's selection, starting and the second caching chain
Connect corresponding first preset cache operation index, wherein the first preset cache operation index at least includes: the rope for caching text
Draw, cache the index of text and picture and the index of caching text, picture and video;
First cache module, when for operating an index in index in the first preset cache for receiving user's selection,
According to an index in the first preset cache of selection operation index, cache in the first preset cache operation index of selection
Web data in corresponding first webpage of one index.
Preferably, the buffer storage of the web data further include:
Cache instruction module is received, for receiving the instruction of triggering caching, the default website behaviour of the starting web site tags page
It links, wherein the web site tags page is the page of multiple website logos, and the instruction for triggering caching includes the caching of user's transmission
Instruction;
Website Module is opened, for opening user's choosing where the first webpage after starting default website operation link
The website to be cached selected.
Preferably, the buffer storage of the web data further include:
Promoter Web page module in the second caching link for receiving user's selection, and is judging that the first webpage deposits
In the link of at least one sub-pages, the second preset cache operational chain of at least one sub-pages link of the first webpage of starting
It connects, wherein the second preset cache action link includes at least: directly opening the third caching link of sub-pages link and receive slow
Deposit the 4th caching link of sub-pages link;
Second starting index module, when for being linked in the 4th caching for receiving user's selection, the 4th caching link of starting
The second preset cache operate index, wherein the second preset cache operation index at least includes: cache text index, caching
The index of the index and caching text, picture and video of text and picture;
Second cache module, when for operating an index in index in the second preset cache for receiving user's selection,
According to an index in the second preset cache of selection operation index, cache in the second preset cache operation index of selection
Data in the sub-pages of corresponding first webpage of one index.
Preferably, the starting link module further include:
First start button submodule links corresponding first with the first caching on the first webpage for starting and showing
User's operation button, starting and display link corresponding second user operation button with the second caching.
Preferably, the first starting index module includes:
Submodule is triggered, for when receiving the second user operation button of user's selection, triggering second to cache link pair
The the first preset cache operation index answered;
Second start button submodule, for starting and showing corresponding with the caching index of text the on the first webpage
Three user's operation buttons, starting simultaneously show fourth user operation button corresponding with the index of caching text and picture or open
It moves and shows the 5th user's operation button corresponding with caching text, the index of picture and video.
Preferably, first cache module includes:
Network address submodule is obtained, for obtaining the first webpage according to an index in the first preset cache operation index
Network address;
Web data submodule is obtained, for the network address according to the first webpage, is obtained in the first preset cache operation index
Corresponding first webpage of index in web data;
Cache web pages data submodule is used for cache web pages data.
Preferably, the buffer storage of the web data, for cache web pages data to predetermined position, wherein default
Position includes: local path.
The caching method and device of web data provided in an embodiment of the present invention can have in advance according to the user's choice
Selectively, dynamically the web page contents that oneself is wanted are cached, such user is again turned on the webpage, browses, checks net
When page content, it can be browsed under local path, check the web page contents, when so that user browsing again, checks web page contents, no
Network is needed again or uses local flow, and local browsing speed is faster.Certainly, it implements any of the products of the present invention or square
Method must be not necessarily required to reach all the above advantage simultaneously.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow diagram of the caching method of web data of the embodiment of the present invention;
Fig. 2 is the schematic diagram that the embodiment of the present invention selects website to be cached;
Fig. 3 is schematic diagram when selection of the embodiment of the present invention receives caching;
Fig. 4 is cache instruction of embodiment of the present invention schematic diagram;
Fig. 5 is the schematic diagram that website to be cached is selected on web site tags of the embodiment of the present invention page;
Fig. 6 is the structural schematic diagram of the buffer storage of web data of the embodiment 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 described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention dynamically caches the web data of named web page in advance, it is, according to the user's choice, mentioning
Preceding cache user wants the web page contents of caching, when user's browsing, checking web page contents, can be browsed under local path,
Check web page contents, so that even if when not having network, user also be may browse through, checks and oneself wants browsing, checks
Web page contents.
Fig. 1 is the flow diagram of the caching method of web data of the embodiment of the present invention, referring to Fig.1 to the embodiment of the present invention
The caching method of web data is described in detail, and specifically comprises the following steps:
Browser obtains the instruction that user selects the first webpage, wherein browser may include UC browser, QQ browser
Deng any one browser, meanwhile, it in actual application, can by the client of kernel or mobile terminal website of browser
To use the caching method of web data of the present invention as browser.
First webpage refer to user want caching wait cache any webpage on website, can be not comprising sub-pages
Webpage, is also possible to the webpage comprising one or more sub-pages, and the present invention is not restricted the range of the first webpage.Its
In, website to be cached is user on a web browser according to any one portal website of itself hobby and demand selection, such as: love
Odd skill, Sina or Netease etc..
The instruction of the first webpage is selected according to user, starts the first preset cache action link of the first webpage, it is,
The instruction of the first webpage is selected according to user, the first webpage is directly opened in selection, or receives to cache the first webpage, and user can be with
It selects according to their own needs, if current time browses, the web page contents that will not be seen again later can choose directly
Open the webpage;It is either frequently necessary to the content of concern if it is oneself interested content, then can choose receiving caching
The webpage, web data is cached, the later fast browsing web page contents whenever and wherever possible of convenience.
User selects the instruction of the first webpage, can be diversified forms in actual application process, for example, user is logical
Instruction, phonetic order etc. that process control is sent too far can be pressed in a kind of preferred implementation of the invention by insertion
Button, the instruction that user sends the first webpage of selection realize that click directly the first webpage of opening first is slow by clicking button
Deposit the corresponding first user's operation button of link, then start linking on the first webpage with the first caching, directly open this first
Webpage;The second caching for clicking selection receiving the first webpage of caching links corresponding second user operation button, then starts receiving
The the second caching link for caching the first webpage, into the process for caching first webpage, also opened while into caching this
One webpage.Fig. 2 is the schematic diagram that the embodiment of the present invention selects website to be cached, referring to shown in Fig. 2, on website 2 to be cached, including
Webpage 1, webpage 2 22, webpage 3 23, webpage 4 24, webpage 5 25 and webpage 6 26, in actual application, first
Webpage can be any webpage in webpage 1, webpage 2 22, webpage 3 23, webpage 4 24, webpage 5 25 and webpage 6 26.
Herein, select webpage 2 22 as being described in detail for the first webpage using user.Webpage 2 22 is selected according to user
, when the mark of webpage clicking 2 22, there is the first user's operation button for being directly entered webpage 2 22 as shown in Figure 2 in instruction
201 and receive cache web pages 2 22 second user operation button 202 dialog box, be supplied to user, user can be more convenient
Ground is selected by clicking different buttons.Two for directly opening the first webpage and receiving the first webpage of caching are provided here
Button can reduce the range of choice of user, simplify the selection course of user.Starting receives the second caching of the first webpage of caching
Link can hereafter describe in detail, here just not into the content that stresses of process and the embodiment of the present invention of caching
It repeats.
In the second caching link for receiving user's selection, that is, receive the caching link of the first webpage of caching, starting
It links corresponding first preset cache operation with the second caching to index, it is, being linked according to the second caching, user be can choose
Caching form: caching text, caching text and picture or caching text, picture and video, in actual application, caching
Form is not limited solely to these three forms, and user can select caching form according to demand.Because caching text, caching text
It is common in practical application and common several forms with picture, caching text, picture and video these types form, so this hair
Bright embodiment emphasis considers these types of form, does not describe in detail to other forms.
In a kind of achievable mode of the embodiment of the present invention, for user by clicking, selection receives the first webpage of caching
Second caching link, corresponding second user operation button, starting receive the second caching link of the first webpage of caching, are receiving
When the second user operation button selected to user, the second caching of triggering links corresponding first preset cache operation index, opens
It is dynamic to link corresponding first preset cache operation index with the second caching, that is, it receives user and clicks second user operation button
When operation, starting the first preset cache operation index include caching text index, caching text and picture index and
One of text, picture and index of video are cached, i.e. selection caching text or caching text and picture either caches
Text, picture and video.As shown in figure 3, occurring including the third for caching text when clicking second user operation button 202
User's operation button 301, the fourth user operation button 302 of caching text and picture and caching text, picture and video
5th user's operation button 303, is supplied to user, and user is more easily selected.
Another in the embodiment of the present invention can be in realization mode, starting the first preset cache operation index, Ke Yitong
Click button is crossed to realize, preparatory will cache the index of text, the index and caching text, picture of caching text and picture
Compilation of index with video such as caches the corresponding third user's operation button of index, the caching text of text at corresponding button
With the corresponding 5th user behaviour of index for indexing corresponding fourth user operation button, caching text, picture and video of picture
Make button.User clicks third user's operation button, then starts the index of caching text, selection caching text;User clicks the
Four user's operation buttons then start the index of caching text and picture, selection caching text and picture;User clicks the 5th user
Operation button then starts the index of caching text, picture and video, selection caching text, picture and video.
According to an index in the first preset cache of selection operation index, the i.e. index of caching text, caching text
One in the index of picture and the index of caching text, picture and video, cache the first preset cache operation of selection
The web data in corresponding first webpage of an index in index, it is, according to the user's choice, with user's selection
Caching form cache user wants the web data of caching.Which of specific selection the first preset cache operation index,
It is that user is independently selected according to their own needs.For example, user is a novel fan, and under normal circumstances, it is small
The main contents said all are textual forms, and user reads novel and also mainly reads text, such as: the reading text of TXT format,
So user may be selected by caching text, only caching text can be obtained by the content that user wants, and there is no need to cache it
His useless advertising pictures etc., so selection caching text, so that not only can satisfy the demand of user, but also are reduced
Memory space required for the complexity and storage web data of cache web pages data.In addition, if user is an individual
Fan is educated, needs to pay close attention to sports news, then not only needs to pay close attention to the content of textual form, while also wanting to pay close attention to graphic form
Content, then user can choose caching text and picture, such user can completely, comprehensively check oneself concern,
Want the content checked.Either, user thinks that some contents in text or picture, video in webpage do not act on,
Later when checking web page contents, also It is not necessary to check again, therefore the property of can choose does not cache these contents.It needs to illustrate
It is that the embodiment of the present invention does not limit the caching form of user, caching text still caches text and picture is either slow
Text, picture and video, or other forms are deposited, is all carried out according to the user's choice.
In a kind of achievable mode of the invention, when user has selected a rope in the first preset cache operation index
Draw, that is, after the first preset cache operation index has been determined, according to one in first preset cache of selection operation index
A index obtains the network address wait cache the first webpage on website, according to the network address of first webpage, gets the first webpage
Web data, and then cache web pages data, wherein the method for cache web pages data can be it is all may be implemented it is data cached
Caching method, the present invention are not restricted the method for cache web pages data.
Cache web pages data to predetermined position, such as: the mobile terminals such as mobile phone, palm PC iPAD are answered actual
With in the process, the web data of caching can be saved into the local path set, be also possible to be not provided with guarantor
When depositing path, the web data of caching is saved to default local path.
The caching method of the web data of the embodiment of the present invention, according to the user's choice, in WIFI (Wireless
Fidelity, Wireless Fidelity) under environment either under the good environment of network, selectively, dynamically oneself is wanted in advance
Web page contents cache, and such user is again turned on the webpage, can be under local path when browsing, checking web page contents
It browses, check the web page contents, when so that user browsing again, checks web page contents, it is no longer necessary to which network uses local stream
Amount, and local browsing speed is faster.
In a kind of preferred implementation of the invention, in the instruction for obtaining and selecting according to user the first webpage, starting
First preset cache action link of the first webpage, before, the caching method of web data can also include:
Receive the instruction of triggering caching, the default website operation link of the starting web site tags page, wherein web site tags page
Face is the page of multiple website logos, and the instruction for triggering caching includes the cache instruction of user's transmission;Starting the default website
After action link, the website to be cached of user's selection where the first webpage is opened.
That is, user is equivalent to one and always refers to firstly the need of the instruction for sending triggering caching after browser opening
It enables, in actual application process, can be realized by clicking button;When browser receive the triggering caching instruction,
Start the default website operation link of the web site tags page, the web site tags page includes the mark of multiple websites, such as Fig. 4 institute
Show, on browser 401, clicks caching button 402, open the web site tags page 501 as shown in Figure 5, wherein web site tags
The page includes multiple selectable website logos, website logo 1 as shown in Figure 5, website logo 22, website logo
33, website logo 44, website logo 55 and website logo 66;When browser receives the instruction of triggering caching, choosing
Specific website is selected, i.e., for user in the specific website logo of web site tags page selection, actual application, tool is clicked in selection
The website logo of body opens the website, then the website is the website to be cached that user needs.After opening the website, user can be with
The webpage that selection website includes, that is, select the first webpage, above the process after obtaining the instruction of user's the first webpage of selection
Detailed introduction is made, has just repeated no more here.In a kind of implementation for selecting website logo, user clicks website logo
Afterwards, can show a selection dialog box, user select to be directly entered under dialog box website perhaps receive to cache website or
It is corresponding there are two button, by clicking, button selection is directly entered the website to user or receiving caches the website, such as Fig. 5
Shown, when selecting website logo 22, then the corresponding website of website logo 22 is website to be cached, and clicks the web site tags page
On website logo 22, then occur include be directly entered website button 502 receive caching website button 503, user passes through
Button selection is clicked, website is directly entered or receives caching website.
In the preferred implementation of another of the invention, when positioned at the second caching link selected in reception user,
After starting links corresponding first preset cache operation index with the second caching, the caching side of web data of the embodiment of the present invention
Method can also include:
In the second caching link for receiving user's selection, and there are the links of at least one sub-pages judging the first webpage
When, the second preset cache action link of at least one sub-pages link of the first webpage of starting, wherein the second preset cache behaviour
Link at least includes: the direct third caching link for opening sub-pages link and the 4th caching for receiving caching sub-pages link
Link;
In the 4th caching link for receiving user's selection, the second preset cache of the 4th caching link of starting operates rope
Draw, wherein the second preset cache operation index at least include: cache text index, caching text and picture index and
Cache the index of text, picture and video;
It is default according to the second of selection when the second preset cache for receiving user's selection operates an index in index
An index in caching index caches an index corresponding first in the second preset cache operation index of selection
Data in the sub-pages of webpage.
It is when the first webpage has the link of at least one sub-pages, i.e., such as new in view of a website has plurality of layers structure
Wave, click enter to be later the Level-2 columns such as news, sport, finance and economics;Such as Level-2 column sport is clicked, possible also NBA,
The three-levels column such as CBA, the three-levels such as NBA, CBA column can also have level Four column, and so on, it is also possible to have the column of more stages
Mesh.In actual application, when webpage is there are when sub-pages, user can select only to cache the webpage according to demand, or
While caching the webpage, the sub-pages of the webpage are cached, in addition, user, which also can choose, only caches interested sub-pages
Web data, these situations are all allowed.When user's selection cache web pages, then the net for selecting to want caching is only needed
Page, is cached according to the method for the web data of above-mentioned the first webpage of caching;When user both needs to cache the webpage, simultaneously
The sub-pages for wanting to cache the webpage again when then selecting web cache, select the sub-pages for the webpage for wanting caching to be cached, delay
The method deposited is the same with the method for the web data of above-mentioned the first webpage of caching;When user only needs to cache interested subnet
When the web data of page, does not then select starting to receive the link of cache web pages, directly open the link of webpage, that is, be directly entered net
Page, then sequentially enters sub- grade column, until selection receives to cache the sub-pages when choosing oneself interested sub-pages
Link, caches the sub-pages.Such as selection website Sina, the Level-2 column sport being then directly entered under the Sina of website, then
NBA is selected, finally selection starting receives the link (reselection is not directly entered) of the corresponding sub-pages of caching NBA title, in this way
The NBA plate oneself liked can be only cached, so that the web data of caching can also be reduced, reduces the storage of hard disk
Pressure.Similarly, the method for caching sub-pages here is identical with the above-mentioned method of web data of the first webpage of caching, here
Just repeat no more.
It is preferably implemented in mode in one kind of the invention, when user selects caching text, obtains the need of user's selection
The network address to cache web pages to be cached accesses network address to cache web pages, and is returned the result, judgement return the result whether
Comprising link, does not include link if returning the result, directly cached, web data is saved in the local path set
When being either not provided with path, it is saved in the default path of system;If returning the result comprising link, envelope will be returned the result first
It is attached in list, the object in list is the key-value pair of key-value mode, and key indicates data type, and value indicates data
The corresponding web data of type, then, judge encapsulation after return the result in data data type, if data type
Key is text, then caches the corresponding web data of text type.In actual application process, returning after encapsulation
If return result further include link, the corresponding value of data type key be URL (Uniform Resource Locator,
Uniform resource locator) namely web data address.
User selects caching text and picture to select processing when caching text essentially identical with user, and difference exists
In, judge encapsulation after return the result in data data type, if data type key is text and picture, will
The corresponding web data of text type and the corresponding web data of picture type, are cached.
When user selects caching text, picture and when video, also with it is essentially identical when user selects caching text, it is different
Place is, the data type of the data in returning the result after judging encapsulation, if data type key be text, picture and
When video, then by the corresponding web data of text type and the corresponding web data of picture type and the corresponding net of video type
Page data is cached, in addition, needing to judge whether video allows to download when user selects buffered video, is allowed in video
When downloading, the corresponding web data of video type could be cached.
The caching method of web data provided in an embodiment of the present invention, according to the user's choice, the finger of buffered in advance selection
After determining webpage, when accessing webpage again, even if also may browse through without network, checking web page contents;The situation of network signal difference
Under, the good web page contents of local browsing buffered in advance, faster, user experience is more preferable for access speed;Mobile data traffic used when
It waits browsing, check the good webpage of buffered in advance, do not need again additional increase flow packet, save rate and access speed faster.
The embodiment of the invention also discloses a kind of buffer storage of web data, Fig. 6 is web data of the embodiment of the present invention
Buffer storage structural schematic diagram, be described in detail referring to the buffer storage of the web data of Fig. 6 embodiment of the present invention, wrap
Include following module:
Start link module 601, for obtaining and selecting according to user the instruction of the first webpage, starts the of the first webpage
One preset cache action link, wherein select the first web page instructions for the instruction wait cache the first webpage on website, first is pre-
If caching link at least includes: that direct the first caching for opening the first webpage links and receive the second of the first webpage of caching
Caching link.
First starting index module 602, when for being linked in the second caching for receiving user's selection, starting and the second caching
Link corresponding first preset cache operation index, wherein the first preset cache operation index at least includes: the rope for caching text
Draw, cache the index of text and picture and the index of caching text, picture and video.
The buffer storage of web data of the embodiment of the present invention, according to the user's choice, dynamically buffered in advance user selects
Named web page web data, such as text, picture or the video of cache web pages under WIFI environment, so that user accesses next time
When the webpage, do not need occupied bandwidth, accessible web page contents without network, meanwhile, local browsing speed faster,
Mobile phone user can also save mobile data traffic, and user experience is more preferable.
It should be noted that the device of the embodiment of the present invention is using the device of the caching method of above-mentioned web data, then
All embodiments of the caching method of above-mentioned web data are suitable for the device, and can reach the same or similar beneficial to effect
Fruit.
Preferably, the buffer storage of web data disclosed by the embodiments of the present invention, further includes:
Cache instruction module is received, for receiving the instruction of triggering caching, the default website behaviour of the starting web site tags page
It links, wherein the web site tags page is the page of multiple website logos, and the instruction for triggering caching includes the caching of user's transmission
Instruction.
Website Module is opened, for opening user's choosing where the first webpage after starting default website operation link
The website to be cached selected.
Preferably, the buffer storage of web data disclosed by the embodiments of the present invention, further includes:
Promoter Web page module in the second caching link for receiving user's selection, and is judging that the first webpage deposits
In the link of at least one sub-pages, the second preset cache operational chain of at least one sub-pages link of the first webpage of starting
It connects, wherein the second preset cache action link includes at least: directly opening the third caching link of sub-pages link and receive slow
Deposit the 4th caching link of sub-pages link.
Second starting index module, when for being linked in the 4th caching for receiving user's selection, the 4th caching link of starting
The second preset cache operate index, wherein the second preset cache operation index at least includes: cache text index, caching
The index of the index and caching text, picture and video of text and picture.
Second cache module, when for operating an index in index in the second preset cache for receiving user's selection,
According to an index in the second preset cache of selection operation index, cache in the second preset cache operation index of selection
Data in the sub-pages of corresponding first webpage of one index.
Preferably, in the buffer storage of web data disclosed by the embodiments of the present invention, start link module, comprising:
First start button submodule links corresponding first with the first caching on the first webpage for starting and showing
User's operation button, starting and display link corresponding second user operation button with the second caching.
Preferably, in the buffer storage of web data disclosed by the embodiments of the present invention, the first starting index module includes:
Submodule is triggered, for when receiving the second user operation button of user's selection, triggering second to cache link pair
The the first preset cache operation index answered.
Preferably, in the buffer storage of web data disclosed by the embodiments of the present invention, the first starting index module includes:
Second start button submodule, for starting and showing corresponding with the caching index of text the on the first webpage
Three user's operation buttons, starting simultaneously show fourth user operation button corresponding with the index of caching text and picture, Yi Jiqi
It moves and shows the 5th user's operation button corresponding with caching text, the index of picture and video.
Preferably, in the buffer storage of web data disclosed by the embodiments of the present invention, the first cache module includes:
Network address submodule is obtained, for obtaining the first webpage according to an index in the first preset cache operation index
Network address.
Web data submodule is obtained, for the network address according to the first webpage, is obtained in the first preset cache operation index
Corresponding first webpage of index in web data.
Cache web pages data submodule is used for cache web pages data.
Preferably, the buffer storage of web data disclosed by the embodiments of the present invention is specifically used for, and cache web pages data are to pre-
If at position, wherein predeterminated position includes: local path.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (14)
1. a kind of caching method of web data characterized by comprising
The instruction for obtaining and selecting according to user the first webpage, starts the first preset cache action link of first webpage,
Wherein, to select the instruction wait cache the first webpage on website, described first is default slow for the instruction for selecting the first webpage
It deposits action link to include at least: directly opening the first caching link of first webpage and receive to cache first webpage
Second caching link;
Receive user selection it is described second caching link when, starting with it is described second caching link corresponding first preset delay
Deposit operation index, wherein the first preset cache operation index at least includes: the index for caching text, caching text and figure
The index of piece and the index of caching text, picture and video;
It is default according to selected first when the first preset cache for receiving user's selection operates an index in index
An index in caching index, the index cached in the selected first preset cache operation index are corresponding
Web data in first webpage.
2. the caching method of web data according to claim 1, which is characterized in that selected in the acquisition and according to user
The instruction of the first webpage is selected, the first preset cache action link of first webpage is started, before, the web data delays
Deposit method further include:
Receive the instruction of triggering caching, the default website operation link of the starting web site tags page, wherein the web site tags page
Face is the page for including multiple website logos, and the instruction of the triggering caching includes the cache instruction that user sends;
After starting the default website operation link, the net to be cached of user's selection where first webpage is opened
It stands.
3. the caching method of web data according to claim 1 or 2, which is characterized in that be located at described in reception user
When the second caching link of selection, starts and link corresponding first preset cache operation index with second caching
Afterwards, the caching method of the web data further include:
In the second caching link for receiving user's selection, and there are at least one sub-pages judging first webpage
When link, start the second preset cache action link of at least one sub-pages link of first webpage, wherein described the
Two preset cache action links include at least: directly opening the third caching link of the sub-pages link and receive described in caching
4th caching link of sub-pages link;
In the 4th caching link for receiving user's selection, start the second preset cache operation of the 4th caching link
Index, wherein the second preset cache operation index at least includes: the index for caching text, the rope for caching text and picture
Regard it as and cache the index of text, picture and video;
It is default according to selected second when the second preset cache for receiving user's selection operates an index in index
An index in caching index, the index cached in the selected second preset cache operation index are corresponding
Data in the sub-pages of first webpage.
4. the caching method of web data according to claim 1 or 2, which is characterized in that starting first net
First preset cache action link of page, comprising:
Start and show and links corresponding first user's operation button, starting simultaneously with first caching on first webpage
Display links corresponding second user operation button with second caching.
5. the caching method of web data according to claim 4, which is characterized in that described in the institute for receiving user's selection
When stating the link of the second caching, starting links corresponding first preset cache operation with second caching and indexes, comprising:
When receiving the second user operation button of user's selection, it is default that triggering second caching links corresponding first
Caching index;
Start and show the third user's operation button corresponding with the caching index of text on first webpage, starting
And it shows fourth user operation button corresponding with the index of the caching text and picture or starting and shows and delay with described
Deposit the corresponding 5th user's operation button of index of text, picture and video.
6. the caching method of web data according to claim 1 or 2, which is characterized in that described according to selected
An index in first preset cache operation index caches a rope in the selected first preset cache operation index
Draw the web data in corresponding first webpage, comprising:
According to an index in selected first preset cache operation index, the network address of first webpage is obtained;
According to the network address of first webpage, the index obtained in the selected first preset cache operation index is corresponded to
First webpage in web data;
Cache the web data.
7. the caching method of web data according to claim 6, which is characterized in that the caching selected first
The web data in corresponding first webpage of an index in preset cache operation index, comprising:
The web data is cached to predetermined position, wherein the predeterminated position includes: local path.
8. a kind of buffer storage of web data characterized by comprising
Start link module, for obtaining and selecting according to user the instruction of the first webpage, the first of the first webpage of starting is default
Caching link, wherein select the first web page instructions for the instruction wait cache the first webpage on website, the first preset cache
Action link includes at least: directly opening the first caching link of the first webpage and receives the second caching chain of the first webpage of caching
It connects;
First starting index module, in the second caching link for receiving user's selection, starting to be cached with second and linked pair
The the first preset cache operation index answered, wherein it includes: the index for caching text that the operation of the first preset cache, which indexes at least, slow
Deposit the index of text and picture and the index of caching text, picture and video;
First cache module, when for operating an index in index in the first preset cache for receiving user's selection, according to
An index in the first preset cache operation index of selection, caches one in the first preset cache operation index of selection
Index the web data in corresponding first webpage.
9. the buffer storage of web data according to claim 8, which is characterized in that the buffer storage of the web data
Further include:
Cache instruction module is received, for receiving the instruction of triggering caching, starts the default website operation chain of the web site tags page
It connects, wherein the web site tags page is the page for including multiple website logos, and the instruction for triggering caching includes the caching of user's transmission
Instruction;
Website Module is opened, for opening user's selection where the first webpage after starting default website operation link
Website to be cached.
10. the buffer storage of web data according to claim 8 or claim 9, which is characterized in that the caching of the web data
Device further include:
Promoter Web page module when for linking in the second caching for receiving user's selection, and is judging the first webpage in the presence of extremely
When a few sub- web page interlinkage, the second preset cache action link of at least one sub-pages link of the first webpage of starting,
In, the second preset cache action link includes at least: directly opening the third caching link of sub-pages link and receives caching
4th caching link of web page interlinkage;
Second starting index module, in the 4th caching link for receiving user's selection, the of the 4th caching link of starting
Two preset caches operation index, wherein the second preset cache operation index at least includes: the index for caching text, caching text
With the index of picture and the index of caching text, picture and video;
Second cache module, when for operating an index in index in the second preset cache for receiving user's selection, according to
An index in the second preset cache operation index of selection, caches one in the second preset cache operation index of selection
Index the data in the sub-pages of corresponding first webpage.
11. the buffer storage of web data according to claim 8 or claim 9, which is characterized in that the starting link module is also
Include:
First start button submodule links corresponding first user with the first caching on the first webpage for starting and showing
Operation button, starting and display link corresponding second user operation button with the second caching.
12. the buffer storage of web data according to claim 11, which is characterized in that the first starting index module
Include:
Submodule is triggered, for when receiving the second user operation button of user's selection, triggering the second caching link to be corresponding
First preset cache operation index;
Second start button submodule, the third corresponding with the caching index of text for starting and showing on the first webpage are used
Family operation button, starting simultaneously show fourth user operation button corresponding with the index of caching text and picture or starting simultaneously
Display the 5th user's operation button corresponding with caching text, the index of picture and video.
13. the buffer storage of web data according to claim 8 or claim 9, which is characterized in that the first cache module packet
It includes:
Network address submodule is obtained, for obtaining the net of the first webpage according to an index in the first preset cache operation index
Location;
Web data submodule is obtained, for the network address according to the first webpage, obtains one in the first preset cache operation index
A web data indexed in corresponding first webpage;
Cache web pages data submodule is used for cache web pages data.
14. the buffer storage of web data according to claim 13, which is characterized in that the caching of the web data fills
It sets, for cache web pages data to predetermined position, wherein predeterminated position includes: local path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611232546.5A CN106682171B (en) | 2016-12-28 | 2016-12-28 | A kind of caching method and device of web data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611232546.5A CN106682171B (en) | 2016-12-28 | 2016-12-28 | A kind of caching method and device of web data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106682171A CN106682171A (en) | 2017-05-17 |
CN106682171B true CN106682171B (en) | 2019-10-15 |
Family
ID=58871828
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611232546.5A Active CN106682171B (en) | 2016-12-28 | 2016-12-28 | A kind of caching method and device of web data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106682171B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020076B (en) * | 2017-10-31 | 2021-06-22 | 北京国双科技有限公司 | Method and device for crawling webpage data |
CN111930442B (en) * | 2020-10-09 | 2021-01-01 | 北京三快在线科技有限公司 | Page view loading method and device, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938525A (en) * | 2010-10-09 | 2011-01-05 | 安和创新科技(北京)有限公司 | Subscribed/pushed cache mechanism based system and method for wireless enterprise application |
CN102867007A (en) * | 2011-07-08 | 2013-01-09 | 腾讯科技(深圳)有限公司 | Webpage browsing method and device |
CN103870470A (en) * | 2012-12-11 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method for loading resource files of application and loading device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103870487B (en) * | 2012-12-13 | 2017-07-25 | 腾讯科技(深圳)有限公司 | Web page files processing method and mobile terminal |
-
2016
- 2016-12-28 CN CN201611232546.5A patent/CN106682171B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938525A (en) * | 2010-10-09 | 2011-01-05 | 安和创新科技(北京)有限公司 | Subscribed/pushed cache mechanism based system and method for wireless enterprise application |
CN102867007A (en) * | 2011-07-08 | 2013-01-09 | 腾讯科技(深圳)有限公司 | Webpage browsing method and device |
CN103870470A (en) * | 2012-12-11 | 2014-06-18 | 腾讯科技(深圳)有限公司 | Method for loading resource files of application and loading device |
Also Published As
Publication number | Publication date |
---|---|
CN106682171A (en) | 2017-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106339398B (en) | A kind of pre-reading method of Webpage, device and intelligent terminal | |
US20120174034A1 (en) | Method and apparatus for providing user interface in user equipment | |
CN100424694C (en) | Implementing method of network profile | |
US8041701B2 (en) | Enhanced graphical interfaces for displaying visual data | |
CN103577596B (en) | Keyword search methodology and device based on current browse webpage | |
US6788316B1 (en) | Method of designating multiple hypertext links to be sequentially viewed | |
US9223895B2 (en) | System and method for contextual commands in a search results page | |
US20070067329A1 (en) | Overloaded communication session | |
CN103780677A (en) | Method for performing classified information push and system thereof | |
US8196052B2 (en) | System and method to display a web page as scheduled by a user | |
CN101404024B (en) | Mobile terminal and method for browsing website contents through mobile terminal | |
CN105991398A (en) | Instant message IM chatting records storage method and apparatus | |
CN102880654B (en) | Method for dynamically updating favorites of information terminal browser | |
CN106055603B (en) | Browser access network address recommended method, client and system based on VPN | |
CN102792244A (en) | Preview functionality for increased browsing speed | |
US6639610B1 (en) | Method and apparatus for assigning URLs to graphical objects in a web page | |
CN105487777A (en) | Mobile search and news switching method and device based on gesture operation | |
US20030187954A1 (en) | Method and apparatus for downloading e-book via WAP | |
CN102541853A (en) | Method and device which are capable of obtaining application information by utilizing browser address bar | |
CN104423991A (en) | Webpage loading and webpage data providing method and device of mobile terminal | |
WO2009085242A2 (en) | Auto toolbar | |
CN106649787A (en) | Method and device for filtering advertisement in mobile terminal client | |
CN107105336A (en) | Data processing method and data processing equipment | |
CN104808889A (en) | Page switching method and electronic equipment | |
CN103838748A (en) | Method and system for showing browser new label page |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |