CN109429100B - Method, device and system for storing page path - Google Patents

Method, device and system for storing page path Download PDF

Info

Publication number
CN109429100B
CN109429100B CN201710719751.2A CN201710719751A CN109429100B CN 109429100 B CN109429100 B CN 109429100B CN 201710719751 A CN201710719751 A CN 201710719751A CN 109429100 B CN109429100 B CN 109429100B
Authority
CN
China
Prior art keywords
page
server
top box
path
page path
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.)
Active
Application number
CN201710719751.2A
Other languages
Chinese (zh)
Other versions
CN109429100A (en
Inventor
林嘉曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710719751.2A priority Critical patent/CN109429100B/en
Publication of CN109429100A publication Critical patent/CN109429100A/en
Application granted granted Critical
Publication of CN109429100B publication Critical patent/CN109429100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity

Abstract

The invention discloses a method, a device and a system for storing a page path, which relate to the technical field of set-top boxes and mainly aim to realize the storage function of the page path when a user operates a set-top box embedded with a lightweight browser, and specifically comprise the following steps: after the set top box starts a page, judging whether the current page is an initial page after the set top box is started; if so, sending a storage request to a server so that the server stores the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box; if not, sending an acquisition request to the server; generating a second page path according to the column name of the current page and the first page path fed back by the server; and sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path. The method and the device are used for storing the page path when the set top box works.

Description

Method, device and system for storing page path
Technical Field
The invention relates to the technical field of set top boxes, in particular to a method, a device and a system for storing a page path.
Background
With the increase of network bandwidth and the rise of set-top boxes, more and more people like to use set-top boxes to browse information and watch programs. Generally, a page browser is embedded in a set-top box, and when a page is browsed, the embedded browser of the set-top box acquires related resources from a resource server and displays the resources on the page.
In the prior art, in order to enable a browser embedded in a set-top box to respond more quickly without affecting page browsing of a user, a special lightweight browser is generally used as the embedded browser of the set-top box. Such a lightweight browser realizes lightweight by reducing many basic functions of a general browser, for example, a storage function without a page path. The page path is used for recording information of a page opening process of a user.
Typically, the page path is mainly collected by the operator for subsequent analysis of the user behavior. Through the page path, the operator can know what page path the user jumps to the relevant page, so as to put different information on the pages in different page paths in the following. However, in the prior art, the set-top box is embedded in a lightweight browser and does not have a function of storing a page path, so that a subsequent operator cannot acquire page path information of a user in a process of analyzing data of the user. Therefore, how to store the page path under the condition that a lightweight browser is embedded in the set-top box becomes a problem to be solved urgently in the industry.
Disclosure of Invention
In view of the above problems, the present invention provides a method, an apparatus, and a system for storing a page path, and a main object of the present invention is to collect a page access path for a user to operate a lightweight browser in a set-top box embedded with the browser.
In order to solve the above technical problem, in a first aspect, the present invention provides a method for storing a page path, where the method includes:
after the set top box starts a page, judging whether the current page is an initial page after the set top box is started;
if so, sending a storage request to a server so that the server stores the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box;
if not, sending an acquisition request to a server, wherein the acquisition request is used for acquiring a first page path which is stored on the server and corresponds to the set top box, and the first page path is a page path corresponding to a previous page of the current page;
generating a second page path according to the column name of the current page and the first page path fed back by the server;
and sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
Optionally, the sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into the second page path includes:
the modification request sent to the server at least comprises set top box identification information and a second page path, so that the server updates a first page path corresponding to the set top box identification information stored in a storage space of the server to the second page path according to the set top box identification information.
Optionally, the storage space of the server further stores the storage time of the first page path and a storage period of the first page path, and after the obtaining request is sent to the server, the method further includes:
acquiring the time for sending an acquisition request to the server;
calculating whether the time difference between the time for sending the acquisition request and the storage time exceeds the storage period; and/or
Judging whether the storage space of the server stores the first page path or not;
if the time difference exceeds the storage validity period, or the first page path does not exist in the storage space of the server, the generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
and determining the column name of the current page as the second page path.
Optionally, if the time difference does not exceed the storage validity period and the first page path exists in the storage space of the server, generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
acquiring a column name of the current page;
and splicing the column name of the current page with the first page path to generate a second page path.
Optionally, the method further includes:
when the set-top box is started, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box; and/or
And when the set-top box is powered off, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box.
In a second aspect, the present invention further provides a device for storing a page path, including:
the first judging unit is used for judging whether the current page is an initial page after the set top box is started or not after the set top box starts the page;
the first sending unit is used for sending a storage request to a server if the first judging unit judges that the current page is the initial page after the set top box is started, so that the server can store the column name of the initial page in the storage request into the storage space of the server to serve as a page path corresponding to the set top box;
the second sending unit is used for sending an acquisition request to a server if the first judging unit judges that the current page is not the initial page after the set top box is started, wherein the acquisition request is used for acquiring a first page path which is stored on the server and corresponds to the set top box, and the first page path is a page path corresponding to a previous page of the current page;
the generating unit is used for generating a second page path according to the column name of the current page and the first page path fed back by the server;
and the third sending unit is used for sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
Optionally, the third sending unit is further configured to at least include set top box identification information and a second page path in the modification request sent to the server, so that the server updates the first page path corresponding to the set top box identification information stored in the storage space of the server to the second page path according to the set top box identification information.
Optionally, the storage space of the server further stores the storage time of the first page path and a storage period of the first page path, and the apparatus further includes:
an acquisition unit configured to acquire a time for transmitting an acquisition request to the server;
a calculation unit configured to calculate a time difference between the time of sending the acquisition request acquired by the acquisition unit and the storage time;
a second judgment unit configured to judge whether the time difference calculated by the calculation unit exceeds the storage term of validity; and/or
A third judging unit, configured to judge whether the first page path is stored in a storage space of the server;
the generating unit is further configured to determine the column name of the current page as the second page path if the time difference determined by the second determining unit exceeds the storage validity period, or if the third determining unit determines that the first page path does not exist in the storage space of the server.
Optionally, if the time difference does not exceed the storage validity period and the first page path exists in the storage space of the server, the generating unit includes:
the acquisition module is used for acquiring the column name of the current page;
and the splicing module is used for splicing the column name of the current page acquired by the acquisition module with the first page path to generate a second page path.
Optionally, the apparatus further comprises:
the fourth sending unit is used for sending an emptying request to the server when the set-top box is started so that the server can empty the stored data corresponding to the set-top box; and/or
And the fifth sending unit is used for sending an emptying request to the server when the set-top box is powered off so that the server can empty the stored data corresponding to the set-top box.
In a third aspect, the present invention further provides a storage system for a surface path, which is characterized in that the system includes a set top box and a server;
the set-top box is used for judging whether the current page is the initial page after the set-top box is started or not after the set-top box starts the page, when the current page is the initial page after starting up, sending a storage request to a server so that the server can store the column name of the initial page in the storage request into a storage space of the server as a first page path corresponding to the set top box, and sends an acquisition request to the server when the current page is not the initial page after the startup, the acquisition request is used for acquiring a first page path corresponding to the set-top box and stored on a server, generating a second page path according to the column name of the current page and the first page path fed back by the server, sending a modification request to the server, the server modifies the first page path corresponding to the set top box into a second page path;
the server is used for receiving a storage request sent by the set top box, storing the column name of the initial page into a storage space of the server as a first page path of the set top box, receiving an acquisition request sent by the set top box, feeding back the first page path to the set top box according to the acquisition request, receiving a modification request sent by the set top box, and modifying the first page path of the corresponding set top box into a second page path according to the modification request.
In order to achieve the above object, according to a fourth aspect of the present invention, there is provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the above page path storage method.
In order to achieve the above object, according to a fifth aspect of the present invention, there is provided a processor for executing a program, wherein the program executes the above storing method of the page path.
By means of the technical scheme, the method, the device and the system for storing the page path have the advantages that the problem that the storage function of the page path is lost after the lightweight browser is embedded into the set top box in the prior art is solved, and the server for storing the data of the set top box can be used for storing the page path information generated by the set top box browsing different pages according to the request information when the set top box sends different request information. Therefore, compared with the prior art, the method and the device for storing the page column path have the advantages that the page column path is stored by the server, and the problem that the page path of the set top box cannot be stored locally when the browser of the set top box is a light browser is solved. Meanwhile, a second page path is generated through the page content and the first page path fed back by the server, the effect of adding the current page to the existing page path is achieved, and the function of updating the existing page path is achieved when the page path of the set top box is stored in the server. And when the page of the set top box is opened, the opened page content is acquired, so that the page content of the set top box can be immediately acquired when the page displayed by the browser changes, and the timeliness of subsequent related operations is further ensured.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating a method for storing a page path according to an embodiment of the present invention;
FIG. 2 is a flow chart of another page path storage method provided by the embodiment of the invention;
FIG. 3 is a block diagram illustrating a page path storage apparatus according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating another page path storage device according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating a memory system of a page path according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to implement a page path storage function of a set top box, an embodiment of the present invention provides a page path storage method, as shown in fig. 1, the method includes:
101. and after the set top box starts the page, judging whether the current page is the initial page after the set top box is started.
The initial page described in the embodiment of the present invention is a page that is opened by default after the set-top box is turned on, and since the method described in this embodiment is to store a column path of the page, it is necessary to determine the page that is opened by the current set-top box before generating and storing the column path of the page, and when the current page is the same as the initial page of the set-top box, it indicates that the set-top box does not perform other page start operations after the set-top box is turned on, but only the default initial page that is opened by default. And when the current page is not the initial page, the set top box is explained to carry out the opening operation of other pages.
Specifically, when the page after the set-top box opens the page is the initial page, step 102 is executed; when the current page after the set-top box opens the page is not the initial page, step 103 is executed.
102. And if the current page is judged to be the initial page after the set top box is started, sending a storage request to a server so that the server can store the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box.
After the determination is made by the method in step 101, when it is determined that the current page of the set top box is the initial page, a storage request needs to be sent to the server according to the method in this step, where the storage request includes a column name of the current page of the set top box, so that the server can store the column name into a storage space corresponding to the set top box as a page path of the set top box after receiving the storage request. The page path in the embodiment of the invention can be understood as recording the path information of the set top box opening page.
103. And if the current page is judged not to be the initial page after the set top box is started, sending an acquisition request to a server.
The obtaining request in this step is used for obtaining a first page path stored on the server and corresponding to the set-top box. Meanwhile, the first page path may be a page path corresponding to a previous page of the current page. Specifically, the first page path in this step may be a first page path formed after the initial page of the set top box jumps to the first page, or may be a first page path formed after multiple page jumps, and the current page may be a first new page opened after the page is initialized, or may be a page opened after multiple different pages are opened. For example, if the initial page of the set-top box is set to be a, when the page of the set-top box is changed from a to B, it is determined that the current page to be opened is a B page, and the first page path corresponding to the current page B is the first page path including the page a; or when the page of the set-top box is changed from a to B, then to C, and finally to D, determining that the page D is the current page, and determining that the first page path corresponding to the page D is the first page path including the page a, the page B, and the page C.
According to the method in the step, when the set-top box opens the page, the page content after opening and the column name of the page can be obtained in a mode of deploying codes, plug-ins or scripts. Meanwhile, the set-top box generates a page path acquisition request with self identification information or a set-top box number, namely an acquisition request of a first page path, so that the server can respond correspondingly through the acquisition request.
It should be noted that, when the page content after the set top box skips is obtained, the selected obtaining manner may be any one of manners of deploying a code on a corresponding page, setting a corresponding script or plug-in, and the like, and may be specifically selected according to needs, and is not specifically limited herein.
104. And generating a second page path according to the page content and the first page path fed back by the server.
The first page path in this step may be understood as the page path stored in the server in step 102 in the foregoing step, or may be a page path formed by opening a plurality of different pages after the method described in the embodiment of the present invention is performed. For example, when the set-top box is changed from the page a to the page B, it may be understood that the set-top box opens the page B after opening the page a, if the page a is the initial page described in the embodiment of the present invention, after opening the page a, the set-top box sends a storage request to the server after determining that the current page is the page a, so as to store the page a as the page path of the set-top box, and after opening the page B, because the page B is not the initial page, the set-top box sends an acquisition request to the server, so as to acquire the page path "page a" of the set-top box, and then generates a new page path according to the page path and the current page B, that is, the second page path described in this step; or, when the set-top box has opened the B page after having opened the multiple pages, according to the method described in this step, an acquisition request may be sent to the server, so that the server sends a page path "page a-page C-page D-page H" before the B page, that is, a first page path, to the set-top box, and then generates a new page path, that is, a second page path, according to the received first page path "page a-page C-page D-page H" and the current page "page B". Therefore, it can be seen that the first page path may be a page path stored by the set top box after the set top box opens the initial page, or may also be a page path formed by the set top box after the set top box opens a plurality of pages as required, and specifically, the page path under which the first page path is under may be determined according to an actual situation, which is not limited herein.
Generally, after a server receives a request, the server responds to the request and feeds back a request result. Therefore, in the embodiment of the present invention, after the set top box sends the acquisition request to the server as in step 103, the server performs a behavior of searching for the first page path according to the request information of the first page path in the acquisition request, and feeds back the searched first page path to the set top box. After receiving the first page path fed back by the server, the set top box performs an update operation in combination with the opened page column name obtained in step 103 to generate a new page path, that is, the second page path in this step.
Specifically, the generation process of the second page path is related to the selected page path form, for example: if the page path is in the form of 'page name a-page name B-page name C', the first page path fed back by the server is 'european and american big picture-science fiction', and the page name of the page after the jump is 'avoidan', according to the method described in the step, the obtained page name 'avoidan' in the content of the page after the jump is added into the first page path 'european and american big picture-science fiction', the page names are sequentially ordered according to the sequence, and the ordered page content is connected by a connector to obtain a second page path 'european and american big picture-science fiction-avoidan'.
It should be noted that the forms of the page content, the first page path, and the second page path may be characterized by using the page name or the column name described in this step, but other characterization forms may also be selected, such as the page code, the page address, and the like. Meanwhile, the form of the page path can also be selected from other different forms, and the page path is not specifically limited and can be selected according to the needs. However, it is necessary to ensure that the first page path and the second page path have the same form, and the specific page content corresponds to the form of the first page path and the second page path.
105. And sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
The modification request may include identification information of the second page path and the set-top box. Therefore, after the second page path is generated in step 104, the set-top box may send the second page path to the server through a modification request, so that the server finds the first page path corresponding to the set-top box, and may further modify the first page path into the second page path.
According to the page path storage method provided by the embodiment of the invention, for the problem that the storage function of the page path is lost after the lightweight browser is embedded in the set top box in the prior art, the server for storing the set top box data is arranged, so that when the set top box sends different request information, the server can store the page path information generated by browsing different pages by the set top box according to the request information. Therefore, compared with the prior art, the method and the device for storing the page column path have the advantages that the page column path is stored by the server, and the problem that the page path of the set top box cannot be stored locally when the browser of the set top box is a light browser is solved. Meanwhile, a second page path is generated through the page content and the first page path fed back by the server, the effect of adding the current page to the existing page path is achieved, and the function of updating the existing page path is achieved when the page path of the set top box is stored in the server. And when the page of the browser is embedded in the set top box, the column name of the page after being opened is obtained, so that the column name of the page of the set top box can be instantly obtained when the page of the set top box is changed, a corresponding second page path can be instantly generated according to the column name and the first page path, and the storage timeliness of the page path is further ensured.
Further, as a refinement and an extension of the embodiment shown in fig. 1, an embodiment of the present invention further provides another method for storing a page path, as shown in fig. 2, the specific steps include:
201. when the set-top box is started, an initialization request is sent to the server, so that the server can clear the stored data corresponding to the set-top box.
The initialization request comprises identification information of the set top box, so that when the set top box is started, the initialization request comprising the identification information of the set top box is generated and sent to the server, so that the server can inquire stored data corresponding to the set top box according to the identification information of the set top box in the initialization request, and the stored data are emptied according to the initialization request.
Specifically, the set top box identification information in this step may be any one of a set top box ID, an identification code added by an operator to which the set top box belongs, a production serial number added when the set top box leaves a factory, and the like, which may be used to identify the set top box. The specific selection type can be selected according to the needs, and is not limited herein. It should be noted that the identification information of the set-top box is selected to ensure that each identification information is unique, so as to avoid possible misoperation when multiple set-top boxes make the same request.
According to the method, the initialization request is generated when the set top box is started and is sent to the server so as to ensure that the server carries out corresponding initialization operation according to the request, and the method can ensure that the data stored in the server by the set top box can be emptied by initializing through the initialization request of the set top box every time the set top box is started, so that the interference on the use of the set top box caused by the storage data stored in the server after the last use of the set top box is avoided.
202. And after the set top box starts the page, judging whether the current page is the initial page after the set top box is started.
The method of the embodiment of the invention is used for recording the page path of the set top box, and the page path is determined based on the page opened by the set top box and the sequence thereof, so that after the browser embedded in the set top box opens the page, the method of the embodiment of the invention needs to judge the page opened currently, wherein the page opened currently comprises two conditions, one is the page opened by the set top box as an initial page, and the other is that the page opened currently is not the initial page, thereby judging whether the page in the browser of the current set top box is changed.
When the opened current page is the initial page of the set-top box, executing step 203; when the starting current page is not the set top box's initial page, step 204 is performed.
203. And if the current page is judged to be the initial page after the set top box is started, sending a storage request to a server so that the server can store the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box.
When the initial page of the set-top box at the current page is judged, it is shown that the page of the set-top box is not changed, so that the current initial page needs to be sent to the server as the initial page in the page column path, and it can also be understood that the current page column path is the initial page, that is, the page path in this step. Specifically, a storage request with the column name of the current page may be sent to the server, so that the server may store the column name in the storage space corresponding to the set top box after receiving the request.
Therefore, the effect of recording the page path of the set top box from the initial page can be ensured by sending the storage request to the server when the page of the set top box is the initial page, so that the problem that the subsequently generated page path is abnormal due to no original page path when the data of the set top box is abnormal or the set top box is just started is avoided, and the accuracy of the page path storage of the set top box is ensured.
204. And if the current page is judged not to be the initial page after the set top box is started, sending an acquisition request to a server.
According to the method in the step, when the page opened by the embedded browser of the set-top box is not the initial page, the set-top box opens a new page, and the page needs to be added into the page path, so that the column name of the current page can be obtained according to the preset script or the deployed crawler code. Of course, information in other pages corresponding to the page, such as page content, may also be obtained, and the specific type and manner of the information obtained in the page may be selected according to the type of the page path selected in the embodiment of the present invention, which is not specifically limited herein, where descriptions of the current page, the first page path, and the second page path in the embodiment of the present invention are the same as those described in the foregoing embodiment, and are not described herein again.
Meanwhile, when the column name of the current page of the set top box is obtained, the set top box generates an obtaining request and sends the obtaining request to the server. The obtaining request also includes identification information of the set top box, and the identification information of the set top box carried by the initialization request in the synchronization step 201 is the same, which is not described herein again. Through the acquisition request sent by the set-top box, the server can make a corresponding response according to the acquisition request after receiving the request, namely, the server locally searches the first page path corresponding to the set-top box identifier.
For example, when the embedded browser of the set-top box a opens the page until the current page is "avatar", the content of the page of the current page "avatar" may be extracted according to the preset script code, and at the same time, the set-top box a generates an acquisition request. The obtaining request comprises the set top box identification information of the name of the set top box A and a request for obtaining a first page path of the current set top box A. And then, the set top box A sends the acquisition request to a data server so that the data server responds correspondingly according to the acquisition request sent by the set top box A.
Therefore, when the page of the set top box is opened, the column name of the opened current page is obtained, so that the column name of the current page of the set top box can be immediately obtained when the page of the set top box changes, and the timeliness of subsequent related operations is further ensured.
Since the first page path does not necessarily exist in the server, and there is a possibility that the first page path may have data failure or data expiration even if the first page path exists, after sending the acquisition request to the server, the method further includes: firstly, judging whether the storage space of the server stores the first page path or not, when the first page path is determined to exist, acquiring the time for sending the acquisition request to the server, and then calculating whether the time difference between the time for sending the acquisition request and the storage time of the first page path exceeds the storage period or not.
205. And generating a second page path according to the column name of the current page and the first page path fed back by the server.
According to the method in this step, the set-top box may parse the page content obtained in step 204, and parse the identification information of the page from the page content. And then, the set top box carries out splicing operation on the identification information and the first page path fed back by the server to obtain a new spliced page path, namely a second page path.
Specifically, the type of the page identifier information analyzed by the set top box may be analyzed according to needs, and may be a name or other types of page identifiers. The type of the selected and analyzed page identification information corresponds to the type of the page path selected in the embodiment of the invention. For example, when the selected page path is of the type "page name a/page name B", the page identifier parsed from the acquired page content in this step is the page name.
Further, after the set-top box sends the acquisition request in step 204, it is also necessary to determine whether the first page path in the acquisition request exists or exceeds the validity period of the data, so in this step, when the second page path is generated, there are two cases:
one is that when the time difference exceeds the storage validity period, or the first page path does not exist in the storage space of the server, it indicates that the set-top box does not have a previous page path in the server, or the page path is actually data that is out of date, so that it is only necessary to determine the column name of the current page as the second page path without considering the data of the first page path.
In another case, when the first page path exists in the storage space of the server and the time difference does not exceed the storage validity period, it indicates that the first page path exists and is valid, and a second page path needs to be generated according to the first page path when the second page path is generated, so the method for generating the second page path in this step may specifically be: firstly, the column name of the current page is obtained. And then, splicing the column name of the current page with the first page path to generate a second page path.
Specifically, in actual operation, when determining whether the first page path exists and determining whether the first page path exceeds the validity period, a specific manner may be as follows:
since there may be a case where the set-top box does not determine whether the first page path exists when sending the acquisition request to the server in actual use, the first page path may be specifically confirmed according to information fed back by the server. The information content fed back by the server may be a character or a null value, and the content fed back by the server is related to a result obtained when the server performs a query locally, and when the server makes a corresponding response according to the acquisition request in step 204, the result found locally by the server may be divided into the following two cases: one is that when the server inquires that the first page path of the corresponding set top box exists according to the acquisition request, the first page path is fed back to the set top box. And the other is that when the server queries that the first page path of the corresponding set top box does not exist according to the acquisition request, the server feeds back a null value to the set top box. For example, when the set-top box is powered on and the skipped page is the initialized page of the set-top box, since the first page path in the server corresponding to the set-top box is initialized when the set-top box is powered on, according to the method in this step, the first page path fed back by the server is a null value. Further, when the server responds to the acquisition request sent by the set top box, the server compares the validity period locally corresponding to the first page path of the set top box with the time difference of the current request, and determines whether the first page path needs to be fed back. The time difference in the embodiment of the present invention is a difference between the time of the currently sent acquisition request and the time recorded when the first page path on the server is stored. Therefore, when it is determined that the time difference is greater than the validity period of the first page path, which indicates that the first page path to be acquired in the acquisition request exceeds the validity period of the first page path, the server does not need to feed back the first page path to the set-top box, and only needs to feed back a null value to the set-top box. And when the time difference is determined to be less than or equal to the validity period of the first page path, the first page path to be acquired in the acquisition request is not over the validity period, and the server feeds the first page path back to the set top box.
All the methods described in connection with this step are exemplified by the following:
for example, when the set-top box a performs the operation in this step, the set-top box a performs a corresponding response to the column name "avatar" of the current page being acquired, and according to the acquisition request sent in step 204, the server receives the acquisition request, and then according to the acquisition request of the set-top box a. Specifically, the server locally queries storage information, namely a first page path, corresponding to the set top box A in the server according to the set top box identification information 'set top box A' in the acquisition request sent by the set top box A, and obtains that the first page path of the set top box A is 'European and American big-piece-science fiction', the time is '18: 00, 2017-5-18' and the validity period is '24 hours'. Meanwhile, if the acquisition time of the current acquisition request is 20:00, 2017-5-18', the method according to the step can calculate that the time difference is 2 hours and is smaller than the validity period of the first page path "24 hours" of the european and american big film-science fiction ". Therefore, the content fed back by the server is character information of the first page path, namely 'European and American big picture-science fiction'. And then, the set top box A carries out splicing operation according to the European and American large-piece-science fiction which is returned by the server and the analyzed AlVanda, and the obtained second page path is the European and American large-piece-science fiction-AlVanda.
By the method, in the generation process of the second page path, the validity period of the first page path can be compared according to the time difference, so that the server does not need to feed back the first page path exceeding the validity period when responding to the acquisition request, the feedback of the server on the overdue data is avoided, the second page path is prevented from being influenced by the overdue first page path when being generated, and the accuracy of the second page path is improved.
206. And sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
The modification request sent to the service includes set top box identification information, a second page path, time and a validity period, so that the server updates the first page path corresponding to the set top box identification information stored on the server to the second page path according to the set top box identification information, and updates the time and the validity period.
Specifically, the set-top box identification information in this step is used as a unique identification of the set-top box, and can be used as an identification for identifying the set-top box when the server responds. The second page path is used for updating the first page path, and when the first page path does not exist or the time difference of the acquisition request exceeds the validity period, the first page path fed back by the server in the step 203 is a null value, and the second page path in the step is the page path stored in the server by the current set top box. The time in this step is used to record the specific time when the current modification request responds on the server, and the time difference can be calculated from the difference between the time and the acquisition time in the next acquisition request. The validity period in this step is used for comparing, when receiving the acquisition request, the server with the validity period according to the time difference of the acquisition request to determine whether the first page path queried needs to be fed back.
For example, according to the method in this step, the content of the modification request in this step may be a request field as shown below:
http://www.xxxx.com/gs.gifserviceId=xxxx&storage=xxx-xxx-xx&time= yyyy/MM/dd/HH-mm-ss&validity=24h
in the request information, the serviceid is the set top box ID, the storage is the second page path content, the time is the time, and the validity is the validity period.
Therefore, the first page path in the server can be modified into the second page path through the modification request in the step, and the function of modifying the corresponding page path on the server when the set-top box page jumps is realized. Meanwhile, the identification information, time and validity period of the set top box are added in the modification request, so that the specific information of the second page path can be further improved, and meanwhile, support is provided for relevant subsequent operations such as determining whether the page path of the acquisition request needs to be fed back after the server receives the acquisition request when the page is opened next time.
207. And when the set-top box is powered off, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box.
In the same way as the initialization request in step 201, the clearing request in this step also includes identification information of the set top box, so that the server identifies the storage area corresponding to the set top box when responding. The specific emptying process is consistent with the method executed in step 201, and is not described herein.
By the method in this step, the data corresponding to the set top box stored on the server can be erased by performing the clearing request sent by the set top box before the set top box is turned off, so that it is ensured that the page path of the set top box is not interfered by the stored data in the last use when performing the relevant operations in step 202 and step 207.
Further, according to the method described in step 201-207 in the embodiment of the present invention, the embodiment of the present invention further provides a server response method applying the method, which is specifically described as follows:
on one hand, when the server receives an initialization request, identifying the identification information of the set top box in the initialization request;
inquiring storage data corresponding to the identification information of the set top box according to the identification information of the set top box;
and clearing the stored data corresponding to the identification information of the set top box.
On the other hand, when the server receives an acquisition request, identifying the set-top box identification information in the acquisition request;
according to the set top box identification information, whether a first page path corresponding to the set top box identification information exists on the local area of the current server is inquired;
and when the first page path exists and the time difference is less than or equal to the validity period of the first page path, extracting the first page path corresponding to the identification information of the set top box, otherwise, feeding back a null value to the set top box.
In a third aspect, when the server receives a modification request, identifying set-top box identification information in the modification request;
according to the set top box identification information, a first page path corresponding to the set top box identification information on the local part of a current server is inquired;
and modifying the first page path corresponding to the set top box identification information into a second page path.
In the fourth aspect, when the server receives an emptying request, identifying the identification information of the set top box in the emptying request;
inquiring storage data corresponding to the identification information of the set top box according to the identification information of the set top box;
and clearing the stored data corresponding to the identification information of the set top box.
In a fifth aspect, when the server receives a storage request, identifying a set top box identifier in the storage request, and storing a column name of an initial page in the storage request into a storage space of the server corresponding to the set top box identifier of the Sovix search engine in the current period according to the set top box identifier.
Further, according to the method described in the step 201-208 in the embodiment of the present invention, in combination with a specific application scenario, for example, the following is performed:
1. starting up: the set-top box sends an initialization request to the transit server, wherein the set-top box identification information containing the set-top box is 'service 01', and the storage server clears the storage data corresponding to the 'service 01' in the local database according to the received initialization request;
2. and entering an initial page A page after starting up: the set-top box sends an acquisition request 01 to the transit server. According to the acquisition request 01, the server queries whether a page path exists in the storage data corresponding to the service01 on the local database. Since the initialization operation is just performed, there is no page path corresponding to "service 01", and thus the server feeds back to the set-top box as a null value. Meanwhile, the set top box acquires the current page content, and the name of the page obtained after analysis is 'pageA'. Therefore, according to the page name "pageA" and the null value fed back by the server, the first page path generated is "pageA";
3. when the set-top box page is opened from A to B, the following operations are carried out:
(1) closing the page A: the set-top box sends the first page path "pageA" to the server in the form of characters through a modification request 01. Specifically, the modification request 01 may be in the form of a request field as shown below:
http://www.xxxx.com/gs.gifserviceID=xxxx&storage=xxx-xxx-xx&time= yyyy/MM/dd/HH-mm-ss&validity=xxh
in the modification request information, the serviceID is identification information of the set top box, the storage is content of the page path, the time is modification time of the page path, and the validity is the validity period of the page path.
Then, according to the method in this step (1), when the set-top box identification information is "service 01", the page path is "pageA", the time is "5/17/2017/5/20/22/14 sec", and the validity period is "24 hours", the modification request 01 in this step (1) is:
http://www.xxxx.com/gs.gifserviceID=service01&storage=pageA&time= 2017/05/17/20-22-14&validity=24h
after the server receives the modification request 01, storing a first page path "pageA" into a database of a corresponding set top box "service 01" through the modification request 01, and indicating that the modification time of the page path "pageA" is "5, 17 and 5 months in 2017, 22 minutes and 14 seconds at 20 hours" and the validity period is "24 hours";
(2) opening a B page: when the page of the set-top box is changed into a B page, the set-top box sends an acquisition request 02 to the server so as to acquire a first page path. When the server receives the acquisition request 02, according to the set-top box identification information contained in the acquisition request, whether a page path exists in a database corresponding to the identification information "service 01" locally is queried. Since the first page path is already stored in step 3- (1), the server may query that the first page path corresponding to "service 01" exists in the current server local as "pageA". Subsequently, it is determined whether the difference between the time in the current acquisition request 02 and the modification time of the first page path exceeds the validity period of the first page path. Since the current time of the acquisition request is "5/17/2017, and 22/14 sec", the time difference may be determined to be "2 hours" and smaller than the validity period "24 hours" of the first page path "pageA", and thus, the server may extract the first page path "pageA" according to the acquisition request 02 and feed back the first page path "pageA" to the set-top box. Meanwhile, the set top box can acquire the page content of the currently skipped page B according to the codes deployed in advance, so that the name of the page is analyzed to be 'pageB', and then splicing operation is performed according to the 'pageB' and a first page path 'pageA' fed back by the server to generate a new page path 'pageA-pageB', namely, the second page path is 'pageA-pageB'.
4. And closing the page B: when the page B is closed, the set-top box puts the second page path "page a-page B" generated in the previous step 3- (2) into the storage field, and sends a modification request 02 to the server, where the specific form of the modification request 02 is the same as the modification request 01 described in the step 3- (1). Wherein the set-top box identification information is still "service 01", the page path is "pageA-pageB", the time is "5, month and 17 days in 2017, 23 minutes and 44 seconds at 23 hours", and the validity period is still "24 hours", then the modification request 02 in this step 4 may be:
http://www.xxxx.com/gs.gifserviceID=service01&storage=pageA-pageB &time=2017/05/17/23-23-44&validity=24h
subsequently, after the server receives the modification request 02, storing a first page path "pageA" into a database of a corresponding set top box "service 01" through the modification request 02, and indicating that the modification time of the page path "pageA" is "5, 17 and 5 months in 2017, 23 minutes and 44 seconds in 23 hours" and the validity period is "24 hours";
……
n, shutdown: and the set-top box sends an emptying request to the transit server, wherein the set-top box identification information containing the set-top box is 'service 01', and the storage server empties the storage data corresponding to the 'service 01' in the local database according to the received emptying request.
Through the implementation processes of the steps 1 to N, when the set-top box cannot store the page path locally, the function of storing the page path can be realized by setting a server dedicated for storage. In the execution process from step 2 to step N-1, the steps from step 2 to step 4 may be performed in a loop manner to continuously generate and store a new page path, and then when a page jumps, a process of continuously updating and changing the page path may be obtained through an interactive operation between the set top box and the server in the method, thereby implementing functions of generating, storing and updating the page path in real time. It should be noted that "first" and "second" described in the above application scenarios are only used for distinguishing different page paths each time in the storage process of the page paths, and do not represent a real sequence, and the specific sequence is determined according to an actual application situation.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a storage device for a page path, which is used to implement the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 3, the apparatus includes: a first judging unit 31, a first transmitting unit 32, a second transmitting unit 33, a generating unit 34, a third transmitting unit 35, wherein
The first determining unit 31 may be configured to determine, after the set-top box starts the page, whether the current page is an initial page after the set-top box is started.
The first sending unit 32 may be configured to send a storage request to a server if the first determining unit 31 determines that the current page is the initial page after the set top box is turned on, so that the server stores the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box.
The second sending unit 33 may be configured to send, if the first determining unit 31 determines that the current page is not the initial page after the set top box is turned on, an obtaining request to the server, where the obtaining request is used to obtain a first page path stored on the server and corresponding to the set top box, and the first page path is a page path corresponding to a previous page of the current page.
The generating unit 34 may be configured to generate a second page path according to the column name of the current page and the first page path fed back by the server.
The third sending unit 35 may be configured to send a modification request to the server, so that the server modifies the first page path corresponding to the set top box into the second page path.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention further provides another storage device for a page path, which is used to implement the method shown in fig. 2. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 4, the apparatus includes: a first judging unit 401, a first sending unit 402, a second sending unit 403, a generating unit 404 and a third sending unit 405
The first determining unit 401 may be configured to determine, after the set top box starts a page, whether the current page is an initial page after the set top box is started.
The first sending unit 402 may be configured to send a storage request to a server if the first determining unit 401 determines that the current page is the initial page after the set top box is turned on, so that the server stores the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box.
The second sending unit 403 may be configured to send, if the first determining unit 401 determines that the current page is not the initial page after the set top box is turned on, an obtaining request to the server, where the obtaining request is used to obtain a first page path stored on the server and corresponding to the set top box, and the first page path is a page path corresponding to a previous page of the current page.
The generating unit 404 may be configured to generate a second page path according to the column name of the current page and the first page path fed back by the server.
The third sending unit 405 may be configured to send a modification request to the server, so that the server modifies the first page path corresponding to the set top box into the second page path.
Further, the third sending unit 405 may be further configured to at least include set top box identification information and a second page path in the modification request sent to the server, so that the server updates the first page path corresponding to the set top box identification information stored in the storage space of the server to the second page path according to the set top box identification information.
Further, the storage space of the server further stores the storage time of the first page path and the storage period of the first page path, and the apparatus further includes:
an obtaining unit 406, configured to obtain a time for sending an obtaining request to the server;
a calculating unit 407 operable to calculate a time difference between the time of sending the acquisition request acquired by the acquiring unit 406 and the storage time;
a second judging unit 408, which may be configured to judge whether the time difference calculated by the calculating unit 407 exceeds the storage validity period; and/or
A third determining unit 409, configured to determine whether the first page path is stored in the storage space of the server;
the generating unit 404 may be further configured to determine the column name of the current page as the second page path if the time difference determined by the second determining unit 408 exceeds the storage validity period, or if the third determining unit 409 determines that the first page path does not exist in the storage space of the server.
Further, if the time difference does not exceed the storage period and the first page path exists in the storage space of the server, the generating unit 404 includes:
an obtaining module 4041, configured to obtain a column name of the current page;
the splicing module 4042 may be configured to splice the column name of the current page acquired by the acquiring module 4041 with the first page path, so as to generate a second page path.
Further, the apparatus further comprises:
a fourth sending unit 410, configured to send an emptying request to the server when the set-top box performs a power-on operation, so that the server performs an emptying operation on stored data corresponding to the set-top box; and/or
The fifth sending unit 411 may be configured to send an emptying request to the server when the set-top box performs a shutdown operation, so that the server performs an emptying operation on the stored data corresponding to the set-top box.
Further, an embodiment of the present invention further provides a system for storing a page path, as shown in fig. 5, where the system includes: a set-top box 51 and a server 52, wherein,
the set-top box 51 may be configured to determine whether the current page is the initial page after the set-top box is turned on, when the current page is the initial page after power-on, a storage request is sent to the server 52, so that the server stores the column name of the initial page in the storage request into the storage space of the server as a first page path corresponding to the set-top box, and, when the current page is not the initial page after power-up, sends a fetch request to the server 52, the acquisition request is used for acquiring a first page path corresponding to the set-top box and stored on a server, generating a second page path according to the column name of the current page and the first page path fed back by the server, sending a modification request to the server 52, and the server modifies the first page path corresponding to the set top box into a second page path.
The server 52 may be configured to receive a storage request sent by the set top box 51, store the column name of the initial page in a storage space of the server as a first page path of the set top box, receive an acquisition request sent by the set top box 51, feed back the first page path to the set top box according to the acquisition request, receive a modification request sent by the set top box 51, and modify the first page path of the corresponding set top box into a second page path according to the modification request.
With the above technical solutions, embodiments of the present invention provide a method, an apparatus, and a system for storing a page path. Compared with the prior art that the storage function of the page path is lost after the lightweight browser is embedded in the set top box, the server for storing the set top box data can be used for ensuring that the server can store the page path information generated when the browser embedded in the set top box browses different pages according to the request information when the set top box sends different request information. Therefore, compared with the prior art, the page column path is stored by using the server, and the problem that the page path information of the set top box cannot be stored locally when the browser of the set top box is a light browser is solved. In addition, when the browser of the set top box starts the page, the column name of the current page after starting is obtained, so that the column name can be timely obtained when the browser page embedded in the set top box changes, and the timeliness of subsequent related operations is further ensured; meanwhile, by adding the identification information, time and validity period of the set top box in the modification request, the specific information of the page path can be further improved, and support can be provided for related subsequent operations such as feedback and the like for acquiring the requested page path when the page is opened next time. Furthermore, in the embodiment of the present invention, in the generating process of the second page path, the validity period of the first page path may be compared with the validity period of the second page path according to the time difference, so that when the server responds to the acquisition request, the first page path exceeding the validity period does not need to be fed back, and the server is prevented from feeding back the overdue data, thereby preventing the second page path from being possibly affected by the overdue first page path during the generating process, and further improving the accuracy of the second page path. In addition, the clearing request is sent when the set top box enters the shutdown stage, so that the stored data corresponding to the set top box on the server can be erased, and the set top box is not interfered by the stored data in the last use when the set top box performs related operations on a page path in the next use. Furthermore, the embodiment of the invention also can ensure that when the set top box fails to be normally shut down last time, the phenomenon that the page path stored last time still exists on the server local due to the fact that the emptying request cannot be sent is avoided by sending the initialization request at the start-up stage of the set top box, so that the storage of the page path at this time is influenced, and the accuracy of page path storage is improved.
The storage device of the page path comprises a processor and a memory, wherein the first judging unit, the first sending unit, the second sending unit, the generating unit, the third sending unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more, and the storage function of the page path is ensured to be realized by adjusting the kernel parameters when the user operates the kernel.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash)
RAM), the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, and the program implements the storage method of the page path when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the storage method of a page path is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: after the set top box starts a page, judging whether the current page is an initial page after the set top box is started; if so, sending a storage request to a server so that the server stores the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box; if not, sending an acquisition request to a server, wherein the acquisition request is used for acquiring a first page path which is stored on the server and corresponds to the set top box, and the first page path is a page path corresponding to a previous page of the current page; generating a second page path according to the column name of the current page and the first page path fed back by the server; and sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
Further, the sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path includes:
the modification request sent to the server at least comprises set top box identification information and a second page path, so that the server updates a first page path corresponding to the set top box identification information stored in a storage space of the server to the second page path according to the set top box identification information.
Further, the storage space of the server further stores the storage time of the first page path and the storage period of the first page path, and after the obtaining request is sent to the server, the method further includes:
acquiring the time for sending an acquisition request to the server;
calculating whether the time difference between the time for sending the acquisition request and the storage time exceeds the storage period; and/or
Judging whether the storage space of the server stores the first page path or not;
if the time difference exceeds the storage validity period, or the first page path does not exist in the storage space of the server, the generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
and determining the column name of the current page as the second page path.
Further, if the time difference does not exceed the storage validity period and the first page path exists in the storage space of the server, the generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
acquiring a column name of the current page;
and splicing the column name of the current page with the first page path to generate a second page path.
Further, the method further comprises:
when the set-top box is started, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box; and/or
And when the set-top box is powered off, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box.
The device in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
An embodiment of the present invention further provides a computer program product, which, when executed on a data processing apparatus, is adapted to execute a program that initializes the following method steps: after the set top box starts a page, judging whether the current page is an initial page after the set top box is started; if so, sending a storage request to a server so that the server stores the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box; if not, sending an acquisition request to a server, wherein the acquisition request is used for acquiring a first page path which is stored on the server and corresponds to the set top box, and the first page path is a page path corresponding to a previous page of the current page; generating a second page path according to the column name of the current page and the first page path fed back by the server; and sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
Further, the sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path includes:
the modification request sent to the server at least comprises set top box identification information and a second page path, so that the server updates a first page path corresponding to the set top box identification information stored in a storage space of the server to the second page path according to the set top box identification information.
Further, the storage space of the server further stores the storage time of the first page path and the storage period of the first page path, and after the obtaining request is sent to the server, the method further includes:
acquiring the time for sending an acquisition request to the server;
calculating whether the time difference between the time for sending the acquisition request and the storage time exceeds the storage period; and/or
Judging whether the storage space of the server stores the first page path or not;
if the time difference exceeds the storage validity period, or the first page path does not exist in the storage space of the server, the generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
and determining the column name of the current page as the second page path.
Further, if the time difference does not exceed the storage validity period and the first page path exists in the storage space of the server, the generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
acquiring a column name of the current page;
and splicing the column name of the current page with the first page path to generate a second page path.
Further, the method further comprises:
when the set-top box is started, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box; and/or
And when the set-top box is powered off, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of the storage medium of the computer include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM)
(DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for storing a page path, the method comprising:
after the set top box starts a page, judging whether the current page is an initial page after the set top box is started;
if so, sending a storage request to a server so that the server stores the column name of the initial page in the storage request into a storage space of the server as a page path corresponding to the set top box, wherein the server is used for storing set top box data;
if not, sending an acquisition request to a server, wherein the acquisition request is used for acquiring a first page path which is stored on the server and corresponds to the set top box, and the first page path is a page path corresponding to a previous page of the current page;
generating a second page path according to the column name of the current page and the first page path fed back by the server;
and sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
2. The method of claim 1, wherein sending a modification request to the server to modify the first page path corresponding to the set top box to the second page path comprises:
the modification request sent to the server at least comprises set top box identification information and a second page path, so that the server updates a first page path corresponding to the set top box identification information stored in a storage space of the server to the second page path according to the set top box identification information.
3. The method according to claim 1 or 2, wherein the storage space of the server further stores a storage time of the first page path and a storage period of the first page path, and after sending the acquisition request to the server, the method further comprises:
acquiring the time for sending an acquisition request to the server;
calculating whether the time difference between the time for sending the acquisition request and the storage time exceeds the storage period; and/or
Judging whether the storage space of the server stores the first page path or not;
if the time difference exceeds the storage validity period, or the first page path does not exist in the storage space of the server, the generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
and determining the column name of the current page as the second page path.
4. The method of claim 3,
if the time difference does not exceed the storage validity period and the first page path exists in the storage space of the server, generating a second page path according to the column name of the current page and the first page path fed back by the server includes:
acquiring a column name of the current page;
and splicing the column name of the current page with the first page path to generate a second page path.
5. The method of claim 1, further comprising:
when the set-top box is started, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box; and/or
And when the set-top box is powered off, sending an emptying request to the server so that the server can empty the stored data corresponding to the set-top box.
6. An apparatus for storing a page path, the apparatus comprising:
the first judging unit is used for judging whether the current page is an initial page after the set top box is started or not after the set top box starts the page;
the first sending unit is used for sending a storage request to a server if the first judging unit judges that the current page is the initial page after the set top box is started, so that the server can store the column name of the initial page in the storage request into a storage space of the server to serve as a page path corresponding to the set top box, and the server is used for storing set top box data;
the second sending unit is used for sending an acquisition request to a server if the first judging unit judges that the current page is not the initial page after the set top box is started, wherein the acquisition request is used for acquiring a first page path which is stored on the server and corresponds to the set top box, and the first page path is a page path corresponding to a previous page of the current page;
the generating unit is used for generating a second page path according to the column name of the current page and the first page path fed back by the server;
and the third sending unit is used for sending a modification request to the server so that the server modifies the first page path corresponding to the set top box into a second page path.
7. The apparatus according to claim 6, wherein the storage space of the server further stores a storage time of the first page path and a storage period of the first page path, the apparatus further comprising:
an acquisition unit configured to acquire a time for transmitting an acquisition request to the server;
a calculation unit configured to calculate a time difference between the time of sending the acquisition request acquired by the acquisition unit and the storage time;
a second judgment unit configured to judge whether the time difference calculated by the calculation unit exceeds the storage term of validity; and/or
A third judging unit, configured to judge whether the first page path is stored in a storage space of the server;
the generating unit is further configured to determine the column name of the current page as the second page path if the time difference determined by the second determining unit exceeds the storage validity period, or if the third determining unit determines that the first page path does not exist in the storage space of the server.
8. The system for storing the page path is characterized by comprising a set top box and a server, wherein the server is used for storing set top box data;
the set-top box is used for judging whether the current page is the initial page after the set-top box is started or not after the set-top box starts the page, when the current page is the initial page after starting up, sending a storage request to a server so that the server can store the column name of the initial page in the storage request into a storage space of the server as a first page path corresponding to the set top box, and sends an acquisition request to the server when the current page is not the initial page after the startup, the acquisition request is used for acquiring a first page path corresponding to the set-top box and stored on a server, generating a second page path according to the column name of the current page and the first page path fed back by the server, sending a modification request to the server, the server modifies the first page path corresponding to the set top box into a second page path;
the server is used for receiving a storage request sent by the set top box, storing the column name of the initial page into a storage space of the server as a first page path of the set top box, receiving an acquisition request sent by the set top box, feeding back the first page path to the set top box according to the acquisition request, receiving a modification request sent by the set top box, and modifying the first page path of the corresponding set top box into a second page path according to the modification request.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the storage method of the page path in any one of claims 1 to 5.
10. A processor, configured to execute a program, wherein the program executes the storage method of the page path according to any one of claim 1 to claim 5.
CN201710719751.2A 2017-08-21 2017-08-21 Method, device and system for storing page path Active CN109429100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710719751.2A CN109429100B (en) 2017-08-21 2017-08-21 Method, device and system for storing page path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710719751.2A CN109429100B (en) 2017-08-21 2017-08-21 Method, device and system for storing page path

Publications (2)

Publication Number Publication Date
CN109429100A CN109429100A (en) 2019-03-05
CN109429100B true CN109429100B (en) 2021-06-11

Family

ID=65497849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710719751.2A Active CN109429100B (en) 2017-08-21 2017-08-21 Method, device and system for storing page path

Country Status (1)

Country Link
CN (1) CN109429100B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111596999B (en) * 2020-05-14 2023-07-25 上海仪电数字技术股份有限公司 Page control method, page control device, electronic equipment and storage medium
CN112632424B (en) * 2021-03-10 2021-06-04 深圳市智信新信息技术有限公司 Page opening method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7747782B2 (en) * 2000-04-26 2010-06-29 Novarra, Inc. System and method for providing and displaying information content
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN106294648B (en) * 2016-08-03 2021-07-27 腾讯科技(深圳)有限公司 Processing method and device for page access path

Also Published As

Publication number Publication date
CN109429100A (en) 2019-03-05

Similar Documents

Publication Publication Date Title
CN108984170B (en) H5 page multi-language rendering method and device
US8577937B1 (en) Repository including exclusion list
CN110674408B (en) Service platform, and real-time generation method and device of training sample
CN108920365B (en) WebUI automatic testing method based on docker
US11262883B2 (en) Associating browser with application
CN111241073B (en) Data quality inspection method and device
CN106933887B (en) Data visualization method and device
CN110020339B (en) Webpage data acquisition method and device based on non-buried point
CN107133165B (en) Browser compatibility detection method and device
CN110717536A (en) Method and device for generating training sample
CN107368343A (en) A kind of starting up of terminal method, terminal and storage medium based on Android system
CN103559065A (en) Method and system for OTA (Over-the-Air Technology) upgrade
CN108920691B (en) Front-end static resource management method and device, computer equipment and storage medium
CN109429100B (en) Method, device and system for storing page path
CN107015986B (en) Method and device for crawling webpage by crawler
CN114329281A (en) Rendering server, webpage rendering method and webpage rendering device
CN105354490B (en) Method and equipment for processing hijacked browser
CN103354927A (en) Method and apparatus for managing content in a processing device
WO2019047677A1 (en) Application download source detection method and apparatus
US8751508B1 (en) Contextual indexing of applications
CN116841653A (en) Execution method and device of operation and maintenance job, processor and electronic equipment
CN115794220A (en) Software source migration method, device and system, computing device and readable storage medium
US10599740B1 (en) Program code streaming
CN109561121B (en) Method and device for monitoring deployment
CN110704742B (en) Feature extraction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant