CN106682171A - Caching method and device of webpage data - Google Patents
Caching method and device of webpage data Download PDFInfo
- Publication number
- CN106682171A CN106682171A CN201611232546.5A CN201611232546A CN106682171A CN 106682171 A CN106682171 A CN 106682171A CN 201611232546 A CN201611232546 A CN 201611232546A CN 106682171 A CN106682171 A CN 106682171A
- Authority
- CN
- China
- Prior art keywords
- caching
- index
- webpage
- link
- buffer memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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 invention provides a caching method and a caching device of webpage data. The caching method of the webpage data includes: obtaining an instruction for selecting a first webpage according to the user, and starting a first preset cache operation link of the first webpage; when receiving a second cache link selected by the user, starting a first preset cache operation index corresponding to the second cache link; when receiving an index in the first preset cache operation index selected by the user, caching the webpage data in the first webpage corresponding to the index in the selected first preset cache operation index according to the index in the selected first preset cache operation index. The caching method of the webpage data can dynamically cache the webpage data of the designated webpage of the user according to selection of the user, and when the user accesses the webpage once again, the user can browse or check content of the webpage when no network or local flow exists, and simultaneously local browsing speed is high, and user experience is good.
Description
Technical field
The present invention relates to technical field of internet application, the caching method and device of more particularly to a kind of web data.
Background technology
With the continuous development of Internet technology, also more and more extensively, user can be looked into by network for the application of the Internet
Ask, browse the content of oneself concern.
But in actual application, in the case of particularly poor somewhere or in a certain period network signal, lead to
Browser or website are crossed, opening webpage needs the time for waiting longer, or even cannot open webpage so that user can not browse
Web page contents;Or when being that the set meal flow of cellphone subscriber is finished, user refuels bag unless handled new flow increasing in addition,
Otherwise have no idea browsed web content, and handling the new flow increasing bag that refuels in addition needs extra rate.In a word, due to network
Or the reason for flow so that user is at some moment or in some cases, it is impossible to by browser or website, browses certainly
Oneself wants the content for browsing.
The content of the invention
The purpose of the embodiment of the present invention is the caching method and device for providing a kind of web data, is selectively delayed in advance
Deposit web data so that in no network, user can also browse, check the web page contents for oneself wanting to browse.Concrete skill
Art scheme is as follows:
The embodiment of the invention discloses a kind of caching method of web data, including:
The instruction of the first webpage is obtained and selected according to user, starts the first preset buffer memory operational chain of first webpage
Connect, wherein, to select the instruction of the first webpage on website to be cached, described first presets for the instruction for selecting the first webpage
Caching link at least includes:Directly open the first caching link of first webpage and receive caching first webpage
Second caching link;
In the second caching link that receive user is selected, it is pre- that startup links corresponding first with the described second caching
If caching is indexed, wherein, the first preset buffer memory operation index at least includes:The index of caching text, caching text
With the index of the index and caching text, picture and video of picture;
When one in the first preset buffer memory operation index that receive user is selected indexes, according to the first of the selection
An index in preset buffer memory operation index, the index cached in the first preset buffer memory operation index of the selection are right
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 buffer memory action link, before, the caching method of the web data also includes:
The instruction of triggering caching is received, starts the default website operation link of the 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 the default website operation link is started, what the user for opening the first webpage place selected waits to cache
Website.
Preferably, start and the described second caching in the second caching link that receive user is selected positioned at described
After linking corresponding first preset buffer memory operation index, the caching method of the web data also includes:
In the second caching link that receive user is selected, and judging that it is sub that first webpage has at least one
During web page interlinkage, start the second preset buffer memory action link of at least one sub-pages link of first webpage, wherein, institute
Stating the second preset buffer memory action link at least includes:Directly open the 3rd caching link of the sub-pages link and receive caching
4th caching link of the sub-pages link;
In the 4th caching link that receive user is selected, start the second preset buffer memory of the 4th caching link
Operation index, wherein, the second preset buffer memory operation index at least includes:Cache index, caching text and the picture of text
Index and caching text, the index of picture and video;
When one in the second preset buffer memory operation index that receive user is selected indexes, according to the second of the selection
An index in preset buffer memory operation index, the index cached in the second preset buffer memory operation index of the selection are right
Data in the sub-pages of first webpage answered.
Preferably, the first preset buffer memory action link for starting first webpage, including:
Start and show corresponding first user operation button is linked, being opened with the described first caching on first webpage
Moving and showing corresponding second user operation button is linked with the described second caching.
Preferably, it is described in the second caching link that receive user is selected, start and link with the described second caching
Corresponding first preset buffer memory operation index, including:
In the second user operation button that receive user is selected, second caching link corresponding first is triggered
Preset buffer memory operation index;
Start and show on first webpage with the corresponding 3rd user operation button of index of the caching text,
Start and show fourth user operation button corresponding with the index of the caching text and picture or start and show and institute
State caching text, the corresponding 5th user operation button of the index of picture and video.
Preferably, the index operated according to the first preset buffer memory of the selection in index, caches the choosing
A web data indexed in corresponding first webpage in the first preset buffer memory operation index selected, including:
An index in index is operated according to the first preset buffer memory of the selection, the net of first webpage is obtained
Location;
According to the network address of first webpage, an index in the first preset buffer memory operation index of the selection is obtained
Web data in corresponding first webpage;
Cache the web data.
Preferably, an index in the first preset buffer memory operation index of the caching selection corresponding described the
Web data in one webpage, including:
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, including:
Start link module, for obtaining and selecting according to user the instruction of the first webpage, start the first of the first webpage
Preset buffer memory action link, wherein, the instruction that the first web page instructions are the first webpage on website to be cached is selected, first presets
Caching link at least includes:Directly open the first caching link of the first webpage and receive the second of the first webpage of caching and delay
Deposit link;
First starts index module, when the second caching for selecting in receive user is linked, starts and the second caching chain
Corresponding first preset buffer memory operation index is connect, wherein, the first preset buffer memory operation index at least includes:The rope of caching text
Draw, cache the index of the index and caching text, picture and video of text and picture;
First cache module, when the first preset buffer memory for selecting in receive user operates an index in index,
According to an index in the first preset buffer memory operation index for selecting, cache in the first preset buffer memory operation index of selection
One web data indexed in corresponding first webpage.
Preferably, the buffer storage of the web data also includes:
Order caching instruction module, for receiving the instruction of triggering caching, starts the default website behaviour of the web site tags page
Link, 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, after default website operation link is started, opening user's choosing that the first webpage is located
The website to be cached selected.
Preferably, the buffer storage of the web data also includes:
Promoter Web page module, for select in receive user the second caching link when, and judging that the first webpage deposits
When at least one sub-pages are linked, start the second preset buffer memory operational chain of at least one sub-pages link of the first webpage
Connect, wherein, the second preset buffer memory action link at least includes:Directly open the 3rd caching link of sub-pages link and receive slow
Deposit the 4th caching link of sub-pages link;
Second starts index module, when the 4th caching for selecting in receive user is linked, starts the 4th caching link
The second preset buffer memory operation index, wherein, the second preset buffer memory operation index at least include:The index of caching text, caching
The index of the index and caching text, picture and video of text and picture;
Second cache module, when the second preset buffer memory for selecting in receive user operates an index in index,
According to an index in the second preset buffer memory operation index for selecting, cache in the second preset buffer memory operation index of selection
Data in one sub-pages for indexing corresponding first webpage.
Preferably, the startup link module also includes:
First start button submodule, for starting and showing that caching with first on first webpage links corresponding first
User operation button, start and show with second caching link corresponding second user operation button.
Preferably, the first startup index module includes:
Triggering submodule, for select in receive user second user operation button when, triggering second caching link it is right
The the first preset buffer memory operation index answered;
Second start button submodule, for starting and showing the index corresponding the with caching text on the first webpage
Three user operation buttons, start and show the corresponding fourth user operation button of index with caching text and picture or open
Move and show the 5th user operation button corresponding with text, the index of picture and video is cached.
Preferably, first cache module includes:
Network address submodule is obtained, for an index in index is operated according to the first preset buffer memory, the first webpage is obtained
Network address;
Web data submodule is obtained, for the network address according to the first webpage, is obtained in the first preset buffer memory operation index
A web data indexed in corresponding first webpage;
Cache web pages data submodule, for cache web pages data.
Preferably, the buffer storage of the web data, for cache web pages data to predetermined position, wherein, preset
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 selection of user
Selectively, dynamically the web page contents that oneself is wanted are cached, such user is again turned on the webpage, browses, checks net
During page content, can browse under local path, check the web page contents so that when user browses again, checks web page contents, no
Network is needed again or local flow is used, and local surfing is faster.Certainly, arbitrary product or the side of the present invention are implemented
Method must be not necessarily required to while reaching all the above advantage.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Schematic flow sheets of the Fig. 1 for the caching method of embodiment of the present invention web data;
Fig. 2 selects the schematic diagram of website to be cached for the embodiment of the present invention;
Fig. 3 is that the embodiment of the present invention selects schematic diagram when receiving caching;
Fig. 4 is embodiment of the present invention cache instruction schematic diagram;
Fig. 5 is the schematic diagram that website to be cached is selected on the embodiment of the present invention web site tags page;
Structural representations of the Fig. 6 for the buffer storage of embodiment of the present invention web data.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The embodiment of the present invention dynamically caches the web data of named web page in advance, it is, according to the selection of user, carrying
Front cache user wants the web page contents for caching, when user browses, checks web page contents, can browse under local path,
Web page contents are checked, even if so that in no network, user can also browse, check and oneself want to browse, check
Web page contents.
Schematic flow sheets of the Fig. 1 for the caching method of embodiment of the present invention web data, with reference to Fig. 1 to the embodiment of the present invention
The caching method of web data is described in detail, and specifically includes following steps:
Step 101, obtains and selects according to user the instruction of the first webpage, starts the first preset buffer memory behaviour of the first webpage
Link, wherein, select the first web page instructions to be the instruction for selecting the first webpage on website cache, the first preset buffer memory is grasped
Linking at least includes:The the first caching link for directly opening the first webpage and the second caching chain for receiving the first webpage of caching
Connect.
Browser obtains the instruction that user selects the first webpage, wherein, browser can include UC browsers, QQ browsers
Deng any one browser, meanwhile, in actual application, the client or mobile terminal website with browser as kernel can
With the caching method as browser using web data of the present invention.
First webpage refers to that user wants any webpage on the website to be cached of caching, can be not comprising sub-pages
Webpage, or the webpage comprising one or more sub-pages, the present invention are not restricted to the scope of the first webpage.Its
In, website to be cached is any one portal website that user is selected according to itself hobby and demand on a web browser, for example:Love
Strange skill, Sina or Netease etc..
The instruction of the first webpage is selected according to user, starts the first preset buffer memory action link of the first webpage, it is,
The instruction of the first webpage is selected according to user, is selected directly to open the first webpage, or is received to cache the first webpage, user can be with
Selected according to the demand of oneself, if current time is browsed, the web page contents that will not be seen again later, can be selected directly
Open the webpage;If oneself content interested or be frequently necessary to pay close attention to content, then can select to receive 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 various ways, for example, Yong Hutong in actual application process
Instruction, phonetic order of remotely control transmission etc. are crossed, in a kind of preferred implementation of the present invention, can be pressed by embedded
Button, user send and select the instruction of the first webpage to realize by clicking on button, and click on directly the first webpage of opening first is delayed
Deposit the corresponding first user operation button of link, then start linking with the first caching on the first webpage, directly open this first
Webpage;Click on and select the corresponding second user operation button of the second caching link for receiving the first webpage of caching, then start and receive
Cache the second caching link of the first webpage, into the process for caching first webpage, also open while into caching this
One webpage.Fig. 2 selects the schematic diagram of website to be cached for the embodiment of the present invention, with reference to shown in Fig. 2, on website to be cached 2, 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 the arbitrary webpage in webpage 1, webpage 2 22, webpage 3 23, webpage 4 24, webpage 5 25 and webpage 6 26.
Here, webpage 2 22 is selected to be described in detail as a example by the first webpage using user.Webpage 2 22 is selected according to user
, when the mark of webpage clicking 2 22, there is the as shown in Figure 2 first user operation button for being directly entered webpage 2 22 in instruction
201 and receive cache web pages 2 22 second user operation button 202 dialog box, there is provided to user, user can be more convenient
Ground is selected by clicking on different buttons.Two for directly opening the first webpage and receiving the first webpage of caching are provided here
Button, can reduce user the range of choice, simplify user selection course.Start the second caching for receiving the first webpage of caching
Link, into the process of caching, and the content that the embodiment of the present invention is stressed, can hereafter describe in detail, here just not
Repeat.
Step 102, in the second caching link that receive user is selected, it is pre- that startup links corresponding first with the second caching
If caching is indexed, wherein, the first preset buffer memory operation index at least includes:Cache index, caching text and the figure of text
The index of the index and caching text, picture and video of piece.
In the second caching link that receive user is selected, that is, receive to cache the caching link of the first webpage, start
Corresponding first preset buffer memory operation index is linked with the second caching, it is, according to the second caching link, user can select
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 and conventional several forms in practical application with picture, caching text, picture and video this several form, so this
Bright embodiment emphasis considers this several form, other forms is not described in detail.
In a kind of achievable mode of the embodiment of the present invention, user selects to receive the first webpage of caching by clicking on
Second caching link, corresponding second user operation button start the second caching link for receiving the first webpage of caching, are receiving
During the second user operation button selected to user, triggering the second caching link corresponding first preset buffer memory operation index is opened
It is dynamic to link corresponding first preset buffer memory operation index with the second caching, that is, receive user and click on second user operation button
During operation, start the first preset buffer memory operation index include caching text index, caching text and picture index and
One kind in the index of caching text, picture and video, that is, select caching text or caching text and picture or caching
Text, picture and video.As shown in figure 3, when second user operation button 202 is clicked on, appearance includes caching the 3rd of text
User operation button 301, the fourth user operation button 302 of caching text and picture, and caching text, picture and video
5th user operation button 303, there is provided to user so that user more easily can be selected.
In another achievable mode of the embodiment of the present invention, start the first preset buffer memory operation index, Ke Yitong
Cross click button to realize, advance will cache index, the index of caching text and picture and caching text, the picture of text
With the compilation of index of video into corresponding button, the such as corresponding 3rd user operation button of index of caching text, caching text
The corresponding 5th user behaviour with the index of the corresponding fourth user operation button of index of picture, caching text, picture and video
Make button.User clicks on the 3rd user operation button, then start the index of caching text, selects caching text;User clicks on the
Four user operation buttons, then start the index of caching text and picture, selects caching text and picture;User clicks on the 5th user
Operation button, then start the index of caching text, picture and video, selects caching text, picture and video.
Step 103, when one in the first preset buffer memory operation index that receive user is selected indexes, according to what is selected
An index in first preset buffer memory operation index, the index cached in the first preset buffer memory operation index of selection are right
The web data in the first webpage answered.
According to an index in the first preset buffer memory operation index for selecting, that is, cache index, the caching text of text
One with the index of the index and caching text, picture and video of picture, caches the first preset buffer memory operation of selection
One in index indexes the web data in corresponding first webpage, it is, according to the selection of user, being selected with user
Caching form cache user wants the web data for caching.Which in indexing be the first preset buffer memory of specific selection operate,
It is that user carries out autonomous selection according to the demand of oneself.For example, user is a novel fan, and generally, it is little
The main contents said all are textual forms, and user's reading novel is also mainly reads text, for example:The reading text of TXT forms,
So user may be selected by caching text, only caching text can be obtained by the content that user wants, and avoid the need for caching which
His useless advertising pictures etc., so select caching text so that not only can meet the demand of user, and reduce
Memory space required for the complexity and storage web data of cache web pages data.In addition, if user is one individual
Fan is educated, needs to pay close attention to sports news, then not only need to pay close attention to the content of textual form, while also wanting to pay close attention to graphic form
Content, then user can select to cache text and picture, such user just intactly, comprehensively can check oneself concern,
Want the content checked.Or, user thinks that text or some contents in picture, video in webpage are not acted on,
When checking web page contents later, also there is no need to check again, therefore selectively can not cache these contents.Need explanation
It is that the embodiment of the present invention is not limited to the caching form of user, caching text still caches text and picture or delays
Text, picture and video, or other forms are deposited, is carried out according to the selection of user.
In a kind of achievable mode of the present invention, when user have selected a rope in the first preset buffer memory operation index
Draw, that is, after determining the first preset buffer memory operation index, according in the first preset buffer memory operation index for selecting
Individual index, obtains the network address of the first webpage on website to be cached, and 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 can realize it is data cached
Caching method, the present invention are not restricted to the method for cache web pages data.
Cache web pages data to predetermined position, for example:The mobile terminals such as mobile phone, palm PC iPAD, should in actual
With during, the web data of caching can be preserved into the local path for having set, or, be not provided with protecting
When depositing path, the web data of caching is preserved to acquiescence local path.
The caching method of the web data of the embodiment of the present invention, according to the selection of user, in WIFI (Wireless
Fidelity, Wireless Fidelity) under environment or under the good environment of network, selectively, dynamically oneself is wanted in advance
Web page contents are cached, and such user is again turned on the webpage, when browsing, checking web page contents, can be under local path
Browse, check the web page contents so that when user browses again, checks web page contents, it is no longer necessary to which network is flowed using local
Amount, and local surfing is faster.
In a kind of preferred implementation of the present invention, obtaining and according to the instruction of user's the first webpage of selection, starting
First preset buffer memory action link of the first webpage, before, the caching method of web data can also include:
The instruction of triggering caching is received, starts the default website operation link of the 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 that the first webpage is located is opened.
That is, after browser is opened, user always refers to equivalent to one firstly the need of the instruction for sending triggering caching
Order, in actual application process, can be realized by clicking on button;When browser receives the instruction of the triggering caching,
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 institutes
Show, on browser 401, click on 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 as shown in Figure 51, website logo 22, website logo
33, website logo 44, website logo 55 and website logo 66;When browser receives the instruction of the triggering caching, choosing
Select specific website, i.e. user and specific website logo is selected in the web site tags page, in actual application, select to click on tool
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 for selecting website to include, that is, select the first webpage, obtains above the process after user selects the instruction of the first webpage
Detailed introduction is made, has just repeated no more here.In selecting a kind of implementation of website logo, user clicks on website logo
Afterwards, a selection dialog box can be shown, user selects to be directly entered website under dialog box or receives caching website, or
Be it is corresponding have two buttons, user is by clicking on button and selecting to be directly entered the website or receive to cache the website, such as Fig. 5
Shown, when website logo 22 are selected, then 22 corresponding website of website logo is website to be cached, and clicks on the web site tags page
On website logo 22, then occur including be directly entered website 502 order caching website of button button 503, user passes through
Click on button to select, be directly entered website or receive caching website.
In another preferred implementation of the present invention, when linking positioned at the second caching selected in receive user,
Start after linking corresponding first preset buffer memory operation index with the second caching, the caching side of embodiment of the present invention web data
Method can also include:
In the second caching link that receive user is selected, and judging the presence at least one sub-pages link of the first webpage
When, start the second preset buffer memory action link of at least one sub-pages link of the first webpage, wherein, the second preset buffer memory behaviour
Linking at least includes:The 3rd caching link for directly opening sub-pages link and the 4th caching for receiving caching sub-pages link
Link;
In the 4th caching link that receive user is selected, start the second preset buffer memory operation rope of the 4th caching link
Draw, wherein, the second preset buffer memory operation index at least includes:Caching text index, caching text and picture index and
The index of caching text, picture and video;
When one in the second preset buffer memory operation index that receive user is selected indexes, preset according to second for selecting
An index in caching index, caches an index corresponding first in the second preset buffer memory operation index of selection
Data in the sub-pages of webpage.
When the first webpage there are at least one sub-pages to link, i.e., many Rotating fields are had in view of a website, it is such as new
Wave, click enter to be the Level-2 columns such as news, physical culture, finance and economics afterwards;For example click on Level-2 column physical culture, may also have NBA,
The three-level columns such as the three-level column such as CBA, NBA, CBA can also have level Four column, by that analogy, it is also possible to have the hurdle of more stages
Mesh.In actual application, when webpage has 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 can also select only to cache sub-pages interested
Web data, these situations are all allowed.When user selects a cache web pages, then the net for selecting to want to cache is only needed to
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, while
Want again to cache the sub-pages of the webpage, then, when selecting web cache, selection is wanted the sub-pages of the webpage for caching and cached, and delays
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 subnet interested
During the web data of page, then do not select to start the link for receiving cache web pages, directly open the link of webpage, that is, be directly entered net
Page, then sequentially enters sub- level column, until when choosing oneself sub-pages interested, selecting to receive to cache the sub-pages
Link, caches the sub-pages.Such as selection website Sina, the Level-2 column physical culture being then directly entered under the Sina of website, then
NBA is selected, finally selects to start the link (reselection is not directly entered) for receiving the corresponding sub-pages of caching NBA titles, so
The NBA plates oneself liked just 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 method for the web data of above-mentioned the first webpage of caching, here
Just repeat no more.
Preferably implement in mode in one kind of the present invention, when user selects caching text, obtain the need that user selects
The to be cached network address for treating cache web pages, access treat the network address of cache web pages, and obtain returning result, whether judge returning result
Comprising link, if returning result is directly cached, web data is saved in the local path for setting not comprising link
Or when being not provided with path, it is saved in the default path of system;If returning result includes link, first returning result is sealed
It is attached in list, key-value pair of the object in list for key-value modes, key represent data type, and value represents data
The corresponding web data of type, then, the data type of the data in returning result after judging to encapsulate, if data type
Key is text, then cache text type corresponding web data.In actual application process, returning after encapsulation
If return result also include link, the corresponding value of data type key be URL (Uniform Resource Locator,
URL), namely the address of web data.
User selects caching text and picture to select process during caching text essentially identical with user, and difference exists
In, the data type of the data in returning result after judging to encapsulate, if data type key is text and picture, will
The corresponding web data of text type and the corresponding web data of picture/mb-type, are cached.
It is when user selects caching text, picture and video, also essentially identical with when user selects caching text, it is different
Part be, judge encapsulation after returning result in data data type, if data type key be text, picture and
During video, then by text type corresponding web data and the corresponding web data of picture/mb-type and the corresponding net of video type
Page data, is cached, in addition, when user selects buffered video, needing to judge whether video allows to download, allowing in video
During download, 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 finger that the selection of user, buffered in advance are selected
After determining webpage, when accessing webpage again, even if no network, it is also possible to browse, check web page contents;The situation of network signal difference
Under, the good web page contents of buffered in advance are locally browsed, faster, Consumer's Experience is more preferable for access speed;Mobile phone flow used when
Time is browsed, checks the good webpage of buffered in advance, it is not necessary to increase flow bag extra again, saves rate and access speed faster.
The embodiment of the invention also discloses a kind of buffer storage of web data, Fig. 6 is embodiment of the present invention web data
Buffer storage structural representation, be described in detail with reference to the buffer storage of the web data of Fig. 6 embodiment of the present invention, wrap
Include such as lower module:
Start link module 601, for obtaining and selecting according to user the instruction of the first webpage, start the of the first webpage
One preset buffer memory action link, wherein, the instruction that the first web page instructions are the first webpage on website to be cached is selected, first is pre-
If caching link at least includes:Directly open the first caching link of the first webpage and receive the second of the first webpage of caching
Caching link.
First starts index module 602, when the second caching for selecting in receive user is linked, starts and the second caching
Corresponding first preset buffer memory operation index is linked, wherein, the first preset buffer memory operation index at least includes:The rope of caching text
Draw, cache the index of the index and caching text, picture and video of text and picture.
First cache module 603, during the first preset buffer memory operation for selecting in receive user is indexed are indexed
When, according to an index in the first preset buffer memory operation index for selecting, cache the first preset buffer memory operation index of selection
In a web data indexed in corresponding first webpage.
The buffer storage of embodiment of the present invention web data, according to the selection of user, dynamically buffered in advance user selection
Named web page web data, the text of cache web pages, picture or video such as under WIFI environment so that user next time access
During the webpage, it is not necessary to occupied bandwidth, even if no network can also access web page contents, meanwhile, local surfing faster,
Cellphone subscriber can also save mobile phone flow, and Consumer's Experience is more preferable.
It should be noted that the device of the embodiment of the present invention is the device of the caching method using above-mentioned web data, then
All embodiments of the caching method of above-mentioned web data are applied to the device, and can reach same or analogous beneficial effect
Really.
Preferably, the buffer storage of web data disclosed in the embodiment of the present invention, also includes:
Order caching instruction module, for receiving the instruction of triggering caching, starts the default website behaviour of the web site tags page
Link, 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, after default website operation link is started, opening user's choosing that the first webpage is located
The website to be cached selected.
Preferably, the buffer storage of web data disclosed in the embodiment of the present invention, also includes:
Promoter Web page module, for select in receive user the second caching link when, and judging that the first webpage deposits
When at least one sub-pages are linked, start the second preset buffer memory operational chain of at least one sub-pages link of the first webpage
Connect, wherein, the second preset buffer memory action link at least includes:Directly open the 3rd caching link of sub-pages link and receive slow
Deposit the 4th caching link of sub-pages link.
Second starts index module, when the 4th caching for selecting in receive user is linked, starts the 4th caching link
The second preset buffer memory operation index, wherein, the second preset buffer memory operation index at least include:The index of caching text, caching
The index of the index and caching text, picture and video of text and picture.
Second cache module, when the second preset buffer memory for selecting in receive user operates an index in index,
According to an index in the second preset buffer memory operation index for selecting, cache in the second preset buffer memory operation index of selection
Data in one sub-pages for indexing corresponding first webpage.
Preferably, in the buffer storage of web data disclosed in the embodiment of the present invention, start link module, including:
First start button submodule, for starting and showing that caching with first on first webpage links corresponding first
User operation button, start and show with second caching link corresponding second user operation button.
Preferably, in the buffer storage of web data disclosed in the embodiment of the present invention, the first startup index module includes:
Triggering submodule, for select in receive user second user operation button when, triggering second caching link it is right
The the first preset buffer memory operation index answered.
Preferably, in the buffer storage of web data disclosed in the embodiment of the present invention, the first startup index module includes:
Second start button submodule, for starting and showing the index corresponding the with caching text on the first webpage
Three user operation buttons, start and show the corresponding fourth user operation button of index, the Yi Jiqi with caching text and picture
Move and show the 5th user operation button corresponding with text, the index of picture and video is cached.
Preferably, in the buffer storage of web data disclosed in the embodiment of the present invention, the first cache module includes:
Network address submodule is obtained, for an index in index is operated according to the first preset buffer memory, the first webpage is obtained
Network address.
Web data submodule is obtained, for the network address according to the first webpage, is obtained in the first preset buffer memory operation index
A web data indexed in corresponding first webpage.
Cache web pages data submodule, for cache web pages data.
Preferably, the buffer storage of web data disclosed in the embodiment of the present invention specifically for, cache web pages data to pre-
If at position, wherein, predeterminated position includes:Local path.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation are made a distinction with another entity or operation, and are not necessarily required or implied these entities or deposit between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that a series of process, method, article or equipment including key elements not only will including those
Element, but also including other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of correlation, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for system reality
For applying example, as which is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (14)
1. a kind of caching method of web data, it is characterised in that include:
The instruction of the first webpage is obtained and is selected according to user, starts the first preset buffer memory action link of first webpage,
Wherein, to select the instruction of the first webpage on website to be cached, described first is default slow for the instruction for selecting the first webpage
Depositing action link at least includes:Directly open the first caching link of first webpage and receive caching first webpage
Second caching link;
In the second caching link that receive user is selected, it is default slow that startup links corresponding first with the described second caching
Operation index is deposited, wherein, the first preset buffer memory operation index at least includes:Cache index, caching text and the figure of text
The index of the index and caching text, picture and video of piece;
It is when one in the first preset buffer memory operation index that receive user is selected indexes, default according to the first of the selection
An index in caching index, the index cached in the first preset buffer memory operation index of the selection are corresponding
Web data in first webpage.
2. the caching method of web data according to claim 1, it is characterised in that select in the acquisition and according to user
Select the instruction of the first webpage, start the first preset buffer memory action link of first webpage, before, the web data it is slow
Depositing method also includes:
The instruction of triggering caching is received, starts the default website operation link of the web site tags page, wherein, the web site tags page
Face is the page of multiple website logos, and the instruction of the triggering caching includes the cache instruction that user sends;
After the default website operation link is started, the net to be cached of user's selection that first webpage is located is opened
Stand.
3. the caching method of web data according to claim 1 and 2, it is characterised in that positioned at described in receive user
During the second caching link for selecting, start and corresponding first preset buffer memory operation index is linked with the described second caching
Afterwards, the caching method of the web data also includes:
In the second caching link that receive user is selected, and judging at least one sub-pages of the first webpage presence
During link, start the second preset buffer memory action link of at least one sub-pages link of first webpage, wherein, described the
Two preset buffer memory action links at least include:The 3rd caching link and the acceptance caching for directly opening the sub-pages link is described
4th caching link of sub-pages link;
In the 4th caching link that receive user is selected, start the second preset buffer memory operation of the 4th caching link
Index, wherein, the second preset buffer memory operation index at least includes:The rope of the index, caching text and picture of caching text
Regard it as and cache the index of text, picture and video;
It is when one in the second preset buffer memory operation index that receive user is selected indexes, default according to the second of the selection
An index in caching index, the index cached in the second preset buffer memory operation index of the selection are corresponding
Data in the sub-pages of first webpage.
4. the caching method of web data according to claim 1 and 2, it is characterised in that the startup first net
First preset buffer memory action link of page, including:
Start and show corresponding first user operation button linked with the described first caching, being started simultaneously on first webpage
Show corresponding second user operation button is linked with the described second caching.
5. the caching method of web data according to claim 4, it is characterised in that the institute selected in receive user
When stating the link of the second caching, start and corresponding first preset buffer memory operation index is linked with the described second caching, including:
In the second user operation button that receive user is selected, trigger second caching link corresponding first and preset
Caching is indexed;
Start and show the 3rd user operation button corresponding with the index of the caching text on first webpage, start
And show fourth user operation button corresponding with the index of the caching text and picture or start and show slow with described
Deposit the corresponding 5th user operation button of index of text, picture and video.
6. the caching method of web data according to claim 1 and 2, it is characterised in that described according to the selection
An index in first preset buffer memory operation index, caches a rope in the first preset buffer memory operation index of the selection
Draw the web data in corresponding first webpage, including:
An index in index is operated according to the first preset buffer memory of the selection, the network address of first webpage is obtained;
According to the network address of first webpage, an index correspondence in the first preset buffer memory operation index of the selection is obtained
First webpage in web data;
Cache the web data.
7. the caching method of web data according to claim 6, it is characterised in that the first of the caching selection
A web data indexed in corresponding first webpage in preset buffer memory operation index, including:
The web data is cached to predetermined position, wherein, the predeterminated position includes:Local path.
8. a kind of buffer storage of web data, it is characterised in that include:
Start link module, for obtaining and selecting according to user the instruction of the first webpage, start the first webpage first is preset
Caching is linked, wherein, select the instruction that the first web page instructions are the first webpage on website to be cached, the first preset buffer memory
Action link at least includes:The the first caching link for directly opening the first webpage and the second caching chain for receiving the first webpage of caching
Connect;
First starts index module, and when the second caching for selecting in receive user is linked, it is right that startup is linked with the second caching
The the first preset buffer memory operation index answered, wherein, the first preset buffer memory operation index at least includes:Cache the index of text, delay
Deposit the index of the index and caching text, picture and video of text and picture;
First cache module, when the first preset buffer memory for selecting in receive user operates an index in index, according to
An index in the first preset buffer memory operation index for selecting, caches in the first preset buffer memory operation index of selection
Index the web data in corresponding first webpage.
9. the buffer storage of web data according to claim 8, it is characterised in that the buffer storage of the web data
Also include:
Order caching instruction module, for receiving the instruction of triggering caching, starts the default website operation chain of the web site tags page
Connect, wherein, the web site tags page is the page of multiple website logos, and the instruction for triggering caching includes that the caching that user sends refers to
Order;
Website Module is opened, for after default website operation link is started, opening what the user that the first webpage is located selected
Website to be cached.
10. the buffer storage of web data according to claim 8 or claim 9, it is characterised in that the caching of the web data
Device also includes:
Promoter Web page module, for select in receive user second caching link when, and judge the first webpage exist to
During a few sub- web page interlinkage, start the second preset buffer memory action link of at least one sub-pages link of the first webpage, its
In, the second preset buffer memory action link at least includes:Directly open the 3rd caching link of sub-pages link and receive caching
4th caching link of web page interlinkage;
Second starts index module, for select in receive user the 4th caching link when, start the of the 4th caching link
Two preset buffer memories operation index, wherein, the second preset buffer memory operation index at least includes:The index of caching text, caching text
With the index of the index and caching text, picture and video of picture;
Second cache module, when the second preset buffer memory for selecting in receive user operates an index in index, according to
An index in the second preset buffer memory operation index for selecting, caches in the second preset buffer memory operation index of selection
Index the data in the sub-pages of corresponding first webpage.
The buffer storage of 11. web datas according to claim 8 or claim 9, it is characterised in that the startup link module is also
Including:
First start button submodule, for starting and showing that caching with first on first webpage links corresponding first user
Operation button, start and show with second caching link corresponding second user operation button.
The buffer storage of 12. web datas according to claim 11, it is characterised in that described first starts index module
Including:
Triggering submodule, for select in receive user second user operation button when, triggering second caching link it is corresponding
First preset buffer memory operation index;
Second start button submodule, for starting and showing the 3rd use corresponding with the index of caching text on the first webpage
Family operation button, start and show the corresponding fourth user operation button of index with caching text and picture or start simultaneously
Show the 5th user operation button corresponding with text, the index of picture and video is cached.
The buffer storage of 13. web datas according to claim 8 or claim 9, it is characterised in that the first cache module bag
Include:
Network address submodule is obtained, for an index in index is operated according to the first preset buffer memory, the net of the first webpage is obtained
Location;
Web data submodule is obtained, for the network address according to the first webpage, in the first preset buffer memory operation index is obtained
The individual web data indexed in corresponding first webpage;
Cache web pages data submodule, for cache web pages data.
The buffer storage of 14. web datas according to claim 13, it is characterised in that the caching dress of the web data
Put, 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 true CN106682171A (en) | 2017-05-17 |
CN106682171B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020076A (en) * | 2017-10-31 | 2019-07-16 | 北京国双科技有限公司 | The method and apparatus that web data crawls |
CN111930442A (en) * | 2020-10-09 | 2020-11-13 | 北京三快在线科技有限公司 | Page view loading method and device, storage medium and electronic equipment |
Citations (4)
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 |
US20150278390A1 (en) * | 2012-12-13 | 2015-10-01 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for processing a webpage |
-
2016
- 2016-12-28 CN CN201611232546.5A patent/CN106682171B/en active Active
Patent Citations (4)
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 |
US20150278390A1 (en) * | 2012-12-13 | 2015-10-01 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for processing a webpage |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020076A (en) * | 2017-10-31 | 2019-07-16 | 北京国双科技有限公司 | The method and apparatus that web data crawls |
CN111930442A (en) * | 2020-10-09 | 2020-11-13 | 北京三快在线科技有限公司 | Page view loading method and device, storage medium and electronic equipment |
CN111930442B (en) * | 2020-10-09 | 2021-01-01 | 北京三快在线科技有限公司 | Page view loading method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106682171B (en) | 2019-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8612418B2 (en) | Mobile web browser for pre-loading web pages | |
US8386955B1 (en) | User-optimized content for web browsing windows | |
CN106874390B (en) | Browser history record viewing method and terminal | |
CN103577596B (en) | Keyword search methodology and device based on current browse webpage | |
US20120174034A1 (en) | Method and apparatus for providing user interface in user equipment | |
US20170323025A1 (en) | Browser acceleration method and browser device having accelerator | |
CN103577595B (en) | Keyword method for pushing and device based on current browse webpage | |
CN103577392B (en) | Keyword method for pushing and device based on current browse webpage | |
US8196052B2 (en) | System and method to display a web page as scheduled by a user | |
CN103118081B (en) | Server, client, the system and method for browsing pages in prestrain browser | |
CN104423991B (en) | Webpage, the method and device that web data is provided are loaded in mobile terminal | |
CN103246666B (en) | Web access method and device | |
CN103246678A (en) | Method and device for previewing web page contents | |
WO2014194415A1 (en) | Optimizing loading of web page based on aggregated user preferences for web page elements of web page | |
CN102591916A (en) | Webpage opening method and website system | |
CN106055603A (en) | VPN-based browser access website recommendation method and system, and client | |
CN104808889A (en) | Page switching method and electronic equipment | |
CN106547833A (en) | Web browser method and device | |
CN107229760A (en) | Storage medium, electronic installation, the display methods of web page contents and device | |
US7320107B2 (en) | Bookmark frame and method of launching browsers using the bookmark in an internet terminal | |
CN106528563A (en) | Content access method and apparatus | |
CN106936727A (en) | A kind of Webpage display process and device | |
CN104731817B (en) | A kind of webpage exhibiting method and device | |
CN106682171A (en) | Caching method and device of webpage data | |
CN104462528B (en) | Webpage picture browsing method and device based on mobile terminal |
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 |