1. Technical Field
The present disclosure relates to methods of sorting web pages, and more particularly to a method of sorting web pages, and a search terminal and a client terminal implementing the method.
2. Description of Related Art
Search engines, such as Baidu®, Google , Yahoo®, etc., are generally used for searching web sites according to one or more keywords inputted by users. The information returned from these web sites may includes titles, links, universal resource locators (URLs) and short quotes of relevant sections of web pages on the web sites.
In order to ensure information security, some companies set their servers to block access to certain outside web pages. The server may also be preset to identify and block web pages that contains keywords, such as bbs, blog, forum, etc. Accordingly, the server can block access to a web page if information of the web page contains one of the forbidden keywords. The web pages not blocked by the server are defined as valid web pages, and the web pages blocked by the server are defined as invalid web pages.
However, the information of the web pages provided by the search engines may include links to the valid web pages as well as those to the invalid web pages. Therefore, users inevitably spend a lot of unnecessary time attempting to access the invalid web pages.
Therefore, a need exists for a method of sorting web pages, and a search terminal and a client terminal implementing the method to resolve the above problem.
Referring to
In step 104, receiving information of a list of web pages provided by a search engine. The information of the web pages includes titles, links, URLs, and short quotes of relevant sections of the web pages.
In step 105, separating the web pages into valid web pages and invalid web pages according to the forbidden keywords. In the embodiment, the separating step includes: searching information of each of the web pages, designating one or more of the web pages which do not contain any of the forbidden keywords as valid web pages; and designating the remaining web pages, as invalid web pages.
In step 106, rearranging the information of the valid web pages and the invalid web pages, and outputting the rearranged information of the valid web pages and the invalid web pages. Herein, three embodiments of rearranging the information of the valid web pages and the invalid web pages will be illustrated. In the first embodiment, the information of the invalid web pages is deleted, thus the information of the valid web pages is outputted.
In the second embodiment, the information of the valid web pages and the invalid web pages are rearranged and outputted in different columns. For example, the information of the valid web pages is displayed in one column on the left of a screen, and the information of the invalid web pages is displayed in another column on the right of the screen, or vice versa.
In the third embodiment, all the information of the valid web pages are rearranged and outputted before the information of the invalid web pages. For example, all the information may be displayed in a single column with the information of the valid web pages appearing before that of the invalid web pages.
The method of sorting web pages prevents users from wasting time clicking on links to the invalid web pages provided by the search engine.
Referring to
The client terminal 200A includes an input interface 20, a browser 22, and a display interface 25. The input interface 20 is used for providing a URL of the search engine 42 and inputting search terms, such as search keywords, to the browser 22. The browser 22 links to a web page of the search engine 42 according to the URL, and sends the search terms to the search engine 42 through the server 300.
The server 300 has preset a plurality of forbidden keywords, receives information of web pages provided by the search engine 42 in response to a search, and detects whether the information of each of the web pages contain one or more of the forbidden keywords. The server 300 blocks the browser 22 from accessing to any web page having information containing one or more forbidden keywords, but allows the browser 22 to access the remaining web pages.
The search engine 42 is used for returning a list of web pages, including the information of each web pages, in response to search terms inputted by a user.
The sorting system 45 includes an acquiring unit 450, a separation unit 452, and an output unit 454. The acquiring unit 450 is used for receiving the information of the web pages from the search engine 42, and acquiring forbidden keywords from the server 300.
The separation unit 452 is used for separating the web pages into valid web pages and invalid web pages according to forbidden keywords, by searching through the information of each of the web pages, so that access to the invalid web pages may be blocked by the server 300.
The output unit 454 extracts information of the valid web pages from information of all the web pages, and outputs the extracted information of the valid web pages. Herein, three embodiments of extracting information of the valid web pages from information of all the web pages will be illustrated. In the first embodiment, the output unit 454 deletes the information of the invalid web pages, and outputs the remaining information.
In the second embodiment, the output unit 454 rearranges and outputs the information of the valid web pages and the invalid web pages in different columns. For example, the information of the valid web pages is displayed in a column on the left of a screen, and the information of the invalid web pages is displayed in another column on the right of the screen, or vice versa.
In the third embodiment, the output unit 454 rearranges and outputs all the information of the valid web pages before the information of the invalid web pages. Accordingly, the browser 22 receives the information from the output unit 454 through the server 300, and the display interface 25 can display the information. Therefore, the system 100A of sorting web pages can prevent users from wasting time clicking on links to the invalid web pages.
Referring to
Alternative embodiments will become apparent to those skilled in the art to which the present invention pertains without departing from the spirit and scope. Accordingly, the present invention should be deemed not to be limited to the above detailed description, but rather by the claims that follow.
Number | Date | Country | Kind |
---|---|---|---|
200810300743.5 | Mar 2008 | CN | national |