CN104090933A - Method for window displaying of network information - Google Patents
Method for window displaying of network information Download PDFInfo
- Publication number
- CN104090933A CN104090933A CN201410291018.1A CN201410291018A CN104090933A CN 104090933 A CN104090933 A CN 104090933A CN 201410291018 A CN201410291018 A CN 201410291018A CN 104090933 A CN104090933 A CN 104090933A
- Authority
- CN
- China
- Prior art keywords
- label
- data content
- source code
- specific label
- dimensional coordinate
- 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.)
- Pending
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/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
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 discloses a method for window displaying of network information. The method includes acquiring a source code of a target page of a target element link; extracting data content under a specific label in the source code; creating a window to display the extracted data content. Effective information is acquired by adopting retrieval of the specific label, invalid information is filtered effectively, convenience is brought to a user to browse the effective information, workload of user equipment is reduced, and working efficiency of the user equipment is improved.
Description
Technical field
The present invention relates to network information technology field, especially relate to a kind of method that network information window shows.
Background technology
For present website, a large amount of various information on a webpage, have been loaded, for example the text of the page, various advertisement, related news etc.; But be that user does not pay close attention to for the much information of user, therefore can be using the text of the page as effective information, other information are invalid informations, for some users, only need to check effective information, and first the existence of invalid information can add the workload of the equipment that large user uses, cause the slow problem of device processes efficiency, then have invalid information also can hinder user's browsing effective information.
Summary of the invention
One of object of the present invention is to provide a kind of method that network information window shows, to solve the invalid information in the page in prior art, hinders the problem browsed of user to effective information.
In some illustrative embodiment, the method that described network information window shows, comprising: the source code that obtains the target pages of object element link; Extract the data content under specific label in described source code; Set up data window and show the described data content extracting.
Compared with prior art, illustrative embodiment of the present invention comprises following advantage:
By specific label, obtain effective information, can effectively filter out the invalid information in the page, be convenient to user and browse effective information, and subscriber equipment only need to be loaded with effective information, and show, greatly reduced the workload of subscriber equipment, and then the work efficiency of subscriber equipment can be provided.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram according to illustrative embodiment of the present invention.
Embodiment
In the following detailed description, a large amount of specific detail are proposed, so that provide thorough understanding of the present invention.But, person of skill in the art will appreciate that, even without these specific detail, also can implement the present invention.In other cases, do not describe well-known method, process, assembly and circuit in detail, in order to avoid affect the understanding of the present invention.
Referring now to Fig. 1, Fig. 1 shows the process flow diagram in some illustrative embodiment.
As shown in Figure 1, in some illustrative embodiment, disclose a kind of method that network information window shows, having comprised:
S11, obtain the source code of the target pages of object element link;
Wherein, element refers to the corresponding element in the source code of corresponding this page of title in the page; There is the hyperlink of the page of this title of access in the element that title is corresponding, the network address corresponding by hyperlink can have access to target pages in source code.
S12, extract the data content under specific label in described source code;
The source code of webpage comprises the label of various effects, and some labels are for loading such as advertisement, news etc. and the inconsistent information of this page theme, some labels for load with to text message corresponding to title, pictorial information etc.
In some illustrative embodiment, for the text message corresponding with title and pictorial information use is the specific label of a class, heading label <h></hGreatT.Gre aT.GT for example, hypertext link label <a></aGreatT.Gre aT.GT, text label <span></spanGrea tT.GreaT.GT, attribute tags <img></imgGreatT .GreaT.GT and paragraph tag <p></pGreatT.Gre aT.GT etc.,
Wherein, each label has a tag head and a label tail, and the data that are positioned at are between the two the corresponding data content of this label; Webpage source code fragment " hand of <h2>--clumsiness is drawn eyes </h2> freely lower and that can not shed tears " for example; That adopt is secondary heading label <h2></h2GreatT.G reaT.GT; Tag head is <h2>, and label tail is </h2>; <h2> ... text between </h2> is exactly the secondary title " clumsy hand is drawn the lower eyes that freely can not shed tears " in this webpage;
By adopting the source code of the specific label searched targets page, the effective information that can find user to pay close attention to, then the data content between the tag head of the label retrieving and label tail is extracted.
S13, set up data window and show the described data content extract.
A newly-built data window, is placed on the data content extracting in the data window of foundation and shows.
By specific label, obtain effective information, can effectively filter out the invalid information in the page, be convenient to user and browse effective information, and subscriber equipment only need to be loaded with effective information, and show, greatly reduced the workload of subscriber equipment, and then the work efficiency of subscriber equipment can be provided.
In some illustrative embodiment, it is one of following that specific label at least comprises:
1), <h></hGreatT.Gre aT.GT; Heading label; For retrtieval title;
2), <a></aGreatT.Gre aT.GT; Hypertext link label, for the link of mark hypertext data information;
3), <span></spanGrea tT.GreaT.GT; Text label, for retrtieval, text for example;
4), <img></imgGreatT .GreaT.GT; Attribute tags, for the attributive character of label text or hypertext;
5), <p></pGreatT.Gre aT.GT; Paragraph tag, for retrtieval or hypertext line number paragraph.
In some illustrative embodiment, extract the process of described data content, comprising:
In described source code, set up and record the tag head of specific label and the two-dimensional coordinate (X of label tail described in each
n, Y
n);
Wherein, two-dimensional coordinate (X
n, Y
n) in horizontal ordinate X
nwith ordinate Y
nbe respectively the tag head of specific label n or the row of label tail in described source code number and line number.
For example paragraph tag is looked for and is set up zero point, the line number at tag head <p> place the 15th row, and the row at place number are the 3rd row, the two-dimensional coordinate of this tag head is (3,15); The line number at label tail </p> place is the 15th row, and the row at place number are the 20th row, and the two-dimensional coordinate of this label tail is (20,15); Record two two-dimensional coordinates, by coordinate index in source code, the data content between two-dimensional coordinate (3,15) and two-dimensional coordinate (20,15) is extracted.
Because the specific label in webpage source code is not unique yet, therefore by foundation, there is the coordinate system of unique nature, can by coordinate, in source code, find fast effective content.
In some illustrative embodiment, by two-dimensional coordinate, the data content extracting is remained on to the position consistency of indicating in source code, be presented in the window of foundation.
In some illustrative embodiment, the threshold value that the size of window can be set according to user is adjusted, and the data content showing in window can be according to the corresponding change of the ratio that changes over of window size.
By setting up two-dimensional coordinate, can determine that the data content of window demonstration is consistent with target web demonstration, guarantee that user's viewing experience is consistent with the experience of user's browsing pages.
In some illustrative embodiment, before the source code of target pages that obtains object element link, also comprise: all elements that obtains current page;
Using at least one element in described all elements as described object element.
Wherein, object element is one of all elements on the current page browsed of user; System can initiatively be shown to user by data content corresponding to Partial Elements with data window, also can by user, in all elements, selected element be as object element, and the data content that object element is corresponding is shown to user.
Wherein, user is selected can be selected by the cursor of mouse.
In some illustrative embodiment, for object element, be in a plurality of situations, can set according to user, with a data window, show the content-data that all object elements are corresponding, also can set up respectively a data window for each object element and be shown to user.
The explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.
Claims (9)
1. the method that network information window shows, is characterized in that, comprising:
Obtain the source code of the target pages of object element link;
Extract the data content under specific label in described source code;
Set up data window and show the described data content extracting.
2. method according to claim 1, is characterized in that, it is one of following that described specific label at least comprises:
Heading label, hypertext link label, text label, attribute tags and paragraph tag;
Wherein, each specific label has tag head and label tail.
3. method according to claim 2, is characterized in that, extracts the process of described data content, comprising:
In described source code, set up and record the tag head of specific label and the two-dimensional coordinate (X of label tail described in each
n, Y
n);
According to described two-dimensional coordinate, extract the data content under specific label described in each.
4. method according to claim 3, is characterized in that, described two-dimensional coordinate (X
n, Y
n) in horizontal ordinate X
nwith ordinate Y
nbe respectively the tag head of specific label n or the row of label tail in described source code number and line number.
5. method according to claim 3, is characterized in that, extracts the process of the data content under specific label described in each according to described two-dimensional coordinate, comprising:
According to the two-dimensional coordinate of the tag head of described specific label and label tail, in described source code, find two corresponding coordinate positions;
Extract the data content between described two coordinate positions.
6. method according to claim 5, is characterized in that, the described data content under each specific label is shown at described data window according to positional format corresponding to described two-dimensional coordinate.
7. method according to claim 1, is characterized in that, before the source code of target pages that obtains object element link, also comprises:
Obtain all elements of current page;
Using at least one element in described all elements as described object element.
8. method according to claim 7, is characterized in that, at least one element that user is selected in described all elements is as described object element.
9. method according to claim 1, is characterized in that, sets up respectively a described data window show the data content that this object element is corresponding for each object element.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410291018.1A CN104090933A (en) | 2014-06-25 | 2014-06-25 | Method for window displaying of network information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410291018.1A CN104090933A (en) | 2014-06-25 | 2014-06-25 | Method for window displaying of network information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104090933A true CN104090933A (en) | 2014-10-08 |
Family
ID=51638649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410291018.1A Pending CN104090933A (en) | 2014-06-25 | 2014-06-25 | Method for window displaying of network information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104090933A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268261A (en) * | 2014-10-10 | 2015-01-07 | 南车株洲电力机车有限公司 | Interface information display method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082917A (en) * | 2006-06-02 | 2007-12-05 | 千橡世纪科技发展(北京)有限公司 | Method and apparatus for rapid previewing summary of web page content |
CN101094135A (en) * | 2006-06-23 | 2007-12-26 | 腾讯科技(深圳)有限公司 | Method and system for extracting information of content in Internet |
CN103577466A (en) * | 2012-08-03 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Method and device for displaying webpage content in browser |
-
2014
- 2014-06-25 CN CN201410291018.1A patent/CN104090933A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082917A (en) * | 2006-06-02 | 2007-12-05 | 千橡世纪科技发展(北京)有限公司 | Method and apparatus for rapid previewing summary of web page content |
CN101094135A (en) * | 2006-06-23 | 2007-12-26 | 腾讯科技(深圳)有限公司 | Method and system for extracting information of content in Internet |
CN103577466A (en) * | 2012-08-03 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Method and device for displaying webpage content in browser |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268261A (en) * | 2014-10-10 | 2015-01-07 | 南车株洲电力机车有限公司 | Interface information display method and system |
CN104268261B (en) * | 2014-10-10 | 2018-04-03 | 中国铁路总公司 | A kind of interface information display methods and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102314502B (en) | A kind of method and apparatus for showing webpage body content on mobile terminals | |
CN105975576B (en) | Terminal content adaptive display method and device and terminal | |
CN104239298B (en) | Text message recommends method, server, browser and system | |
US20180191798A1 (en) | Methods and systems for server-side rendering of native content for presentation | |
CN102663135B (en) | Method and device for implementing graphical bookmark for embedded browser, and terminal | |
CN104090869A (en) | Network information translating method and translating system | |
US9613155B2 (en) | System and framework for multi-dimensionally visualizing and interacting with large data sets | |
KR20140012664A (en) | Method for rearranging web page | |
CN103577171B (en) | A kind of method and mobile terminal of display web page contents | |
CN102364460B (en) | Automatic page amplification method and system based on mobile terminal | |
CN103345493B (en) | Method that content of text on mobile terminal shows, Apparatus and system | |
CN104243273A (en) | Method and device for displaying information on instant messaging client and information display system | |
CN109492177B (en) | web page blocking method based on web page semantic structure | |
CN105022810A (en) | Method and device for displaying page location browsing information | |
CN104951547A (en) | Multi-language information issuing and displaying method based on two-dimensional code | |
CN111222069B (en) | Report component adjustment method and device and related equipment | |
CN104732182A (en) | Two-dimension-code-based communication method on webpage | |
CN102629251A (en) | Method and device for displaying webpage information | |
CN103136259A (en) | Method and device for processing webpage contents based on content block identification | |
CN109240664A (en) | A kind of method and terminal acquiring user behavior information | |
CN108021662A (en) | A kind of Web page picture display methods of mobile terminal | |
CN103092989A (en) | Image display method and device adaptable to terminal screen | |
CN104915404A (en) | Method and device for accessing invalid website | |
CN105404672B (en) | The system and method for web data storage and operation | |
CN106951405B (en) | Data processing method and device based on typesetting engine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141008 |
|
WD01 | Invention patent application deemed withdrawn after publication |