CN107169141A - webpage collection method and device - Google Patents

webpage collection method and device Download PDF

Info

Publication number
CN107169141A
CN107169141A CN201710451989.1A CN201710451989A CN107169141A CN 107169141 A CN107169141 A CN 107169141A CN 201710451989 A CN201710451989 A CN 201710451989A CN 107169141 A CN107169141 A CN 107169141A
Authority
CN
China
Prior art keywords
webpage
web page
object identity
application program
stored
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
Application number
CN201710451989.1A
Other languages
Chinese (zh)
Other versions
CN107169141B (en
Inventor
张强
周玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201710451989.1A priority Critical patent/CN107169141B/en
Publication of CN107169141A publication Critical patent/CN107169141A/en
Application granted granted Critical
Publication of CN107169141B publication Critical patent/CN107169141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management

Abstract

Present invention is disclosed a kind of webpage collection method and device.Methods described includes:When application program is run, the top level view structure tree that application program is created in operation is obtained;Each node in top level view structure tree is traveled through, judges whether the object identity stored on each node includes webpage view object identity;It is webpage view object identity if there is the object identity stored on a node, then obtains the corresponding web page interlinkage of webpage view object identity;Web page interlinkage is stored into profile.From the above method, this method passes through when including webpage view object identity in the object identity stored on each node, obtain the corresponding web page interlinkage of webpage view object identity, web page interlinkage is stored into profile, so as to can directly operate web page interlinkage in profile, the problem of operation is excessively cumbersome when browsing webpage present in prior art in application program is solved.

Description

Webpage collection method and device
Technical field
The present invention relates to technical field of internet application, more particularly to a kind of webpage collection method and device.
Background technology
Nowadays the application program of numerous species is all supported directly to browse webpage in the application.When user wants answering During with webpage browsed before being browsed again in program, it is necessary first to start application program, then search in the application The webpage is browsed to the corresponding web page interlinkage of webpage browsed before, and then by web page interlinkage realization.
Excessively cumbersome defect is operated when webpage is browsed in application program from the foregoing, it will be observed that also existing in the prior art.
The content of the invention
In order to solve the above problems, the invention provides a kind of webpage collection method and device.
A kind of webpage collection method, methods described includes:
When application program is run, the top level view structure tree that application program is created described in operation is obtained;
Each node in the top level view structure tree is traveled through, judges whether the object identity stored on each node wraps Object identity containing webpage view;
It is the webpage view object identity if there is the object identity stored described in one on node, then obtains the net Page view object identifies corresponding web page interlinkage;
The web page interlinkage is stored into profile.
A kind of web page storage device, described device includes:
Acquisition module, when being run for application program, obtains the top level view structure that application program is created described in operation Tree;
Judge module, for traveling through each node in the top level view structure tree, judges what is stored on each node Whether object identity includes webpage view object identity;
Acquisition module is linked, for being the webpage view object if there is the object identity stored described in one on node Mark, then obtain the corresponding web page interlinkage of the webpage view object identity;
Memory module, for the web page interlinkage to be stored into profile.
A kind of electronic equipment, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When application program is run, the top level view structure tree that application program is created described in operation is obtained;
Each node in the top level view structure tree is traveled through, judges whether the object identity stored on each node wraps Object identity containing webpage view;
It is the webpage view object identity if there is the object identity stored described in one on node, then obtains the net Page view object identifies corresponding web page interlinkage;
The web page interlinkage is stored into profile.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is held by processor A kind of described webpage collection method is realized during row.
The technical scheme that embodiments of the invention are provided can include the following benefits:
When application program is run, the top level view structure tree that application program is created in operation is obtained;Travel through top level view knot Each node in paper mulberry, judges whether the object identity stored on each node includes webpage view object identity;If there is one The object identity stored on node is webpage view object identity, then obtains the corresponding web page interlinkage of webpage view object identity; Web page interlinkage is stored into profile.From the above method, this method is by obtaining and traveling through application program in operation The top level view structure tree of establishment, when including webpage view object identity in the object identity stored on each node, obtains net Page view object identifies corresponding web page interlinkage, web page interlinkage is stored into profile, so as to realize in profile Web page interlinkage can be directly operated, operation when browsing webpage present in prior art in application program is solved excessively cumbersome Problem.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary, this can not be limited It is open.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and in specification together for explaining principle of the invention.
Fig. 1 is the block diagram of a kind of electronic equipment according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of webpage collection method according to an exemplary embodiment;
Fig. 3 is the schematic diagram of the top level view structure tree according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of webpage collection method according to another exemplary embodiment;
Fig. 5 is a kind of flow chart of webpage collection method according to another exemplary embodiment;
Fig. 6 is a kind of flow chart of webpage collection method according to another exemplary embodiment;
Fig. 7 is the flow chart stored web page interlinkage into profile in one embodiment of Fig. 2 correspondence embodiments;
Fig. 8 is a kind of flow chart of webpage collection method according to another exemplary embodiment;
Fig. 9 is a kind of web page storage device block diagram according to an exemplary embodiment.
Embodiment
Here explanation will be performed to exemplary embodiment in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent method and apparatus of some aspects be described in detail in claims, the present invention.
Referring to Fig. 1, Fig. 1 is the block diagram of a kind of electronic equipment according to an exemplary embodiment.Need explanation It is that the electronic equipment 100 is an example for adapting to the present invention, it is impossible to be considered to provide the use scope to the present invention Any limitation.The electronic equipment 100 can not be construed to need to rely on or must be exemplary with what is shown in Fig. 1 One or more component in electronic equipment 100.
As shown in figure 1, electronic equipment 100 includes memory 101, storage control 103, one or more (only shown in figure Go out one) processor 105, Peripheral Interface 107, radio-frequency module 109, locating module 111, photographing module 113, audio-frequency module 115, Touch Screen 117 and key-press module 119.These components are mutually communicated by one or more communication bus/signal wire 121.
Wherein, the webpage that memory 101 can be used in storage software program and module, such as disclosure exemplary embodiment Collecting method and the corresponding programmed instruction of device and module, processor 105 are referred to by running the program being stored in memory 101 Order, so as to perform various functions and data processing, that is, realizes the webpage in the above-mentioned application program for running on electronic equipment 100 Collecting method.
The carrier that memory 101 is stored as resource can be random storage medium, such as high speed random access memory, non- Volatile memory, such as one or more magnetic storage devices, flash memory or other solid-state memories.Storage mode can be Of short duration storage is permanently stored.
Peripheral Interface 107 can include at least one wired or wireless network interface, an at least connection in series-parallel translation interface, at least One input/output interface and at least USB interface etc., for outside various input/output devices to be coupled into memory 101 and processor 105, to realize the communication with outside various input/output devices.
Radio-frequency module 109 is used for transceiving electromagnetic ripple, the mutual conversion of electromagnetic wave and electric signal is realized, so as to pass through communication network Network is communicated with other equipment.Communication network includes cellular telephone networks, WLAN or Metropolitan Area Network (MAN), above-mentioned communication network Network can use various communication standards, agreement and technology.
Locating module 111 is used for the geographical position being currently located for obtaining electronic equipment 100.The example of locating module 111 Including but not limited to GPS (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 113 is under the jurisdiction of camera, for shooting picture or video.The picture or video of shooting can be deposited In storage to memory 101, it can also be sent by radio-frequency module 109 to host computer.
Audio-frequency module 115 provides a user COBBAIF, and it may include one or more microphone interfaces, one or more Speaker interface and one or more earphone interfaces.Interacting for voice data is carried out with miscellaneous equipment by COBBAIF.Sound Frequency can also be sent according to that can store to memory 101 by radio-frequency module 109.
Touch Screen 117 provides an I/O Interface between electronic equipment 100 and user.Specifically, Yong Huke Input operation is carried out by Touch Screen 117, the gesture operation such as click, touch, slip, so that electronic equipment is to the input Operation is responded.The output that electronic equipment 100 is then formed any one form of word, picture or video or combination Content is by Touch Screen 117 to user's display output.
Key-press module 119 includes at least one button, to provide the interface that user is inputted to electronic equipment 100, User can make electronic equipment 100 perform different functions by pressing different buttons.For example, sound regulating key is available for using Realize the regulation for the wave volume played to electronic equipment 100 in family.
It is appreciated that the structure shown in Fig. 1 is only signal, electronic equipment 100 may also include more more than shown in Fig. 1 or more Few component, or with the component different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its Combine to realize.
Fig. 2 is a kind of flow chart of webpage collection method according to an exemplary embodiment.As shown in Fig. 2 the net Page collecting method can be performed by the electronic equipment 100 in Fig. 1, may comprise steps of.
In step 210, when application program is run, the top level view structure tree that application program is created in operation is obtained.
Wherein, top level view (DecorView) is the top layer layout of all sub- layouts of application program in android system, View i.e. in application program is all run in the framework of top level view, so as to be shown in the Touch Screen that electronic equipment is configured In.
Fig. 3 is the schematic diagram of the top level view structure tree according to an exemplary embodiment.As shown in figure 3,0 in Fig. 3 The view of the whole web interface top of node on behalf, i.e. top level view.The top level view only exists a child node 1, sub- section Object identity in point 1 is LinearLayout, represents whole web interface, includes informing, title bar, content display field three Block region.
It is FrameLayout to have the object identity in two child nodes 20 and 21, node in LinearLayout.Wherein The corresponding control of object identity of node 20 is title bar display interface, and only one of which child node 30 includes object in node 30 Identify TextView, the title of the corresponding control display applications of object identity TextView.Can also self-defined title bar, loading Self-defined title bar View afterwards identifies the view object for adding node 20 in the corresponding controls of FrameLayout.Node 21 In the corresponding control of object identity be content bar display interface.Pass through the self-defined loading cloth of setContentView () function Office interface, so that object identity (such as webpage view mark) corresponding control in obtaining the child node 31 of node 21, and then The web page contents of self-defined display.
In step 230, each node in traversal top level view structure tree, judges that the object identity stored on each node is It is no to include webpage view object identity.
The object identity as it was previously stated, each node in top level view structure tree is stored with.
In the top level view structure tree got, webpage view is carried out for the object identity stored on wherein each node The lookup of object identity, judges whether the object identity stored on each node includes webpage view object identity with this.
It is webpage view object identity if there is the object identity stored on a node, that is, represents that user carries out net Page browsing, then redirect into step 250.
, whereas if being webpage view object identity in the absence of the object identity stored on a node, that is, represent that user works as It is preceding not trigger web browsing operations, it is not necessary to implement the correlation step of web page storage, then continue executing with step 230, until depositing In a node for including webpage view object identity.
In step 250, the corresponding web page interlinkage of webpage view object identity is obtained.
When the object identity stored on a node is webpage view object identity, i.e., regarded in top level view comprising webpage Figure.Now the interface function preset by reflecting calling system, gets the corresponding web page interlinkage of webpage view object identity.
In one exemplary embodiment, the interface function that reflection is called is getUrl interface functions, passes through calling system In preset getUrl interface functions, get the Url addresses of webpage view object identity, the Url addresses as net got Page view object identifies corresponding web page interlinkage.
In step 270, web page interlinkage is stored into profile.
Wherein, profile can be database file or configuration file.The profile can be stored in electricity In the physical memory of sub- equipment, it can also be stored in the external memory card of electronic equipment.
By the way that web page interlinkage is stored into profile, web page storage function is provided for application program, facilitates user's root Webpage is directly browsed according to the web page interlinkage stored in profile.
Further, in exemplary embodiment in the specific implementation, before web page interlinkage storage, can also be The judgement of no collection.According to whether the judged result of collection, judges whether to store web page interlinkage.When judgement needs to collect webpage When, proceed to store web page interlinkage into profile;When judging that webpage need not be collected, then without web page interlinkage Storage.
This embodiment achieves the function of collection webpage, user directly can carry out browsing for webpage by profile, and The web page interlinkage corresponding to webpage to be browsed need not be re-searched for into application program, so that when effectively simplifying web page browsing Operating procedure.
Fig. 4 is a kind of flow chart of webpage collection method according to another exemplary embodiment.As shown in figure 4, When application program is run, obtain in operation before the top level view structure tree step of application program establishment, the webpage collection method It can also comprise the following steps.
In the step 310, the running status of application program is read by preset system interface function, before running status includes Platform running status.
Wherein, running status includes front stage operation state and backstage off-duty state.When running status is front stage operation shape During state, represent that application program is in the state for being triggered and running in systems;When running status is backstage off-duty state, Represent that application program is in the state do not run in systems.When the running status of application program is backstage off-duty state, Without the establishment of the top layer layout structure tree of application program.
In a step 330, when the running status of application program is front stage operation state, then judge application program in operation.
This embodiment, which is realized, judges whether application program is in operating running status, so that according to the fortune of application program Whether row condition adjudgement creates the top layer layout structure tree of application program.
In one exemplary embodiment, when application program is run, the top-level visual that application program is created in operation is obtained Before graph structure tree step, the webpage collection method can also comprise the following steps.
User is intercepted in the application for browsing the trigger action that webpage is carried out, and triggering carries out top level view structure The establishment of tree.
Wherein, trigger action is the action when user needs to browse webpage, and such as user's webpage clicking is linked Action.
For user equipment, it will thus provide a web page interlinkage button, so as to be touched according to user to web page interlinkage button Control, the corresponding webpage of display web page interlinkage.
For example, when user is intended to carry out browsing webpage, the web page interlinkage is will click on, the clicking operation is that user is clear The trigger action that webpage of looking at is carried out.
User equipment is being listened to after user is intended to carry out to browse the trigger action of webpage progress, i.e., by responding the triggering Operation generation one creates instruction, and then the establishment for carrying out top level view structure tree is instructed according to the establishment.
In exemplary embodiment in the specific implementation, being obtained using getWindow () system function of android system Take the top level view window of application program.In the top level view window of acquisition, provided using top level view GetDecorView () function or peerDecorView () function, triggering carry out the acquisition of top level view structure tree.
Fig. 5 is a kind of flow chart of webpage collection method according to another exemplary embodiment.As shown in figure 5, Obtain before the corresponding web page interlinkage step of webpage view object identity, the webpage collection method can also comprise the following steps.
In step 410, it is webpage view object identity if there is the object identity stored on a node, then calls net Page view object identifies corresponding webpage view control, and webpage view chi is obtained by the preset interface function of webpage view control It is very little.
Wherein, during if there is the object identity stored on a node for webpage view object identity, top level view is represented In include webpage view.The main contents that are shown as the web displaying of the webpage view in webpage.
It is appreciated that many invalid datas may be included in webpage, such as waste advertisements information etc., it is this include compared with The invalid web pages of many invalid datas need not then be collected.
Therefore, before web page storage is carried out, being by the webpage for judging to prepare collection by judging webpage view size No is effective web.
Now, the corresponding webpage view control of webpage view object identity is called out, and it is preset using webpage view space Interface function, obtain webpage view size.
In exemplary embodiment in the specific implementation, the preset interface function in webpage view control is getWidht () and getHeight ().Wherein, getWidht () is obtains the interface function of webpage view width, and getHeight () is to obtain Take the interface function of webpage view height.By webpage view width and the webpage view height got, webpage just can determine that View dimensions.
In step 430, webpage view size and pre-set dimension are compared.
Pre-set dimension is the threshold size for being used to filter invalid web pages pre-set, can be by comparing webpage view chi The size of very little and pre-set dimension, filters out invalid web pages.When webpage view size is less than pre-set dimension, that is, prove that the webpage is Invalid web pages, do not collect web object now and identify corresponding web page interlinkage.
In exemplary embodiment in the specific implementation, pre-set dimension could be arranged to be more than screen width or height Half, ensure the validity of webpage with this.
In step 450, if webpage view size is more than pre-set dimension, prompting message is collected in generation one, and collection is carried Show that message be used to prompt the user whether to carry out web page storage.
Wherein, when webpage view size is more than pre-set dimension, it is effective web view to represent the webpage view, is now given birth to Into a collection prompting message.In exemplary embodiment in the specific implementation, collection prompting message can be virtual key, It can be the dialog box for including virtual key.Virtual key in the collection prompting message be used to prompt the user whether to carry out net Page collection.
This embodiment achieves when webpage view size is more than the pre-set dimension, prompting message is collected in generation one, from And filter out invalid webpage.
Fig. 6 is a kind of flow chart of webpage collection method according to another exemplary embodiment.As shown in fig. 6, If webpage view size is more than pre-set dimension, prompting message is collected in generation one, and collection prompting message be used to point out user Whether carry out after web page storage step, the webpage collection method can also comprise the following steps.
In step 510, the trigger action that user response collection prompting message is carried out, generation web page storage instruction are intercepted.
Wherein, when user is intended to carry out the operation of response collection prompting message, collection prompting message is will click on, click behaviour Make the trigger action that as user response collects prompting message.
User equipment is intended to respond collection prompting message and after the trigger action that carries out, that is, passes through response listening to user The web page storage that the trigger action generates for carrying out web page storage process is instructed.
In step 530, web page storage is carried out according to web page storage instruction triggers, to obtain webpage view object identity pair The web page interlinkage answered.
Wherein, when the web page storage for receiving generation is instructed, that is, show that user needs to enter the webpage currently browsed Go and collect, thus just triggering carries out web page storage, that is, redirect into the corresponding web page interlinkage of acquisition webpage view object identity Step.
This embodiment achieves according to the trigger action that user response collection prompting message is carried out is intercepted, to realize that webpage is received The function of Tibetan.
Fig. 7 is that the details to step 270 according to an exemplary embodiment is described.As shown in fig. 7, the step 270 may comprise steps of.
In step 271, the corresponding application program identification of application program is obtained in CONFIG.SYS.
Wherein, application program identification is used to uniquely identify application program.Application has been prestored in CONFIG.SYS Program identification, to distinguish different application programs by application program identification.
Thus, the corresponding application program identification of application program just can be got in CONFIG.SYS.
In step 273, by application program identification and web page interlinkage associated storage into profile.
Web page interlinkage is made a distinction for the ease of user, after the program identification that is applied, just this journey can be applied Sequence mark is associated with web page interlinkage, and is stored into profile.
Wherein, profile can be database file or configuration file, not be limited herein.
Stored this embodiment achieves the classification of web page interlinkage, i.e., by application program identification and web page interlinkage associated storage extremely In profile, so as to realize that web page interlinkage is corresponding with application program.
Fig. 8 is a kind of flow chart of webpage collection method according to another exemplary embodiment.As shown in figure 8, Web page interlinkage is stored into profile after step, the webpage collection method can also comprise the following steps.
In step 610, in profile, intercept user and be directed to the trigger action that web page interlinkage is carried out, generate net Page idsplay order.
Wherein, in profile, the web page interlinkage of preservation shows user in the form of a list.For example, in the list, The web page interlinkage of preservation is shown with application program identification and the one-to-one mode of web page interlinkage.
When user's web displaying to be realized, web page interlinkage is will click on, the clicking operation is user to web page interlinkage institute The trigger action of progress.
User equipment is touched after the trigger action for listening to user's web displaying to be realized and carrying out by responding this Hair operation generation is used for the web displaying instruction for carrying out web displaying process.
In act 630, web displaying is carried out according to web displaying instruction triggers.
Wherein, after web displaying instruction is received, the corresponding webpage of web page interlinkage just can be shown, so that user browses.
In exemplary embodiment in the specific implementation, web page interlinkage can be loaded into by browser, it can also call LoadUrl interface functions in webpage view control are loaded into the application., just can be in browser after web page interlinkage is loaded into Or the corresponding webpage of web page interlinkage is shown in application program.
In this embodiment, user can directly carry out web page browsing by the web page interlinkage stored in profile, so that simple The operation that user browses webpage is changed.
Fig. 9 is a kind of web page storage device block diagram according to an exemplary embodiment.The device performs as described above All or part of step.As shown in figure 9, the device includes but is not limited to:Acquisition module 710, judge module 730, link Acquisition module 750 and memory module 770.
When acquisition module 710 is used for application program operation, the top level view structure tree that application program is created in operation is obtained.
Judge module 730 is used to travel through each node in top level view structure tree, judges the object mark stored on each node Know and whether include webpage view object identity.
Linking acquisition module 750 is used to if there is the object identity stored on a node be webpage view object identity, Then obtain the corresponding web page interlinkage of webpage view object identity.
Memory module 770 is used to store web page interlinkage into profile.
In one exemplary embodiment, the present invention includes a kind of electronic equipment.It is any shown that the electronic equipment performs Fig. 2 Webpage collection method all or part of step.The electronic equipment includes:
Processor.
Memory for storing processor-executable instruction.
Wherein, processor is configured as:
When application program is run, the top level view structure tree that application program is created in operation is obtained.
Each node in top level view structure tree is traveled through, judges whether the object identity stored on each node regards comprising webpage Figure object identity.
It is webpage view object identity if there is the object identity stored on a node, then obtains webpage view object mark Know corresponding web page interlinkage.
Web page interlinkage is stored into profile.
In one exemplary embodiment, the present invention includes a kind of computer-readable recording medium, is stored thereon with calculating Machine program, the computer program realizes all or part of step of the webpage collection method shown in Fig. 2 when being executed by processor Suddenly.
The function of modules and the implementation process of effect refer to correspondence step in above-mentioned webpage collection method in said apparatus Rapid implementation process, will not be repeated here.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being performed without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of webpage collection method, it is characterised in that methods described includes:
When application program is run, the top level view structure tree that application program is created described in operation is obtained;
Each node in the top level view structure tree is traveled through, judges whether the object identity stored on each node includes net Page view object mark;
It is the webpage view object identity if there is the object identity stored described in one on node, then obtains the webpage and regard The corresponding web page interlinkage of figure object identity;
The web page interlinkage is stored into profile.
2. according to the method described in claim 1, it is characterised in that during the application program operation, obtaining should described in operation Before the top level view structure tree step of program creation, methods described also includes:
The running status of the application program is read by preset system interface function, the running status includes front stage operation shape State;
When the running status of the application program is the front stage operation state, then judge the application program in operation.
3. the method stated according to claim 1, it is characterised in that during the application program operation, obtain and applied described in operation Before the top level view structure tree step of program creation, methods described also includes:
User is intercepted in the application program for browsing the trigger action that webpage is carried out, triggering carries out top level view structure The establishment of tree.
4. according to the method described in claim 1, it is characterised in that described to obtain the corresponding net of the webpage view object identity Before page link step, methods described also includes:
It is the webpage view object identity if there is the object identity stored described in one on node, then calls the webpage to regard The corresponding webpage view control of figure object identity, webpage view chi is obtained by the preset interface function of the webpage view control It is very little;
Compare the webpage view size and pre-set dimension;
If the webpage view size is more than the pre-set dimension, prompting message is collected in generation one, and the collection prompting disappears Breath be used to prompt the user whether to carry out web page storage.
5. method according to claim 4, it is characterised in that if the webpage view size is more than described preset Size, then generate after a collection prompting message step, methods described also includes:
Intercept and the trigger action that prompting message is carried out is collected described in the user response, generation web page storage instruction;
Web page storage is carried out according to the web page storage instruction triggers, to obtain the corresponding webpage of the webpage view object identity Link.
6. according to the method described in claim 1, it is characterised in that described that the web page interlinkage is stored into profile step Suddenly include:
The corresponding application program identification of the application program is obtained in CONFIG.SYS;
By the application program identification and the web page interlinkage associated storage into the profile.
7. according to the method described in claim 1, it is characterised in that described that the web page interlinkage is stored into profile step After rapid, methods described also includes:
In the profile, intercept the user and be directed to the trigger action that the web page interlinkage is carried out, generation webpage shows Show instruction;
Web displaying is carried out according to the web displaying instruction triggers.
8. a kind of web page storage device, it is characterised in that described device includes:
Acquisition module, when being run for application program, obtains the top level view structure tree that application program is created described in operation;
Judge module, for traveling through each node in the top level view structure tree, judges the object stored on each node Identify whether to include webpage view object identity;
Acquisition module is linked, for being the webpage view object mark if there is the object identity stored described in one on node Know, then obtain the corresponding web page interlinkage of the webpage view object identity;
Memory module, for the web page interlinkage to be stored into profile.
9. a kind of electronic equipment, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
When application program is run, the top level view structure tree that application program is created described in operation is obtained;
Each node in the top level view structure tree is traveled through, judges whether the object identity stored on each node includes net Page view object mark;
It is the webpage view object identity if there is the object identity stored described in one on node, then obtains the webpage and regard The corresponding web page interlinkage of figure object identity;
The web page interlinkage is stored into profile.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program The webpage collection method as described in any one of claim 1 to 7 is realized when being executed by processor.
CN201710451989.1A 2017-06-15 2017-06-15 Webpage collection method and device Active CN107169141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710451989.1A CN107169141B (en) 2017-06-15 2017-06-15 Webpage collection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710451989.1A CN107169141B (en) 2017-06-15 2017-06-15 Webpage collection method and device

Publications (2)

Publication Number Publication Date
CN107169141A true CN107169141A (en) 2017-09-15
CN107169141B CN107169141B (en) 2020-09-01

Family

ID=59818653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710451989.1A Active CN107169141B (en) 2017-06-15 2017-06-15 Webpage collection method and device

Country Status (1)

Country Link
CN (1) CN107169141B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120110427A1 (en) * 2001-06-22 2012-05-03 Krause Philip R Method and Apparatus for Consolidating Network Information
CN102831186A (en) * 2012-08-02 2012-12-19 深圳市同洲电子股份有限公司 Method and device for storing and searching webpage
CN104050166A (en) * 2013-03-11 2014-09-17 联想(北京)有限公司 Data processing method and data processing device
CN105260424A (en) * 2015-09-28 2016-01-20 北京奇虎科技有限公司 Processing method and apparatus for webpage browsing historical records and most common accesses of user
CN106067125A (en) * 2016-06-03 2016-11-02 武汉大学 The structural type advertising fraud detection method of a kind of Android platform and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120110427A1 (en) * 2001-06-22 2012-05-03 Krause Philip R Method and Apparatus for Consolidating Network Information
CN102831186A (en) * 2012-08-02 2012-12-19 深圳市同洲电子股份有限公司 Method and device for storing and searching webpage
CN104050166A (en) * 2013-03-11 2014-09-17 联想(北京)有限公司 Data processing method and data processing device
CN105260424A (en) * 2015-09-28 2016-01-20 北京奇虎科技有限公司 Processing method and apparatus for webpage browsing historical records and most common accesses of user
CN106067125A (en) * 2016-06-03 2016-11-02 武汉大学 The structural type advertising fraud detection method of a kind of Android platform and system

Also Published As

Publication number Publication date
CN107169141B (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN104978267B (en) webpage test method, terminal and server
CN107329743A (en) Methods of exhibiting, device and the storage medium of five application page
CN104050266B (en) User behavior recording method, device and web browser
CN110489626A (en) A kind of information collecting method and device
CN103516780A (en) Mobile terminal, server, system and method for controlling the same
CN106326091A (en) Browser webpage compatibility detection method and system
CN104125162B (en) The access processing method and device of Internet resources
CN107370772A (en) Account login method, device and computer-readable recording medium
CN105867714A (en) Application downloading method, apparatus and system
CN105373587A (en) Picture display method and terminal
CN107256509A (en) Price comparing method and device, terminal, server and storage medium
CN107239527A (en) web access method and device
CN107678823A (en) Control method, device and the storage medium and mobile terminal of mobile terminal application
CN104778405A (en) Method and device for blocking advertisements
CN103870551B (en) The method and apparatus that a kind of cross-domain data obtains
CN106201610A (en) Web application accesses the method and device of the primary function of terminal
CN106066868A (en) Webpage loading method and device
CN105653195B (en) Screenshotss method and mobile terminal
CN107220059A (en) The display methods and device of application interface
CN106815291A (en) Search result items exhibiting method, device and the device represented for search result items
CN104683496B (en) address filtering method and device
CN104050236B (en) Web site contents update reminding method, server and client side
CN104780153B (en) Information filtering method and device
CN109558553A (en) Pattern determines method and device
CN107526740A (en) A kind of method and electronic equipment for showing search result

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
CP03 Change of name, title or address

Address after: No.11, Jiangxi Road, Shinan District, Qingdao, Shandong 266000

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address