Interface transplantation method and system
By setting the hyperlink label of the PC-side film and television webpage as an option module and modifying the source code, the problem of low interface development efficiency caused by the difference in operating modes between the PC side and the TV side was solved, and the TV-side operation interface was seamlessly transplanted and efficiency improved.
Patent Information
- Application Number
- CN202111069303.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-13
AI Technical Summary
In the existing technology, the operating modes of the PC terminal and the TV terminal are different, which leads to the need to establish two different sets of operating interfaces, which increases the development workload and causes low efficiency.
By obtaining the hyperlink tag and link page of the PC-side film and television webpage, setting the only hyperlink tag on the link page as an option module, and setting the same hyperlink tag on the link page as an option module, and modifying the source code information on the PC side to obtain the TV The source code information of the film and television web pages on the TV side can be used to achieve focus stay and jump on the TV side.
There is no need to develop two different sets of operating interfaces, which reduces the development workload, improves efficiency, and achieves seamless transplantation of the TV-side operating interface.
Smart Images

Figure CN113918148B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of interface transplantation, and in particular to an interface transplantation method and system. Background Art
[0002] On the interface of the film and television webpage on the PC side, the mouse cursor is used for selection and clicking operations, and the cursor can stay at any position on the interface. On the interface of the film and television webpage on the TV side, the remote control is used for selection and clicking operations through the focus, and the focus can only stay on the selectable option module. Many manufacturers have businesses not only on the PC side, but also on the TV side. In related technologies, due to the different operation modes of the PC side and the TV side, two different sets of operation interfaces need to be established for adaptation, which greatly increases the workload of development.
[0003] Currently, there is no effective solution to the problem of low efficiency in related technologies that two different operation interfaces need to be established for the PC and TV ends. Summary of the invention
[0004] The embodiments of the present application provide a method and system for interface transplantation, so as to at least solve the problem in the related art that two different operation interfaces need to be established for the PC side and the TV side, resulting in low efficiency.
[0005] In a first aspect, an embodiment of the present application provides a method for interface transplantation, the method comprising:
[0006] Get all the hyperlink tags of the PC-side film and television web pages, as well as the link pages corresponding to all the hyperlink tags;
[0007] The unique hyperlink tag of the link page is set as an option module separately, and the same hyperlink tags of the link pages are set as an option module together, wherein the focus can stay on the option module, and when the option module is selected, jump to the corresponding link page;
[0008] The source code information of the film and television webpage on the PC side is modified according to the plurality of option modules to obtain the source code information of the film and television webpage corresponding to the TV side.
[0009] In some embodiments, obtaining all hyperlink tags of PC-side film and television web pages includes:
[0010] The source code information of the PC-side film and television webpage is obtained, the source code information is parsed, and all hyperlink tags of the PC-side film and television webpage are obtained.
[0011] In some embodiments, after obtaining all hyperlink tags of the PC-side film and television webpage, the method further includes:
[0012] Grouping all hyperlink tags according to the code blocks in the source code information to obtain a plurality of first hyperlink tag groups;
[0013] The unique hyperlink tag of the link page in the first hyperlink tag group is individually set as an option module, and the hyperlink tags with the same link pages are collectively set as an option module.
[0014] In some embodiments, after the same hyperlink tags of the link pages are collectively set as an option module, the method further includes:
[0015] The parent tag corresponding to the hyperlink tag is obtained, and the option module corresponding to the child tag is set on the link page of the option module corresponding to the parent tag, wherein the child tag is a hyperlink tag under the parent tag.
[0016] In some embodiments, obtaining a parent tag corresponding to a hyperlink tag includes:
[0017] Obtaining a link page of each hyperlink tag, if the link page contains at least one child tag, the hyperlink tag is a parent tag;
[0018] According to the correspondence between the parent tag and the child tag, a tag tree is constructed, and the parent tag corresponding to the hyperlink tag is obtained from the tag tree.
[0019] In some embodiments, after the same hyperlink tags of the link pages are collectively set as an option module, the method further includes:
[0020] According to the inclusion relationship between hyperlink tags, all hyperlink tags are grouped to obtain multiple second hyperlink tag groups, the parent tags corresponding to the hyperlink tags in the second hyperlink tag groups are obtained, and the option modules corresponding to the child tags are set on the link page of the option modules corresponding to the parent tags, wherein the child tags are hyperlink tags under the parent tags.
[0021] In some embodiments, obtaining the parent tag corresponding to the hyperlink tag in the second hyperlink tag group includes:
[0022] Obtaining a link page of each hyperlink tag in the second hyperlink tag group, if the link page contains at least one child tag, the hyperlink tag is a parent tag;
[0023] According to the correspondence between the parent tag and the child tag in the hyperlink tag group, a tag tree is constructed, and the parent tag corresponding to the hyperlink tag is obtained from the tag tree corresponding to the second hyperlink tag group.
[0024] In some embodiments, the position of the option module is set within the range where the corresponding hyperlink tag is located.
[0025] In some embodiments, the hyperlink tag includes a picture tag, a field tag, and an icon tag.
[0026] In a second aspect, an embodiment of the present application provides a system for interface transplantation, the system comprising an acquisition module, a setting module and a modification module.
[0027] The acquisition module is used to acquire all hyperlink tags of the PC-side film and television web pages, and the link pages corresponding to all the hyperlink tags;
[0028] The setting module is used to set the unique hyperlink tag of the link page as an option module, and to set the same hyperlink tags of the link pages as an option module, wherein the focus can stay on the option module, and when the option module is selected, jump to the corresponding link page;
[0029] The modification module is used to modify the source code information of the film and television webpage on the PC side according to the plurality of option modules, and obtain the source code information of the film and television webpage corresponding to the TV side.
[0030] Compared with the related art, the interface transplantation method provided in the embodiment of the present application obtains all hyperlink tags of the PC-side film and television web pages, and the link pages corresponding to all the hyperlink tags; sets the unique hyperlink tag of the link page as an option module separately, and sets the same hyperlink tags of the link pages as an option module, wherein the focus can stay on the option module, and jump to the corresponding link page when the option module is selected; modifies the source code information of the PC-side film and television web pages according to multiple option modules, and obtains the source code information of the film and television web pages corresponding to the TV side; after the source code information of the PC-side film and television web pages is developed, the source code information of the film and television web pages corresponding to the TV side can be obtained through the interface transplantation method of the present application, and the operation interface of the film and television web pages on the TV side can be obtained, without the need to develop two different sets of operation interfaces, thereby reducing the development workload and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0032] Figure 1 is a flow chart of a method for interface transplantation according to an embodiment of the present application;
[0033] Figure 2is a schematic diagram of a tag tree according to an embodiment of the present application;
[0034] Figure 3 is a schematic diagram of constructing a tag tree according to the first and second hyperlink tag groups of an embodiment of the present application;
[0035] Figure 4 is a schematic diagram of constructing a tag tree according to a second second hyperlink tag group in an embodiment of the present application;
[0036] Figure 5 It is a structural block diagram of the system for interface transplantation according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means, and should not be understood as insufficient contents disclosed in the present application.
[0038] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0039] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.
[0040] This embodiment provides a method for interface transplantation. Figure 1 is a flow chart of a method for interface transplantation according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0041] Step S101, obtain all hyperlink tags of PC-side film and television web pages, and the link pages corresponding to all hyperlink tags; in this embodiment, on the operation interface of the PC-side film and television web pages, the tag that can be jumped after clicking is the hyperlink tag, and the jump target is the link page. The link page can also contain new hyperlink tags. In this embodiment, the hyperlink tags to be obtained are all the hyperlink tags on the operation interface and the hyperlink tags contained on the link page.
[0042] Step S102, setting the unique hyperlink tag of the link page as an option module separately, and setting the same hyperlink tags of the link pages as an option module, wherein the focus can stay on the option module, and when the option module is selected, jump to the corresponding link page; since the cursor can stay on any interface of the PC, the film and television web page on the PC can enter the same link page by clicking multiple places, while the film and television web page on the TV can only control the movement of the focus one position at a time by the remote control. If on the TV side, multiple hyperlink tags all point to the same link page, it will cause the focus to be moved multiple times before entering the next link page by clicking the focus. Therefore, multiple hyperlink tags with the same link page are set together as an option module, and when the focus moves between multiple option modules, it will not be repeatedly moved to the option module pointing to the same link page.
[0043] For example, a movie poster on a PC operation interface includes information such as a play button, a movie name, and a brief introduction. Clicking the movie poster, the play button, and the movie name can enter the movie playback interface, which means that the movie poster, the play button, and the movie name are all hyperlink tags that link to the same page, and the movie poster, the play button, and the movie name are collectively set as an option module;
[0044] Generally, the top part of the operation interface is the navigation bar, and the middle part is the content bar. The navigation bar includes the classification of film and television dramas, such as "Movies", "TV Series" and "Variety Shows". After clicking "Movies", you can jump to the link page where the content bar is all movies. This link page is unique, so the hyperlink tag of "Movies" is set as an option module separately. The remaining hyperlink tags are also operated as above until all the hyperlink tags on the PC film and television web pages are set.
[0045] Step S103, modify the source code information of the PC-side film and television webpage according to the multiple option modules, and obtain the source code information of the TV-side corresponding film and television webpage. In this embodiment, the code of the hyperlink tag part of the link page in the source code information of the PC-side film and television webpage is modified to the code of an option module, and the code of the hyperlink tag part that is unique to the link page is also modified to the code of an option module, and the source code information of the TV-side corresponding film and television webpage is obtained.
[0046] Compared with the related art, due to the different operation modes of the PC and the TV, two different operation interfaces need to be established to adapt, which greatly increases the development workload and leads to low efficiency. In the technical solution of the present application, through steps S101 to S103, the unique hyperlink tag of the link page is set as an option module separately, and the same hyperlink tags of the link pages are set as an option module together. The source code information of the film and television web page on the PC is modified according to the multiple option modules, and the source code information of the film and television web page corresponding to the TV is obtained. On the operation interface of the TV, the focus can stay on the option module, and when the option module is selected, it jumps to the corresponding link page. After the source code information of the film and television web page on the PC is developed, the source code information of the film and television web page corresponding to the TV is obtained through the interface transplantation method of the present application, and the operation interface of the film and television web page on the TV can be obtained. There is no need to develop two different operation interfaces, which reduces the development workload and improves efficiency.
[0047] In some embodiments, obtaining all hyperlink tags of the PC-side film and television webpage includes: obtaining source code information of the PC-side film and television webpage, parsing the source code information, and obtaining all hyperlink tags of the PC-side film and television webpage. In this embodiment, the source code information is parsed to obtain the hyperlinks in the source code information, and the hyperlink tags of the PC-side film and television webpage can be obtained according to the tags associated with the hyperlinks.
[0048] In some of the embodiments, after obtaining all hyperlink tags of PC-side film and television web pages, all hyperlink tags are grouped according to code blocks in the source code information to obtain multiple first hyperlink tag groups; the unique hyperlink tag of the link page in the first hyperlink tag group is separately set as an option module, and the same hyperlink tags of the link pages are collectively set as an option module.
[0049] In this embodiment, the operation interface of the film and television web page generally includes various blocks, for example, a navigation block located in the upper left corner, a user block in the upper right corner, and a content block in the middle. The hyperlink tags on different blocks correspond to different link pages. The hyperlink tags are grouped according to the code blocks, that is, the hyperlink tags are grouped according to the various blocks on the operation interface. After grouping, it is only necessary to determine whether the link pages corresponding to the hyperlink tags are the same within the group, and there is no need to compare all the hyperlink tags. This can reduce the amount of calculation for obtaining the source code information of the film and television web page corresponding to the TV end, and improve the efficiency of interface transplantation.
[0050] In some embodiments, after the hyperlink tags with the same link page are collectively set as an option module, the parent tag corresponding to the hyperlink tag is obtained, and the option module corresponding to the child tag is set on the link page of the option module corresponding to the parent tag, wherein the child tag is a hyperlink tag under the parent tag. In this embodiment, if a hyperlink tag has a corresponding parent tag, the hyperlink tag is called a child tag. If the second hyperlink tag can be seen only after clicking the first hyperlink tag, it means that the first hyperlink tag is the parent tag of the second hyperlink tag, and the second hyperlink tag is the child tag of the first hyperlink tag. A hyperlink tag may have multiple parent tags and multiple child tags.
[0051] On the operating interface of the film and television web page on the PC side, you can see the sub-tag only after clicking the parent tag to enter the corresponding link page. Therefore, on the operating interface of the film and television web page corresponding to the TV side, you can see the selection module corresponding to the sub-tag only after clicking the option module corresponding to the parent tag and entering the link page corresponding to the option module. That is, the option module corresponding to the sub-tag is on the link page of the option module corresponding to the parent tag.
[0052] If a hyperlink tag is clicked and the linked page has no hyperlink tag, then the hyperlink tag is not a parent tag. If the hyperlink tag can only be seen after clicking other hyperlink tags, then the hyperlink tag is not a child tag. It is called a common tag. The link page corresponding to the common tag is generally a movie or TV playback interface. If the corresponding link page is movie playback interface A, then on the operation interface of the corresponding film and television web page on the TV side, click the option module corresponding to the common tag, and the link page entered will also be movie playback interface A.
[0053] In some of the embodiments, obtaining the parent tag corresponding to the hyperlink tag includes: obtaining the link page of each hyperlink tag, if the link page contains at least one child tag, then the hyperlink tag is the parent tag; constructing a tag tree according to the correspondence between the parent tag and the child tag, and obtaining the parent tag corresponding to the hyperlink tag from the tag tree.
[0054] For example, Figure 2 is a schematic diagram of a tag tree according to an embodiment of the present application, such as Figure 2As shown, all hyperlink tags of the PC-side film and television web pages are A hyperlink tag, A1 hyperlink tag, A2 hyperlink tag, A11 hyperlink tag, B hyperlink tag, C hyperlink tag, C1 hyperlink tag, C2 hyperlink tag, C3 hyperlink tag, C21 hyperlink tag and C22 hyperlink tag, and the link page of A hyperlink tag includes A1 hyperlink tag and A2 hyperlink tag, and the link page of A1 hyperlink tag includes A11 hyperlink tag. B hyperlink tag is a common tag, and the link page does not include a hyperlink tag, so it is not in the tag tree. The link page of C hyperlink tag includes C1 hyperlink tag, C2 hyperlink tag and C3 hyperlink tag, and the link page of C2 hyperlink tag includes C21 hyperlink tag and C22 hyperlink tag. After constructing the tag tree, the parent tag corresponding to the hyperlink tag can be obtained from the tag tree. For example, the parent tag of A1 hyperlink tag is A hyperlink tag, and the parent tag of A11 hyperlink tag is A1 hyperlink tag, etc.
[0055] In some embodiments, after the hyperlink tags with the same link page are collectively set as an option module, all the hyperlink tags are grouped according to the inclusion relationship between the hyperlink tags to obtain multiple second hyperlink tag groups, the parent tags corresponding to the hyperlink tags in the second hyperlink tag group are obtained, and the option modules corresponding to the child tags are set on the link page of the option module corresponding to the parent tag, wherein the child tag is the hyperlink tag under the parent tag. In this embodiment, when the link page of the A hyperlink tag contains the A1 hyperlink tag, it means that there is an inclusion relationship between the A hyperlink tag and the A1 hyperlink tag, and all the hyperlink tags with the inclusion relationship are a second hyperlink tag group.
[0056] After obtaining all the hyperlink tags of the PC-side film and television web pages, in order to find the parent tag of the target hyperlink tag from the numerous hyperlink tags, it is necessary to enter the link pages of the remaining hyperlink tags one by one to check whether the target hyperlink tag is included, resulting in low efficiency. In this embodiment, the parent tag of the hyperlink tag only needs to be searched in the corresponding second hyperlink tag group, so that the parent tag of the hyperlink tag can be quickly obtained, thereby improving the efficiency of interface transplantation.
[0057] In some of the embodiments, obtaining the parent tag corresponding to the hyperlink tag in the second hyperlink tag group includes: obtaining the link page of each hyperlink tag in the second hyperlink tag group, if the link page contains at least one child tag, the hyperlink tag is the parent tag; constructing a tag tree according to the correspondence between the parent tag and the child tag in the hyperlink tag group, and obtaining the parent tag corresponding to the hyperlink tag from the tag tree corresponding to the second hyperlink tag group.
[0058] Exemplarily, all hyperlink tags on PC-side film and television web pages are A hyperlink tag, A1 hyperlink tag, A2 hyperlink tag, A11 hyperlink tag, B hyperlink tag, C hyperlink tag, C1 hyperlink tag, C2 hyperlink tag, C3 hyperlink tag, C21 hyperlink tag and C22 hyperlink tag, and the link page of A hyperlink tag includes A1 hyperlink tag and A2 hyperlink tag, the link page of A1 hyperlink tag includes A11 hyperlink tag, B hyperlink tag is a common tag, and the link page does not include a hyperlink tag, then the first second hyperlink tag group includes A1 hyperlink tag, A2 hyperlink tag and A11 hyperlink tag, and the second second hyperlink tag group includes C hyperlink tag, C1 hyperlink tag, C2 hyperlink tag, C3 hyperlink tag, C21 hyperlink tag and C22 hyperlink tag.
[0059] Figure 3 is a schematic diagram of constructing a tag tree according to the first and second hyperlink tag groups of an embodiment of the present application, Figure 4 is a schematic diagram of constructing a tag tree according to the second second hyperlink tag group of an embodiment of the present application, such as Figure 3 , 4 As shown, a tag tree is constructed for each second hyperlink tag group. If a hyperlink tag belongs to the first second hyperlink tag group, it is only necessary to obtain the parent tag corresponding to the hyperlink tag in the tag tree corresponding to the first second hyperlink tag group; constructing the tag tree after grouping further improves the speed of finding the parent tag, that is, further improves the efficiency of interface transplantation.
[0060] In some of the embodiments, the position of the option module is set within the range where the corresponding hyperlink tag is located. Exemplarily, if the option module is set individually by the only hyperlink tag of the link page, the position of the option module on the TV-side operation interface can be set correspondingly to the position of the hyperlink tag on the PC-side operation interface; if the option module is set jointly by multiple hyperlink tags with the same link page, the position of the option module on the TV-side operation interface can be set correspondingly to the position of one of the hyperlink tags on the PC-side operation interface; for example, the movie poster, play button and movie name are all hyperlink tags with the same link page, and when the option module is located at the position of the movie poster, the focus will stay in the middle of the movie poster; the position of the option module can also be set at any position within the range where the three hyperlink tags are located.
[0061] In some embodiments, the hyperlink tag includes a picture tag, a field tag, and an icon tag. In this embodiment, the object used for hyperlinking in a web page can be a text or a picture. When the linked text or picture is clicked, the corresponding link page can be jumped.
[0062] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0063] This embodiment also provides a system for interface transplantation, which is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0064] Figure 5 is a structural block diagram of a system for interface transplantation according to an embodiment of the present application, such as Figure 5 As shown, the system includes an acquisition module 51, a setting module 52 and a modification module 53, wherein the acquisition module 51 is used to acquire all hyperlink tags of PC-side film and television web pages, and link pages corresponding to all hyperlink tags; the setting module 52 is used to set the unique hyperlink tag of the link page as an option module, and to set the same hyperlink tags of the link pages as an option module, wherein the focus can stay on the option module, and when the option module is selected, jump to the corresponding link page; the modification module 53 is used to modify the source code information of the PC-side film and television web pages according to multiple option modules, and obtain the source code information of the film and television web pages corresponding to the TV side, thereby solving the problem that the operation mode of the PC side is different from the operation mode of the TV side, and two different sets of operation interfaces need to be established to adapt, which leads to a large development workload, and improves efficiency.
[0065] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0066] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0067] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0068] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0069] In addition, in combination with the interface transplantation method in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any one of the interface transplantation methods in the above embodiment is implemented.
[0070] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for interface transplantation is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0071] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0072] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0073] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for interface transplantation, characterized in that: The method comprises: Get all the hyperlink tags of the PC-side film and television web pages, as well as the link pages corresponding to all the hyperlink tags; The unique hyperlink tag of the link page is set as an option module separately, and the same hyperlink tags of the link pages are set as an option module together, wherein the focus can stay on the option module, and when the option module is selected, jump to the corresponding link page; Modify the source code information of the film and television webpage on the PC side according to the plurality of option modules to obtain the source code information of the film and television webpage corresponding to the TV side; The obtaining of all hyperlink tags of the PC-side film and television webpage includes: obtaining source code information of the PC-side film and television webpage, parsing the source code information, and obtaining all hyperlink tags of the PC-side film and television webpage; After obtaining all the hyperlink tags of the PC-side film and television webpages, the method further includes: Grouping all hyperlink tags according to the code blocks in the source code information to obtain a plurality of first hyperlink tag groups; The unique hyperlink tag of the link page in the first hyperlink tag group is individually set as an option module, and the hyperlink tags with the same link pages are collectively set as an option module.
2. The method according to claim 1, characterized in that After the same hyperlink tags of the link pages are collectively set as an option module, the method further includes: The parent tag corresponding to the hyperlink tag is obtained, and the option module corresponding to the child tag is set on the link page of the option module corresponding to the parent tag, wherein the child tag is a hyperlink tag under the parent tag.
3. The method according to claim 2, characterized in that The method of obtaining the parent tag corresponding to the hyperlink tag includes: Obtaining a link page of each hyperlink tag, if the link page contains at least one child tag, the hyperlink tag is a parent tag; According to the correspondence between the parent tag and the child tag, a tag tree is constructed, and the parent tag corresponding to the hyperlink tag is obtained from the tag tree.
4. The method according to claim 1, characterized in that After the same hyperlink tags of the link pages are collectively set as an option module, the method further includes: According to the inclusion relationship between hyperlink tags, all hyperlink tags are grouped to obtain multiple second hyperlink tag groups, the parent tags corresponding to the hyperlink tags in the second hyperlink tag groups are obtained, and the option modules corresponding to the child tags are set on the link page of the option modules corresponding to the parent tags, wherein the child tags are hyperlink tags under the parent tags.
5. The method according to claim 4, characterized in that The step of obtaining the parent tag corresponding to the hyperlink tag in the second hyperlink tag group includes: Obtaining a link page of each hyperlink tag in the second hyperlink tag group, if the link page contains at least one child tag, the hyperlink tag is a parent tag; According to the correspondence between the parent tag and the child tag in the hyperlink tag group, a tag tree is constructed, and the parent tag corresponding to the hyperlink tag is obtained from the tag tree corresponding to the second hyperlink tag group.
6. The method according to any one of claims 2 to 5, characterized in that: The position of the option module is set within the range where the corresponding hyperlink tag is located.
7. The method according to claim 1, characterized in that The hyperlink tags include picture tags, field tags and icon tags.
8. An interface transplantation system, characterized in that: The system includes an acquisition module, a setting module and a modification module. The acquisition module is used to acquire all hyperlink tags of the PC-side film and television web pages, and the link pages corresponding to all the hyperlink tags; The setting module is used to set the unique hyperlink tag of the link page as an option module, and to set the same hyperlink tags of the link pages as an option module, wherein the focus can stay on the option module, and when the option module is selected, jump to the corresponding link page; The modification module is used to modify the source code information of the film and television webpage on the PC side according to the plurality of option modules, and obtain the source code information of the film and television webpage corresponding to the TV side; When acquiring all the hyperlink tags of the PC-side film and television webpage, the acquisition module is specifically used to: acquire source code information of the PC-side film and television webpage, parse the source code information, and obtain all the hyperlink tags of the PC-side film and television webpage; After obtaining all the hyperlink tags of the PC-side film and television webpages, the setting module is further used to: Grouping all hyperlink tags according to the code blocks in the source code information to obtain a plurality of first hyperlink tag groups; The unique hyperlink tag of the link page in the first hyperlink tag group is individually set as an option module, and the hyperlink tags with the same link pages are collectively set as an option module.
Citation Information
Patent Citations
Method for browsing web page at digital television terminal and browser thereof
CN101446960A
Developing method and device of set top box user interface
CN103309663A
