Summary of the invention
The embodiment of the invention provides a kind of method of display web page on TV, can make the user can use TV remote controller browsed web content easily.
The embodiment of the invention provides a kind of device of display web page on TV, can make the user can use TV remote controller browsed web content easily.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of method of the content of display web page on TV, this method comprises:
Obtain the content resource data and the configuration information of website;
According to predefined suitable television set page displayed structure and layout pattern, described content resource data and configuration information are shown processing accordingly.
Preferably, describedly obtain the content resource data of website and the step of configuration information comprises:
Obtain the Resources list page from the targeted website;
Analyze the code data of the Resources list page and extract the Resources list URL and the configuration information that comprises website logo information and multistage content category message and/or content recommendation information;
Download corresponding Webpage by the Resources list URL;
The code data of the analyzing web page page also extracts the content corresponding resource data;
If have heading message and text in the content resource data, then go out heading message and text from the content resource extracting data; If have multimedia URL in the text, then download content of multimedia according to multimedia URL.
Preferably, described according to predefined suitable television set page displayed structure and layout pattern, described content resource data and configuration information shown accordingly comprise the step of processing:
Described website logo information, first order content category message and subordinate's thereof second level content category message and/or content recommendation information and/or heading message are shown in the one-level page;
The identification information of described first order content category message and subordinate's second level content category message and heading message thereof are shown in the secondary page;
Identification information, heading message, text and/or the content of multimedia of described first order content category message are shown in three grades of pages;
The corresponding a plurality of subordinaties' of the described one-level page the secondary page, three grades of pages of the corresponding a plurality of subordinaties of the described secondary page.
Preferably, described second level content category message and content recommendation and/or heading message with website logo information, first order content category message and subordinate thereof is shown in the one-level page and comprises:
The website logo information of current site is presented in the first area of the one-level page, the first area of the described one-level page be video screen around any one or a plurality of corner areas in the corner;
The first order content category message of current site is set to the one-level menu, is presented in the second area of the one-level page, and the second area of the described one-level page is any one fringe region in the edge of video screen;
The second level content category message of current site is set to second-level menu, be presented in the 3rd zone of the one-level page, the 3rd zone of the described one-level page be in the edge of video screen with the perpendicular fringe region of second area;
In the 4th zone that the content recommendation information and/or the heading message of current site is presented at the one-level page, the 4th zone of the described one-level page is the zone except that the 3rd zone of the second area of the first area of the described one-level page, the one-level page, the one-level page in the video screen.
Preferably, described website logo information, website column classified information and heading message are shown in the secondary page, comprise:
To be presented in the first area of the secondary page for the identification information of the one-level menu of current site, the first area of the described secondary page is any one in the corner or a plurality of corner areas around video screen;
The second level content category message of current site is set to second-level menu, is presented in the second area of the secondary page, and the second area of the described secondary page is any one fringe region in the edge of video screen;
The second level content category message subordinate's of current site heading message is presented in the 3rd zone of the secondary page, and the 3rd zone of the described secondary page is the zone except that the second area of the first area of the described secondary page, the secondary page in the video screen.
Preferably, described website logo information, heading message, text and/or content of multimedia are shown in three grades of pages, comprise:
To be presented in the first area of three grades of pages for the identification information of the one-level menu of current site, the first area of described three grades of pages is any one in the corner or a plurality of corner areas around video screen;
The heading message of current site is presented in the second area of three grades of pages, and the second area of described three grades of pages is any one fringe region in the edge of video screen;
The text and/or the content of multimedia of current site are presented in the 3rd zone, and the 3rd zone of described three grades of pages is the zone except that the second area of the first area of described three grades of pages, three grades of pages in the video screen.
Preferably, this method further comprises:
In the described one-level page, described one-level menu is done circulation according to user's control command and is switched; When described one-level menu switched, the second-level menu correspondence was shown as the corresponding second-level menu content of described one-level menu;
Described second-level menu is done circulation according to user's control command and is switched; When described second-level menu is selected, show the secondary page of selected second-level menu correspondence;
Show three grades of corresponding pages when described content recommendation or heading message are selected.
Preferably, described heading message comprises: title, time, in source, brief introduction, the thumbnail pictures any one or a plurality of arbitrarily.
A kind of device of the content of display web page on TV, this device comprises:
The content acquisition module is used to obtain the content resource data and the configuration information of website;
Display module is used for according to predefined suitable television set page displayed structure and layout pattern described content resource data and configuration information being shown processing accordingly.
Preferably, described content acquisition module comprises:
Code unit is used for obtaining from the targeted website the Resources list page; Analyze the code data of the Resources list page and extract the Resources list URL and the configuration information that comprises website logo information and multistage content category message and/or content recommendation information.
The contents extraction unit is used for downloading corresponding Webpage by the Resources list URL; The code data of the analyzing web page page also extracts the content corresponding resource data; If have heading message and text in the content resource data, then go out heading message and text from the content resource extracting data; If have multimedia URL in the text, then download content of multimedia according to multimedia URL.
Preferably, described display module comprises:
One-level page display unit is used for described website logo information, first order content category message and subordinate's thereof second level content category message and/or content recommendation information and/or heading message are shown in the one-level page;
Secondary page display unit is used for the identification information of described first order content category message and subordinate's second level content category message and heading message thereof are shown in the secondary page;
Three grades of page display units are used for identification information, heading message, text and/or the content of multimedia of described first order content category message are shown in three grades of pages;
The corresponding a plurality of subordinaties' of the described one-level page the secondary page, three grades of pages of the corresponding a plurality of subordinaties of the described secondary page.
Preferably, described one-level page display unit comprises:
Identification information shows subelement, is used for the website logo information of current site is presented at the first area of the one-level page, the first area of the described one-level page be video screen around any one or a plurality of corner areas in the corner;
The one-level menu shows subelement, and the first order content category message that is used for current site is set to the one-level menu, is presented in the second area of the one-level page, and the second area of the described one-level page is any one fringe region in the edge of video screen;
Second-level menu shows subelement, the second level content category message that is used for current site is set to second-level menu, be presented in the 3rd zone of the one-level page, the 3rd zone of the described one-level page be in the edge of video screen with the perpendicular fringe region of second area;
Recommend to show subelement, be used for the 4th zone that content recommendation information and/or heading message with current site are presented at the one-level page, the 4th zone of the described one-level page is the zone except that the 3rd zone of the second area of the first area of the described one-level page, the one-level page, the one-level page in the video screen.
Preferably, described secondary page display unit comprises:
One-level menu sign shows subelement, is used for being presented at the first area of the secondary page for the identification information of the one-level menu of current site, and the first area of the described secondary page be any one or a plurality of corner areas in the corner all around of video screen;
Second-level menu shows subelement, and the second level content category message that is used for current site is set to second-level menu, is presented in the second area of the secondary page, and the second area of the described secondary page is any one fringe region in the edge of video screen;
Heading message shows subelement, be used for the second level content category message subordinate's of current site heading message is presented at the 3rd zone of the secondary page, the 3rd zone of the described secondary page is the zone except that the second area of the first area of the described secondary page, the secondary page in the video screen.
Preferably, described three grades of page display units comprise:
Sign shows subelement, is used for being presented at the first area of three grades of pages for the identification information of the one-level menu of current site, and the first area of described three grades of pages be any one or a plurality of corner areas in the corner all around of video screen;
Heading message shows subelement, is used for the heading message of current site is presented at the second area of three grades of pages, and the second area of described three grades of pages is any one fringe region in the edge of video screen;
Text shows subelement, be used for the 3rd zone that text and/or content of multimedia with current site are presented at three grades of pages, the 3rd zone of described three grades of pages is the zone except that the second area of the first area of described three grades of pages, three grades of pages in the video screen.
Preferably, described display module further comprises:
Indicative control unit is used at the described one-level page, and the circulation of carrying out described one-level menu according to user's control command is switched; When the one-level menu switched, control second-level menu correspondence was shown as the corresponding second-level menu content of described one-level menu; The circulation of carrying out second-level menu according to user's control command is switched; When second-level menu is selected, show the secondary page of selected second-level menu correspondence; When described content recommendation or heading message are selected, show three grades of corresponding pages.
As seen from the above technical solutions, the method and apparatus of this content of display web page on TV of the present invention is owing to recombinate contents such as the heading message in the web page contents, text, picture, and according to predefined suitable television set page displayed structure and layout pattern, web page contents after these are decomposed shows on TV, thus make the user can be on TV browsed web content easily.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The present invention mainly is that the web page contents that will get access to decomposes, contents such as wherein heading message, text, picture are recombinated, and according to predefined suitable television set page displayed structure and layout pattern, web page contents after these are decomposed shows on TV, thus make the user can be on TV browsed web content easily.
Fig. 1 is the embodiment of the invention method flow diagram of display web page content on TV, and as shown in Figure 1, this method comprises the steps:
Step 101 is obtained the content resource data and the configuration information of website;
Step 102 according to predefined suitable television set page displayed structure and layout pattern, shows processing accordingly with described content resource data and the configuration information that extracts according to described website code data.
In step 101, obtain the content resource data of website and the concrete grammar of configuration information and can followingly carry out:
Obtain the Resources list page from the targeted website;
The code data of analysis the Resources list page also extracts the Resources list URL (URL(uniform resource locator)) and comprises website logo information and the website configuration information of multistage content category message and/or content recommendation information;
Download corresponding Webpage by the Resources list URL;
The code data of the analyzing web page page also extracts the content corresponding resource data;
If have heading message and text in the content resource data, then go out heading message and text from the content resource extracting data; If have multimedia URL in the text, then download content of multimedia according to multimedia URL.Wherein heading message can comprise title, time, in source, brief introduction, the little picture any one or a plurality of arbitrarily.
In step 102, the configuration information that extracts according to the website code data comprises but is not limited to: website logo information, multistage content category message and/or content recommendation information.
With the news website is example, and the concrete steps of obtaining website code data and content resource data in the step 101 comprise as shown in Figure 2:
Step 201, obtain news the Resources list page from the target news website;
Step 202, html (HTML) code of analyzing web site news the Resources list page also extracts news list URL and configuration information, comprise news website identification information (for example picture and the Word message of website logo (logo)), multistage content category message (comprises classified informations at different levels, for example: one-level menu classified information " finance and economics ", " amusement ", " science and technology " etc.; One-level menu subordinate's second-level menu classified information " finance is observed ", " stock market's fund " etc.; And need the content recommendation information that shows in homepage and the subordinate relation information of classified informations at different levels);
Step 203 judges whether to exist the news list URL of new extraction, if exist, then execution in step 204, otherwise process ends;
Step 204, the news list URL download news pages of passing through;
Step 205 is analyzed the html code of news pages and is extracted news content;
Step 206, from news content, extract text messages such as headline and body;
The information such as issuing time, website column classification that specifically can also comprise news in the news content.
Step 207, judge whether there is multimedia URL in the body, if then execution in step 208, otherwise execution in step 211.
Step 208 is downloaded content of multimedia according to multimedia URL;
Step 209 uploads to file server with the content of multimedia of downloading;
Step 210 judges that content of multimedia uploads whether success, if then execution in step 211, otherwise returns step 203;
This step is used to guarantee the complete of the news content that obtains, is not necessary.
Step 211 writes database with text message, and returns step 203.
Above-mentioned steps 203~210 execution that will constantly circulate, process ends when in step 203, judging the URL of the news list that does not have new extraction.In addition, step 209, the 211st is preserved the news content that obtains, and does not require under the applicable cases of storage for some, and this two step neither be necessary.
The page that suitable television set page displayed structure and layout pattern described in the step 102 can be divided into webpage three levels shows, is specially:
Website logo information, first order content category message and subordinate's thereof second level content category message and content recommendation information and/or heading message are shown in the one-level page;
The identification information of first order content category message and subordinate's second level content category message and heading message thereof are shown in the secondary page;
Identification information, heading message, text and/or the content of multimedia of first order content category message are shown in three grades of pages;
Wherein, the corresponding a plurality of subordinaties' of the one-level page the secondary page, three grades of pages of the corresponding a plurality of subordinaties of the secondary page.In the one-level page, the one-level menu can be done circulation according to user's control command and switch; When the one-level menu switched, the second-level menu correspondence was shown as the corresponding second-level menu content of described one-level menu; Second-level menu can be done circulation according to user's control command and switch; When second-level menu is selected, show the secondary page of selected second-level menu correspondence; Then show three grades of corresponding pages when content recommendation is selected.
For the one-level page, the website logo information of current site can be presented in the first area of the one-level page, the first area of the described one-level page be video screen around any one or a plurality of corner areas in the corner;
The first order content category message of current site is set to the one-level menu, is presented in the second area of the one-level page, and the second area of the described one-level page is any one fringe region in the edge of video screen;
The second level content category message of current site is set to second-level menu, be presented in the 3rd zone of the one-level page, the 3rd zone of the described one-level page be in the edge of video screen with the perpendicular fringe region of the second area of the one-level page;
In the 4th zone that the content recommendation information and/or the heading message of current site is presented at the one-level page, the 4th zone of the described one-level page is the zone except that the 3rd zone of the second area of the first area of the one-level page, the one-level page, the one-level page in the video screen.
The concrete structure of the one-level page and layout can be as shown in Figure 3, and the page adopts two bar layouts, to meet user's custom of the Internet.Wherein, 1 (corresponding first area), zone is the logo position, be positioned at the upper left corner of video screen, be used to show the logo of current website of browsing, zone 2 (corresponding second areas) are the one-level menu of website, be positioned at the top edge of video screen, be used to show the logo of other website, zone 3 (corresponding the 3rd zone) is the second-level menu of website, be positioned at the left hand edge of video screen, be used to show the column classified information of current site, for example generally all can classify news in the news website, as the world, domestic, current events, finance and economics, physical culture, science and technology or the like, second-level menu will directly show the concrete column according to the classifying content of website, the column classified information can be extracted from the html code of website, and concrete extracting method can repeat no more here with reference to the syntax rule of html language.Zone 4 (corresponding the 4th zones) is the content recommendation district of website, is positioned at the lower right area of video screen, is used to show the content and/or the heading message of recommendation of websites, as the heading message of one or more news, picture, video etc.The screen lower right corner can also be pointed out by display operation, as " the 12......8 numerical key enters " informations such as " returning " among Fig. 3.
In the described one-level page, can instruct the annular circulation of carrying out described one-level menu to switch according to the right and left key that TV remote controller is sent; When described one-level menu switched, the second-level menu correspondence was shown as the corresponding second-level menu content of described one-level menu; Also the numerical key instruction of sending according to TV remote controller shows the described content recommendation corresponding three grade pages corresponding with this numerical key, perhaps, determine that by receiving the key instruction enters three grades of corresponding pages according to the heading message of the content recommendation of key command selection about the remote controller.
For the secondary page, the identification information for the one-level menu of current site can be presented in the first area of the secondary page, the first area of the described secondary page is any one in the corner or a plurality of corner areas around video screen;
The second level content category message of current site is set to second-level menu, is presented in the second area of the secondary page, and the second area of the described secondary page is any one fringe region in the edge of video screen;
The second level content category message subordinate's of current site heading message is presented in the 3rd zone of the secondary page, and the 3rd zone of the described secondary page is the zone except that the second area of the first area of the secondary page, the secondary page in the video screen.
The concrete structure of the secondary page and layout can be as shown in Figure 4, and the zone 1 in the upper left corner (corresponding first area) is the one-level menu under the second-level menu, and be corresponding with one-level menu among Fig. 3, is to be used to show current site logo.The zone 2 of top edge (corresponding second area) is a second-level menu, corresponding with second-level menu among Fig. 3, be used to show the column classified information of current site, the zone 3 of screen below (corresponding the 3rd zone) is the heading message of concrete article, issuing time, source and brief introduction etc. as article, if in this article text image content is arranged, the thumbnail that can also Show Picture then is as " sectional drawing " among Fig. 4.Information such as brief introduction, issuing time can be extracted from the html code of website, and concrete extracting method can repeat no more here with reference to the syntax rule of html language.
In the described secondary page, can carry out the annular circulation switching of described second-level menu according to the instruction that the TV remote controller right and left key sends; Also the numerical key instruction of sending according to TV remote controller shows three grades of pages of described heading message correspondence, perhaps according to the concrete article title information of the Instruction Selection of key up and down of remote controller, according to determining that the key instruction enters three grades of corresponding pages, can (, if any) show the article title information that exceeds screen according to the page turning key instruction of remote controller as page up and next page key.
For three grades of pages, the identification information for the one-level menu of current site can be presented in the first area of three grades of pages, the first area of described three grades of pages is any one in the corner or a plurality of corner areas around video screen;
The heading message of current site is presented in the second area of three grades of pages, and the second area of described three grades of pages is any one fringe region in the edge of video screen;
In the 3rd zone that the text and/or the content of multimedia of current site is presented at three grades of pages, the 3rd zone of described three grades of pages is the zone except that the second area of the first area of three grades of pages, three grades of pages in the video screen.
The concrete structure and the layout of three grades of pages can be as shown in Figure 5,1 (corresponding first area), zone is the one-level menu, one-level menu in the corresponding diagram 3, the logo that shows current site, zone 2 (corresponding second areas) are article title information, issuing time or other relevant informations, zone 3 (corresponding the 3rd zone) is the particular content of article, comprises literal and/or the picture in the content of multimedia, FLASH or video etc. in the text.
In described three grades of pages, can show described text and the content of multimedia that exceeds video screen according to the page-turning instruction that TV remote controller is sent; Also the play instruction that sends according to TV remote controller is play described content of multimedia, as video etc.
In addition, the present invention also provides a kind of device of the content of display web page on TV, and as shown in Figure 6, this device comprises:
Content acquisition module 601 is used to obtain the content resource data and the configuration information of website;
Display module 602 is used for according to predefined suitable television set page displayed structure and layout pattern described content resource data and configuration information being shown processing accordingly.
Wherein, described content acquisition module 601 comprises:
Code unit 603 is used for obtaining from the targeted website the Resources list page; Analyze the code data of the Resources list page and extract the Resources list URL and the configuration information that comprises website logo information and multistage content category message and/or content recommendation information.
Contents extraction unit 604 is used for downloading corresponding Webpage by the Resources list URL; The code data of the analyzing web page page also extracts the content corresponding resource data; If have heading message and text in the content resource data, then go out heading message and text from the content resource extracting data; If have multimedia URL in the text, then download content of multimedia according to multimedia URL.
In addition, described contents extraction unit 604 can also be further used for, and the content of multimedia of downloading is uploaded to file server; If content of multimedia is uploaded success, then described heading message and text are write database, stay shelves.
Described display module 602 comprises:
One-level page display unit 605 is used for described website logo information, first order content category message and subordinate's thereof second level content category message and/or content recommendation information and/or heading message are shown in the one-level page;
Secondary page display unit 606 is used for the identification information of described first order content category message and subordinate's second level content category message and heading message thereof are shown in the secondary page;
Three grades of page display units 607 are used for identification information, heading message, text and/or the content of multimedia of described first order content category message are shown in three grades of pages;
The corresponding a plurality of subordinaties' of the described one-level page the secondary page, three grades of pages of the corresponding a plurality of subordinaties of the described secondary page.
The concrete structure of described one-level page display unit 605 comprises as shown in Figure 7:
Identification information shows subelement 701, is used for the website logo information of current site is presented at the first area of the one-level page, the first area of the described one-level page be video screen around any one or a plurality of corner areas in the corner;
The one-level menu shows subelement 702, the first order content category message that is used for current site is set to the one-level menu, be presented in the second area of the one-level page, the second area of the described one-level page is any one fringe region in the edge of video screen;
Second-level menu shows subelement 703, the second level content category message that is used for current site is set to second-level menu, be presented in the 3rd zone of the one-level page, the 3rd zone of the described one-level page be in the edge of video screen with the perpendicular fringe region of second area;
Recommend to show subelement 704, be used for the content recommendation information of current site is presented at the 4th zone of the one-level page, the 4th zone of the described one-level page is the zone except that the 3rd zone of the second area of the first area of the described one-level page, the one-level page, the one-level page in the video screen.
The concrete structure of described secondary page display unit 606 comprises as shown in Figure 8:
One-level menu sign shows subelement 801, be used for being presented at the first area of the secondary page for the identification information of the one-level menu of current site, the first area of the described secondary page is any one in the corner or a plurality of corner areas around video screen;
Second-level menu shows subelement 802, the second level content category message that is used for current site is set to second-level menu, be presented in the second area of the secondary page, the second area of the described secondary page is any one fringe region in the edge of video screen;
Heading message shows subelement 803, be used for the second level content category message subordinate's of current site heading message is presented at the 3rd zone of the secondary page, the 3rd zone of the described secondary page is the zone except that the second area of the first area of the secondary page, the secondary page in the video screen.
The concrete structure of described three grades of page display units 607 comprises as shown in Figure 9:
Sign shows subelement 901, is used for being presented at the first area of three grades of pages for the identification information of the one-level menu of current site, and the first area of described three grades of pages be any one or a plurality of corner areas in the corner all around of video screen;
Heading message shows subelement 902, is used for the heading message of current site is presented at the second area of three grades of pages, and the second area of described three grades of pages is any one fringe region in the edge of video screen;
Text shows subelement 903, be used for the 3rd zone that text and/or content of multimedia with current site are presented at three grades of pages, the 3rd zone of described three grades of pages is the zone except that the second area of the first area of three grades of pages, three grades of pages in the video screen.
In addition, described display module 201 can further include:
Indicative control unit 608 is used at the described one-level page, and the circulation of carrying out described one-level menu according to user's control command is switched; When the one-level menu switched, control second-level menu correspondence was shown as the corresponding second-level menu content of described one-level menu; The circulation of carrying out second-level menu according to user's control command is switched; When second-level menu is selected, show the secondary page of selected second-level menu correspondence; When described content recommendation or heading message are selected, show three grades of corresponding pages.
By the above embodiments as seen, the method and the device of this content of display web page on TV of the present invention, contents such as the heading message in the web page contents, text, picture are recombinated, and according to predefined page structure and the layout that meets the TV remote controller mode of operation, web page contents after these decomposition is shown on TV, thereby make the user can use TV remote controller browsed web content easily.