WO2018098880A1 - 网站信息下载方法及装置 - Google Patents

网站信息下载方法及装置 Download PDF

Info

Publication number
WO2018098880A1
WO2018098880A1 PCT/CN2016/112861 CN2016112861W WO2018098880A1 WO 2018098880 A1 WO2018098880 A1 WO 2018098880A1 CN 2016112861 W CN2016112861 W CN 2016112861W WO 2018098880 A1 WO2018098880 A1 WO 2018098880A1
Authority
WO
WIPO (PCT)
Prior art keywords
website
data
preset
server
returned
Prior art date
Application number
PCT/CN2016/112861
Other languages
English (en)
French (fr)
Inventor
于斐然
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2018098880A1 publication Critical patent/WO2018098880A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a website information downloading method and apparatus.
  • the main object of the present invention is to provide a method and device for downloading website information, which aims to solve the technical problem that it is difficult to quickly open a large-scale television website in the prior art, thereby causing poor TV user experience.
  • the present invention provides a website information downloading method, and the website information downloading method comprises the following steps:
  • the matching file corresponding to the updated website is obtained, and the updated matching file is deployed on the preset server, and the content of the updated matching file includes a rule for parsing the website to be accessed;
  • the website returns updated data, corresponding to the local path of the generated website to return updated data
  • the save site returns updated data with the corresponding local path to the TV side for the TV side browser to call.
  • the website information downloading method further includes the following steps:
  • the matching file corresponding to the website to be accessed is obtained, and the matching file is deployed on the preset server, and the content of the matching file includes rules for parsing the website to be accessed;
  • the data returned by the website includes the html content and the media file
  • the html content is deployed on the preset first server
  • the media file is deployed on the second server preset by the website
  • the website information downloading method further includes:
  • the real-time detection website returns whether the data is downloaded
  • the website to be displayed is downloaded to the website of the television to return the data.
  • the present invention also provides a website information downloading apparatus, and the website information downloading apparatus includes:
  • the obtaining module is configured to obtain a matching file corresponding to the website to be accessed by the television end when the television end is connected to the network, where the matching file is deployed on the preset server, and the content of the matching file includes rule;
  • a receiving module configured to import a URL address request queue to the preset server according to the matching file, to receive data corresponding to the preset server end, and return the corresponding returned data as a website return data;
  • a generating module configured to return data according to the website, corresponding to generating a local path of the website return data
  • the save module is used to save the website return data and the corresponding local path to the TV end for the TV side browser to call.
  • the data returned by the website includes html content and a media file
  • the html content is deployed on a preset first server
  • the media file is deployed on a second server preset by the website
  • the receiving module includes :
  • a second receiving unit configured to receive the html content returned by the preset first server
  • the third receiving unit is configured to receive a media file corresponding to the preset second server.
  • the website information downloading device further includes:
  • a judging module configured to detect, in real time, whether the return data of the website is downloaded after detecting that the website to be displayed is to be displayed;
  • the calling module is used to return the data when the website to be displayed is downloaded to the website of the television end when the website returns the data download.
  • the website information downloading device when detecting that the television end is connected to the network, obtains a matching file corresponding to the website to be accessed by the television terminal, and the matching file is deployed on the preset server, and the content of the matching file is included for parsing a rule of the website to be accessed; importing a URL address request queue to the preset server according to the matching file, to receive data corresponding to the preset server end, and returning the corresponding returned data as a website; returning data according to the website Corresponding to the local path of the generated website return data; save the website return data and the corresponding local path to the TV end for the TV side browser to call.
  • the matching file corresponding to the website to be accessed by the preset server is obtained, so that the updated website can be downloaded to the local end of the television in time for the TV end browser to call, when the television network is in a bad state.
  • the TV terminal can choose to call the website information downloaded to the local, thereby realizing the rapid opening of a huge TV website, and solving the technical problem in the prior art that it is difficult to quickly open a large data website.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for downloading website information according to the present invention
  • FIG. 3 is a refinement process of the step of returning data by the receiving website according to the imported URL address request queue according to the data returned by the imported URL address request queue in the fourth embodiment of the website information downloading method of the present invention; schematic diagram;
  • FIG. 4 is a schematic diagram of functional modules of a first embodiment of a website information downloading apparatus according to the present invention.
  • FIG. 5 is a schematic diagram of a refinement function module of a receiving module in a second embodiment of a website information downloading apparatus according to the present invention.
  • FIG. 6 is a schematic diagram of a refinement function module of a receiving module in a fourth embodiment of a website information downloading apparatus according to the present invention.
  • FIG. 7 is a schematic diagram of a scenario for downloading website information according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a method and an apparatus for downloading website information according to the present invention.
  • FIG. 9 is a flowchart of a method for downloading website information according to the present invention.
  • the method includes:
  • Step S10 When it is detected that the television end is connected to the network, the matching file corresponding to the website to be accessed by the television terminal is obtained, and the matching file is deployed on the preset server, and the content of the matching file includes rules for parsing the website to be accessed;
  • the content of the configured matching file is the rule for parsing the website page, including the regular expression, the verification rule, the number of ajax requests, etc.
  • the browser save function is called to save the content of the downloaded matching file to the local directory, or only
  • the content of the matching file corresponding to the changed part of the website to be accessed is downloaded, and the content of the matching file corresponding to the changed part of the website to be accessed is used as the matching update file, and the matching update file is downloaded and saved to the local.
  • Step S20 importing a URL address request queue to the preset server according to the matching file, to receive data corresponding to the preset server end, and returning the corresponding returned data as a website return data;
  • the data returned by the request queue is returned as the website data, because the links of the website page can correspond to the corresponding lower level pages, that is, the return data may contain various URL addresses or interfaces corresponding to the lower level pages, when the returned data contains the respective URL addresses of the lower level pages or Continue the recursive request until the interface
  • the page is all the URL addresses or interfaces in the queue are all requested and get the return data, or you can only request the URL address or interface corresponding to the changed content in the corresponding website to be visited, and the corresponding website will change in the corresponding visited website page.
  • the URL address or interface corresponding to the content is sent to the corresponding server, and the matching file is updated correspondingly, and the TV end receives the URL address corresponding to the changed content in the corresponding website to be accessed or the website return data corresponding to the interface.
  • Step S30 according to the website return data, corresponding to generating a local path of the website return data
  • the local path of the returned data and the returned website returned data replaces the locally downloaded to-be-visited website and its local storage acquisition path.
  • Step S40 saving the website return data and the corresponding local path to the television end for the television end browser to call.
  • the matching file corresponding to the website to be accessed by the television terminal is obtained, and the matching file is deployed on the preset server, and the content of the matching file includes rules for parsing the website to be accessed.
  • the configured matching file is deployed on the corresponding server, when the website to be accessed is updated, the corresponding matching file is updated accordingly, and the website information download is based on the configured matching file requesting the website page.
  • the interface receives the content returned by the website, so that the updated website can be downloaded, and when the television end is connected to the network, the configured matching file is obtained, so that the updated website can be downloaded to the local website in time to implement the local website page. Timely update, when the network is in poor condition, it can quickly open the download to the local website page to enhance the TV user experience.
  • the website information downloading method further includes:
  • Step S21 verifying whether the data returned by the website is correct according to the verification rule
  • the returned data may also include the URL address or interface of the media file such as URL, js, css and picture.
  • the re-receiving website requests the data corresponding to the queue according to the imported URL address until the correct data returned by the website is received.
  • Step S22 when the website returns the data correctly, it is determined whether the website returns data with the URL address data
  • Step S23 when the website returns the data having the URL address in the data, parsing and obtaining the data having the URL address in the returned data, and returning the data having the URL address in the returned data as the sub-request data, and importing the sub-request data request to the preset server end.
  • the queue receives the data returned by the preset server according to the sub-request data, and returns the data corresponding to the sub-request data as the sub-return data.
  • the returned website When the returned website returns the correct data, it is judged whether the returned data has the data of the URL address; that is, whether the depth of the website or the website page has a corresponding lower level page, and when the returned data has the data of the URL address, the returned data contains When the respective URL addresses or interfaces of the corresponding lower page are parsed, the data having the URL address in the returned data is parsed, the data having the URL address in the returned data is used as the subrequest data, and the subrequest data is imported, and the receiving website returns according to the subrequest data. Data, the website returns the data according to the returned data corresponding to the sub-request data, and repeats the above operation until the receiving website requests the returned data according to the URL address or interface corresponding to each lower-level page.
  • the website it is verified whether the data returned by the website is correct according to the verification rule; when the website returns the data correctly, it is determined whether the data returned by the website has the data of the URL address; when the website returns the data with the URL address in the data, Parsing and obtaining the data having the URL address in the returned data, and returning the data having the URL address in the data as the sub-request data, importing the sub-request data request queue to the preset server, and receiving the data returned by the preset server according to the sub-request data.
  • the sub-request data corresponds to the returned data as the sub-return data.
  • the present invention is capable of downloading a website to be accessed that includes each subordinate page, that is, it is possible to completely download a website to be accessed, so that when the network speed is not good, it is possible to quickly open a large amount of information without considering the network status. Enhance the user experience by visiting each homepage of the website.
  • the website information downloading method further includes:
  • the worker thread is started to import the URL address request queue to the preset server according to the matching file. Since the application of the main thread is not affected during the download process, the user's use of other applications is not affected, and the user experience is improved.
  • the data returned by the website includes a hypertext mark.
  • the language html content and the media file, the html content is deployed on the preset first server, the media file is deployed on the second server preset by the website, and the step of importing the URL address request queue to the preset server according to the matching file is performed.
  • the website information downloading method further includes:
  • Step S24 receiving the html content returned by the preset first server
  • Step S25 Receive a media file corresponding to the preset second server.
  • server A is the interface that returns dynamic html content.
  • server B is a server that stores fixed media files such as js, css, and pictures.
  • the first step of the execution process is to start the worker thread, and the second step is to start requesting the interface of the server A according to the configuration file, and parse the returned Dynamic html content, and replace the server path that returns dynamic html content with the local path. This process requests server B's file at the same time.
  • the third step is to return all the content to the main thread and save it.
  • the html content data returned by each website to be accessed by the website to be visited is different, as shown in FIG. 7, namely, TV A, TV B, and TV C.
  • the model, language, and ID number are different, so content A, content B, and content C are different.
  • the dynamic html content returned to the TV is also different.
  • the website to be visited is only partially updated, only partial updates can be received.
  • the partially updated data is deployed on the first server side, the second server is saved media files such as js and css and pictures, these are fixed, and receive the html returned by the first server according to the imported URL address request queue.
  • the content receives the media file returned by the second server according to the imported URL address request queue.
  • the html content returned by the preset first server is received, and the media file returned by the preset second server is received. Since the website corresponds to multiple servers, the data returned by each server can be separately received during the website information downloading process, thereby improving the download speed of the website information and downloading the website information to the local in time, thereby improving the user experience.
  • the website information downloading method further includes :
  • the real-time detection website returns whether the data is downloaded
  • the website to be displayed is downloaded to the website of the television to return the data.
  • the real-time detection website returns data is downloaded; when the website returns data has not been downloaded, and the user needs to visit the website to be accessed and the network speed is not good, the local pre-stored website data to be accessed is called.
  • the website returns the data downloading, the website to be displayed is downloaded to the website of the television to return data.
  • the website when it is detected that the website to be displayed is to be displayed, the website returns whether the data is downloaded in real time; when the website returns the data download, the website returns the data that the website to be displayed has downloaded to the TV end. Since when the website returns the data downloading, the website returns the data that the website to be displayed has been downloaded to the TV end, which can prevent the downloaded website page from being incorrect or incomplete, and the browser cannot find the required webpage when the network status is poor. Pages, which cause technical problems with poor user experience.
  • the present invention also provides a website information downloading apparatus.
  • the apparatus includes:
  • the obtaining module 10 is configured to: when detecting that the television end is connected to the network, obtain a matching file corresponding to the website to be accessed by the television terminal, where the matching file is deployed on the preset server, and the content of the matching file includes a rule for parsing the website to be accessed. ;
  • the content of the configured matching file is the rule for parsing the website page, including the regular expression, the verification rule, the number of ajax requests, etc., and the browser save function is used to save the content of the downloaded matching file to the local directory, or only the matching is downloaded.
  • the content in the matching file that is correspondingly updated according to the changed part of the website to be accessed is used as a matching update file, and the matching update file is downloaded and saved to the local.
  • the receiving module 20 is configured to import a URL address request queue to the preset server according to the matching file, to receive data corresponding to the preset server end, and return the corresponding returned data as a website return data;
  • the website to be visited returns corresponding data according to the imported URL address or the interface request queue, and the website to be visited corresponds to the requested URL address request queue.
  • the returned data is returned as the website data, because the links of the website page can correspond to the corresponding lower level pages, that is, the return data may contain various URL addresses or interfaces corresponding to the lower level pages, when the returned data contains each URL address or interface of the lower level page, Continue the recursive request, as shown in Figure 9, until All the lower-level pages, that is, all the URL addresses or interfaces in the queue are requested and returned data, or only the URL address or interface corresponding to the changed content in the corresponding website to be accessed is requested, and the corresponding website will be corresponding to the website page to be accessed.
  • the URL address or interface corresponding to the changed content is sent to the corresponding server, and correspondingly, the matching data is updated, and the television end receives the URL address corresponding to the changed content in the corresponding website to be accessed or the website return data corresponding to the interface.
  • the generating module 30 is configured to return a data according to the website, corresponding to generating a local path of the website return data;
  • the saving module 40 is configured to save the website return data and the corresponding local path to the television end for the television end browser to call.
  • the obtaining module 10 is configured to: when detecting that the television end is connected to the network, obtain a matching file corresponding to the website to be accessed by the television end, where the matching file is deployed on the preset server, and the content of the matching file includes
  • the receiving module 20 is configured to import a URL address request queue to the preset server according to the matching file, to receive data corresponding to the preset server end, and return the corresponding returned data as a website.
  • the data generating module 30 is configured to: according to the website return data, corresponding to the local path of the website return data; the saving module 40 is configured to save the website return data and the corresponding local path to the television end for the television end browser to call.
  • the complete flowchart of the solution is shown in Figure 9.
  • the configured matching file is deployed on the corresponding server, when the website to be accessed is updated, the corresponding matching file is updated accordingly, and the website information download is based on the configured matching file requesting the website page.
  • the interface receives the content returned by the website, so that the updated website can be downloaded, and when the television end is connected to the network, the configured matching file is obtained, so that the updated website can be downloaded to the local website in time to implement the local website page. Timely update, when the network is in poor condition, it can quickly open the download to the local website page to enhance the TV user experience.
  • the receiving module includes:
  • a verification unit 21 configured to verify, according to the verification rule, whether the returned data of the website is correct;
  • the determining unit 22 is configured to determine, when the website returns the data correctly, whether the website returns data and whether the data has a URL address;
  • the first receiving unit 23 is configured to: when the website returns the data having the URL address in the data, parse and obtain the data having the URL address in the returned data, and use the data having the URL address in the returned data as the sub-request data, to the preset server end.
  • the sub-request data request queue is imported, and the data returned by the pre-requisite server according to the sub-request data is received, and the data returned by the sub-request data is used as sub-return data.
  • the verification unit 21 is configured to verify whether the data returned by the website is correct according to the verification rule.
  • the determining unit 22 is configured to determine whether the data returned by the website has the URL address when the website returns the data correctly.
  • the website returns the data having the URL address in the data
  • the data obtained by the URL having the URL address is retrieved, and the data having the URL address in the data is returned as the sub-request data
  • the first receiving unit 23 is configured to use the preset server.
  • the terminal imports the sub-request data request queue, and receives the data returned by the preset server according to the sub-request data, and returns the data corresponding to the sub-request data as the sub-return data.
  • the present invention is capable of downloading a website to be accessed that includes each subordinate page, that is, it is possible to completely download a website to be accessed, so that when the network speed is not good, it is possible to quickly open a large amount of information without considering the network status. Enhance the user experience by visiting each homepage of the website.
  • the receiving module further includes:
  • the startup unit is configured to start a worker thread and start a worker thread for importing a URL address request queue to the preset server according to the matching file.
  • Start unit for starting the worker thread (web Worker), for importing a URL address request queue to the preset server based on the matching file, the background web
  • the worker thread silently downloads the update webpage without affecting the smoothness of the main thread and does not affect the user's use.
  • the startup unit is configured to start a worker thread for importing a URL address request queue to the preset server according to the matching file. Since the application of the main thread is not affected during the download process, the user's use of other applications is not affected, and the user experience is improved.
  • the receiving module includes:
  • the second receiving unit 24 is configured to receive the html content returned by the preset first server
  • the third receiving unit 25 is configured to receive a media file corresponding to the preset second server.
  • the second receiving unit 24 is configured to receive the returned html content corresponding to the preset first server
  • the third receiving unit 25 is configured to receive the media file returned by the preset second server. Since the website corresponds to multiple servers, the data returned by each server can be separately received during the website information downloading process, thereby improving the download speed of the website information and downloading the website information to the local in time, thereby improving the user experience.
  • the website information downloading apparatus further includes:
  • a judging module configured to detect, in real time, whether the return data of the website is downloaded after detecting that the website to be displayed is to be displayed;
  • the calling module is used to return the data returned by the website to be displayed to the television end when the website returns the data download.
  • the determining module is configured to detect, when the website to be displayed is to be displayed, whether the website return data is downloaded in real time; and the calling module is configured to: when the website returns the data downloading, call the website to be displayed. Download the data to the website on the TV side. Since when the website returns the data downloading, the website returns the data that the website to be displayed has been downloaded to the TV end, which can prevent the downloaded website page from being incorrect or incomplete, and the browser cannot find the required webpage when the network status is poor. Pages, which cause technical problems with poor user experience.

Abstract

本发明公开了一种网站信息下载方法和装置,该方法包括:当检测到电视端连接网络时,获取电视端待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,所述匹配文件的内容包括用于解析待访问网站的规则;根据匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;根据网站返回数据,对应生成网站返回数据的本地路径;保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。本发明解决现有技术难以实现快速打开一个数据庞大的电视网站从而造成电视用户体验差的技术问题。

Description

网站信息下载方法及装置
技术领域
本发明涉及通信技术领域,尤其涉及一种网站信息下载方法及装置。
背景技术
随着智能终端的迅速普及,智能电视发展突飞猛进,如何实现快速打开一个数据庞大的电视网站(网站包括主页和主页的下级页面),尤其在网络状况不好时,成为技术难题,现有技术中,通过html(超级文本标记语言)缓存机制可以实现在电视端快速的打开一个已经打开过的网站,但需要为每台电视都配置一个缓存文件,并且要维护这个文件,当电视用户非常多时,维护和运营的成本很高,对于电视网站对应服务器的压力也非常大,难以实现。
发明内容
本发明的主要目的在于提供一种网站信息下载方法及装置,旨在解决现有技术中难以实现快速打开一个数据庞大的电视网站从而造成电视用户体验差的技术问题。
为实现上述目的,本发明提供的一种网站信息下载方法,所述网站信息下载方法包括以下步骤:
当检测到电视端连接网络时,获取待访问网站对应更新的匹配文件,所述更新的匹配文件部署于预置服务器端,所述更新的匹配文件的内容包括用于解析待访问网站的规则;
根据更新的匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回更新数据;
根据网站返回更新数据,对应生成网站返回更新数据的本地路径;
保存网站返回更新数据与相应本地路径到电视端,以供电视端浏览器调用。
所述网站信息下载方法还包括以下步骤:
当检测到电视端连接网络时,获取待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,所述匹配文件的内容包括用于解析待访问网站的规则;
根据匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;
根据网站返回数据,对应生成网站返回数据的本地路径;
保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。
优选地,网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,其特征在于,所述根据匹配文件向所述预置服务器端导入URL地址请求队列步骤之后,所述方法还包括:
接收预置的第一服务器对应返回的html内容;
接收预置的第二服务器对应返回的媒体文件。
优选地,所述网站信息下载方法还包括:
当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;
当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据。
本发明还提供一种网站信息下载装置,所述网站信息下载装置包括:
获取模块,用于当检测到电视端连接网络时,获取电视端待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,所述匹配文件的内容包括用于解析待访问网站的规则;
接收模块,用于根据匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;
生成模块,用于根据网站返回数据,对应生成网站返回数据的本地路径;
保存模块,用于保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。
优选地,所述网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,其特征在于,所述接收模块包括:
第二接收单元,用于接收预置的第一服务器对应返回的html内容;
第三接收单元,用于接收预置的第二服务器对应返回的媒体文件。
所述网站信息下载装置还包括:
判断模块,用于当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;
调用模块,用于当网站返回数据下载完毕时,则调用待显示网站已下载到电视端网站返回数据。
本发明提供的网站信息下载装置,当检测到电视端连接网络时,获取电视端待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,所述匹配文件的内容包括用于解析待访问网站的规则;根据匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;根据网站返回数据,对应生成网站返回数据的本地路径;保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。由于当检测到电视端连接网络时,获取预置服务器端待访问网站对应的匹配文件,因而能够及时下载更新后的网站到电视端本地,以供电视端浏览器调用,当电视网络状态不佳时,电视端能够选择调用下载到本地的网站信息,从而实现快速打开一个数据庞大的电视网站,解决了现有技术中难以实现快速打开一个数据庞大的电视网站的技术问题。
附图说明
图1为本发明网站信息下载方法第一实施例的流程示意图;
图2为本发明网站信息下载方法第二实施例中接收网站根据导入的URL地址请求队列对应返回的数据,将网站根据导入的URL地址请求队列对应返回的数据作为网站返回数据步骤之后的细化流程示意图;
图3为本发明网站信息下载方法第四实施例中接收网站根据导入的URL地址请求队列对应返回的数据,将网站根据导入的URL地址请求队列对应返回的数据作为网站返回数据步骤的细化流程示意图;
图4为本发明网站信息下载装置第一实施例的功能模块示意图;
图5为本发明网站信息下载装置第二实施例中的接收模块的细化功能模块示意图;
图6为本发明网站信息下载装置第四实施例中接收模块的细化功能模块示意图;
图7为本发明实施例网站信息下载的一种场景示意图;
图8为本发明网站信息下载方法与装置的结构示意图;
图9为本发明网站信息下载方法对应的流程图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
为更好理解本发明,在此提供一种网站信息下载方法,在网站信息下载方法实施例中,参照图1,该方法包括:
步骤S10,当检测到电视端连接网络时,获取电视端待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,匹配文件的内容包括用于解析待访问网站的规则;
启动电视,当检测到电视端连接网络时,加载framework.html(架构),在此framework中使用ajax(网页开发)技术,异步请求待访问网站的相应配置的匹配文件(config.js)地址,把配置文件部署到预置服务器端,当待访问网站更新时,待访问网站的更新包括网站页面的更新,升级,修复等,相应更新服务器端对应的匹配文件,下载得到更新后的匹配文件的内容,配置的匹配文件的内容是解析网站页面的规则,包括正则表达式、校验规则、ajax请求数量等,调用浏览器的保存函数把下载的匹配文件的内容保存到本地目录,也可只下载匹配文件中根据待访问网站变化部分相对应更新了的内容,将匹配文件中根据待访问网站变化部分相对应更新了的内容作为匹配更新文件,下载得到匹配更新文件并保存到本地。
步骤S20,根据匹配文件向预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;
下载匹配文件或者匹配更新文件后,根据匹配文件中配置的匹配规则,开始请求待访问网站的接口,根据匹配文件中的解析规则解析出其中的URL(URL)地址以及js(脚本语言)、css(层叠样式表)和图片等媒体文件的URL地址或者接口,并将各个URL地址或接口导入待访问网站并加入请求队列,当系统繁忙时,可暂停请求队列中的地址或接口,当系统不繁忙时,继续请求队列中的地址或接口,直到队列中所有URL地址或接口全部请求,待访问网站根据导入的各个URL地址或者接口请求队列对应返回相应数据,将待访问网站根据导入的URL地址请求队列对应返回的数据作为网站返回数据,因网站页面各项链接可对应相应下级页面,即是返回数据可能含有对应下级页面的各个URL地址或接口,当返回数据含有下级页面的各个URL地址或接口时,继续递归请求,直至各个下级页面即队列中所有URL地址或接口全部请求并得到返回数据,也可只需要请求相应待访问网站页面中已变化的内容对应的URL地址或接口,相应网站将相应待访问网站页面中已变化的内容对应的URL地址或接口发送至相应服务器端,并对应更新匹配文件的,电视端接收相应待访问网站页面中已变化的内容对应的URL地址或接口对应的网站返回数据。
步骤S30,根据网站返回数据,对应生成网站返回数据的本地路径;
获取待访问网站在本地的数据与相应本地路径,即是获取本地已下载的待访问网站及其在本地的储存获取路径,根据网站返回数据,对应替换生成网站返回数据的本地路径,并将网站返回数据与替换生成的网站返回数据的本地路径替换本地已下载的待访问网站及其在本地的储存获取路径。当接收的是网站更新的各个页面对应的网站返回数据而未更新的没有相应网站返回数据时,将本地相应数据替换为更新的数据。
步骤S40,保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。
保存网站返回数据与相应替换生成的网站返回数据的本地路径到本地,当启动网站浏览器且网速不好时,获取本地已下载保存的网站页面。
在本实施例中,当检测到电视端连接网络时,获取电视端待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,匹配文件的内容包括用于解析待访问网站的规则;根据匹配文件向预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;根据网站返回数据,对应生成网站返回数据的本地路径;保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。本方案完整流程图如图9所示,由于配置的匹配文件部署在相应服务器端,当待访问网站页面更新时,相应更新对应的匹配文件,而网站信息下载是根据配置的匹配文件请求网站页面接口并接收网站返回的内容,因而能够实现下载更新后的网站,且当检测到电视端连接网络时,即获取配置的匹配文件,因而能够及时下载更新后的网站到本地,实现本地的网站页面及时更新,在网络状况不佳时,从而能够快速打开下载到本地的网站页面,提升电视用户体验。
进一步地,在本发明网站信息下载方法实施例的基础上,提出网站信息下载方法的第二实施例,参照图2,在第二实施例中,所述网站信息下载方法还包括:
步骤S21,根据校验规则校验网站返回数据是否正确;
获取匹配文件中的校验规则,每次得到网站返回数据后,根据校验规则校验网站返回数据是否正确,返回的数据也可包括URL、js、css和图片等媒体文件的URL地址或者接口,当返回数据不正确时,重新接收网站根据导入的URL地址请求队列对应返回的数据,直到接收网站返回的正确数据。
步骤S22,当网站返回数据正确时,判断网站返回数据中是否拥有URL地址的数据;
步骤S23,当网站返回数据中拥有URL地址的数据时,解析获取返回数据中拥有URL地址的数据,将返回数据中拥有URL地址的数据作为子请求数据,向预置服务器端导入子请求数据请求队列,接收预置服务器端根据子请求数据对应返回的数据,将子请求数据对应返回的数据作为子返回数据。
当待访问网站返回数据正确时,判断返回数据是否拥有URL地址的数据;即是判断网站的深度或者网站页面是否有相应下级页面,当返回数据中拥有URL地址的数据时,即是返回数据含有相应下级页面的各个URL地址或接口时,解析获取返回数据中拥有URL地址的数据,将返回数据中拥有URL地址的数据作为子请求数据,导入子请求数据,接收网站根据子请求数据对应返回的数据,将网站根据子请求数据对应的返回的数据作为子返回数据,重复上述操作直至接收网站根据各个下级页面对应的URL地址或接口请求返回的数据。
在本实施例中,通过根据校验规则校验网站返回数据是否正确;当网站返回数据正确时,判断网站返回数据中是否拥有URL地址的数据;当网站返回数据中拥有URL地址的数据时,解析获取返回数据中拥有URL地址的数据,将返回数据中拥有URL地址的数据作为子请求数据,向预置服务器端导入子请求数据请求队列,接收预置服务器端根据子请求数据对应返回的数据,将子请求数据对应返回的数据作为子返回数据。由于本发明能够下载含有各个下级页面的待访问网站,即是能够完整的下载一个待访问网站,因而能够在网速不好时,可实现不需要考虑网络状态,就可以快速打开信息量庞大的待访问网站的各个主页,提升用户体验。
进一步地,在本发明网站信息下载方法第一实施例的基础上,提出网站信息下载方法的第三实施例,在第三实施例中,步骤S20之前,所述网站信息下载方法还包括:
启动工作线程,启动工作线程,以供根据匹配文件向预置服务器端导入URL地址请求队列。
启动工作线程(web worker),以供根据匹配文件向预置服务器端导入URL地址请求队列,后台web worker线程静默下载更新网页,不影响主线程的流畅,不影响用户的使用。
在本实施例中,通过启动工作线程,以供根据匹配文件向预置服务器端导入URL地址请求队列。由于在下载过程中未影响主线程的应用,因而不影响用户对其它各项应用的使用,提升用户体验。
进一步地,在本发明网站信息下载方法第一实施例的基础上,提出网站信息下载方法的第四实施例,参照图3,在第四实施例中,所述网站返回的数据包括超文本标记语言html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,所述根据匹配文件向所述预置服务器端导入URL地址请求队列步骤之后,所述网站信息下载方法还包括:
步骤S24,接收预置的第一服务器对应返回的html内容;
步骤S25,接收预置的第二服务器对应返回的媒体文件。
可以把html内容(超文本标记语言对应的文本信息)与其他媒体文件(js和css和图片等)分别部署到不同的服务器上,如图8所示,服务器A是返回动态html内容的接口端服务器,服务器B是保存js、css和图片等样式固定的媒体文件的服务器,具体的,执行过程第一步是启动工作线程,第二步是根据配置文件开始请求服务器A端的接口,解析返回的动态html内容,并将返回动态html内容的服务器路径替换为本地的路径,此过程同时请求服务器B的文件,最后执行第三步即把所有的内容返回到主线程,并保存。由于html内容是动态的,变化的,部署于第一服务器,电视端配置不同,该待访问网站返回各个电视端的html内容数据不同,如图7所示,即是电视A,电视B,电视C的机型,语言,ID号不同,因而内容A,内容B,内容C也不同,所返回到电视端的动态html内容也不相同,同时,当待访问网站只是部分更新时,可只接收部分更新的数据,将部分更新的数据部署于第一服务器端,第二服务器是保存的js和css和图片等媒体文件,这些可是固定的,接收第一服务器根据导入的URL地址请求队列对应返回的html内容,接收第二服务器根据导入的URL地址请求队列对应返回的媒体文件。
在本实施例中,通过接收预置的第一服务器对应返回的html内容;接收预置的第二服务器对应返回的媒体文件。由于网站对应多个服务器,因而在网站信息下载过程中能够分别接收各个服务器返回的数据,因而可提升网站信息下载速度,及时把网站信息下载到本地,当提升用户体验。
进一步地,在本发明网站信息下载方法第一实施例的基础上,提出网站信息下载方法的第五实施例,在第五实施例中,所述步骤S20之后,所述网站信息下载方法还包括:
当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;
当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据。
当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;当网站返回数据未下载完毕,而用户需访问待访问网站且网速不好时,调用本地已预存的待访问网站数据,当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据。
在本实施例中,通过当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据。由于当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据,能够防止下载的网站页面不正确或不完整而造成在网络状况差时,打开浏览器不能找到需要的网页页面,而造成用户体验差的技术问题。
本发明还提供一种网站信息下载装置,在网站信息下载装置实施例中,参照图4,该装置包括:
获取模块10,用于当检测到电视端连接网络时,获取电视端待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,匹配文件的内容包括用于解析待访问网站的规则;
启动电视,当检测到电视端连接网络时,加载framework.html(架构),在此framework中使用ajax(网页开发)技术,异步请求待访问网站的相应配置的匹配文件(config.js)地址,把配置文件部署到服务器端,当待访问网站更新时,待访问网站的更新包括网站页面的更新,升级,修复等,相应更新服务器端对应的匹配文件,下载得到更新后的匹配文件的内容,配置的匹配文件的内容是解析网站页面的规则,包括正则表达式、校验规则、ajax请求数量等,调用浏览器的保存函数把下载的匹配文件的内容保存到本地目录,也可只下载匹配文件中根据待访问网站变化部分相对应更新了的内容,将匹配文件中根据待访问网站变化部分相对应更新了的内容作为匹配更新文件,下载得到匹配更新文件并保存到本地。
接收模块20,用于根据匹配文件向预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;
下载匹配文件或者匹配更新文件后,根据匹配文件中配置的匹配规则,开始请求待访问网站的接口,根据匹配文件中的解析规则解析出其中的URL地址以及js(脚本语言)、css(层叠样式表)和图片等媒体文件的URL地址或者接口,并将各个URL地址或接口导入待访问网站并加入请求队列,当系统繁忙时,可暂停请求队列中的地址或接口,当系统不繁忙时,继续请求队列中的地址或接口,直到队列中所有URL地址或接口全部请求,待访问网站根据导入的各个URL地址或者接口请求队列对应返回相应数据,将待访问网站根据导入的URL地址请求队列对应返回的数据作为网站返回数据,因网站页面各项链接可对应相应下级页面,即是返回数据可能含有对应下级页面的各个URL地址或接口,当返回数据含有下级页面的各个URL地址或接口时,继续递归请求,如图9所示,直至各个下级页面即队列中所有URL地址或接口全部请求并得到返回数据,也可只需要请求相应待访问网站页面中已变化的内容对应的URL地址或接口,相应网站将相应待访问网站页面中已变化的内容对应的URL地址或接口发送至相应服务器端,并对应更新匹配文件的,电视端接收相应待访问网站页面中已变化的内容对应的URL地址或接口对应的网站返回数据。
生成模块30,用于根据网站返回数据,对应生成网站返回数据的本地路径;
保存模块40,用于保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。
在本实施例中,通过获取模块10,用于当检测到电视端连接网络时,获取电视端待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,匹配文件的内容包括用于解析待访问网站的规则;接收模块20,用于根据匹配文件向预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;生成模块30,用于根据网站返回数据,对应生成网站返回数据的本地路径;保存模块40,用于保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。本方案完整流程图如图9所示,由于配置的匹配文件部署在相应服务器端,当待访问网站页面更新时,相应更新对应的匹配文件,而网站信息下载是根据配置的匹配文件请求网站页面接口并接收网站返回的内容,因而能够实现下载更新后的网站,且当检测到电视端连接网络时,即获取配置的匹配文件,因而能够及时下载更新后的网站到本地,实现本地的网站页面及时更新,在网络状况不佳时,从而能够快速打开下载到本地的网站页面,提升电视用户体验。
进一步地,在本发明网站信息下载装置实施例的基础上,提出网站信息下载装置的第二实施例,参照图5,在第二实施例中,接收模块包括:
校验单元21,用于根据校验规则校验网站返回数据是否正确;
判断单元22,用于当网站返回数据正确时,判断网站返回数据中是否拥有URL地址的数据;
第一接收单元23,用于当网站返回数据中拥有URL地址的数据时,解析获取返回数据中拥有URL地址的数据,将返回数据中拥有URL地址的数据作为子请求数据,向预置服务器端导入子请求数据请求队列,接收预置服务器端根据子请求数据对应返回的数据,将子请求数据对应返回的数据作为子返回数据。
在本实施例中,通过校验单元21,用于根据校验规则校验网站返回数据是否正确;判断单元22,用于当网站返回数据正确时,判断网站返回数据中是否拥有URL地址的数据;当网站返回数据中拥有URL地址的数据时,解析获取返回数据中拥有URL地址的数据,将返回数据中拥有URL地址的数据作为子请求数据,第一接收单元23,用于向预置服务器端导入子请求数据请求队列,接收预置服务器端根据子请求数据对应返回的数据,将子请求数据对应返回的数据作为子返回数据。由于本发明能够下载含有各个下级页面的待访问网站,即是能够完整的下载一个待访问网站,因而能够在网速不好时,可实现不需要考虑网络状态,就可以快速打开信息量庞大的待访问网站的各个主页,提升用户体验。
进一步地,在本发明网站信息下载装置第一实施例的基础上,提出网站信息下载装置的第三实施例,在第三实施例中,所述接收模块还包括:
启动单元,用于启动工作线程,启动工作线程,以供根据匹配文件向预置服务器端导入URL地址请求队列。
启动单元,用于启动工作线程(web worker),以供根据匹配文件向预置服务器端导入URL地址请求队列,后台web worker线程静默下载更新网页,不影响主线程的流畅,不影响用户的使用。
在本实施例中,通过启动单元,用于启动工作线程,以供根据匹配文件向预置服务器端导入URL地址请求队列。由于在下载过程中未影响主线程的应用,因而不影响用户对其它各项应用的使用,提升用户体验。
进一步地,在本发明网站信息下载装置第一实施例的基础上,提出网站信息下载方法的第四实施例,参照图6,在第四实施例中,所述接收模块包括:
第二接收单元24,用于接收预置的第一服务器对应返回的html内容;
第三接收单元25,用于接收预置的第二服务器对应返回的媒体文件。
在本实施例中,通过第二接收单元24,用于接收预置的第一服务器对应返回的html内容;第三接收单元25,用于接收预置的第二服务器对应返回的媒体文件。由于网站对应多个服务器,因而在网站信息下载过程中能够分别接收各个服务器返回的数据,因而可提升网站信息下载速度,及时把网站信息下载到本地,当提升用户体验。
进一步地,在本发明网站信息下载装置第一实施例的基础上,提出网站信息下载装置的第五实施例,在第五实施例中,所述网站信息下载装置还包括:
判断模块,用于当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;
调用模块,用于当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据。
在本实施例中,通过判断模块,用于当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;调用模块,用于当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据。由于当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据,能够防止下载的网站页面不正确或不完整而造成在网络状况差时,打开浏览器不能找到需要的网页页面,而造成用户体验差的技术问题。

Claims (17)

  1. 一种网站信息下载方法,其特征在于,所述网站信息下载方法包括:
    当检测到电视端连接网络时,获取待访问网站对应更新的匹配文件,所述更新的匹配文件部署于预置服务器端,所述更新的匹配文件的内容包括用于解析待访问网站的规则;
    根据更新的匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回更新数据;
    根据网站返回更新数据,对应生成网站返回更新数据的本地路径;
    保存网站返回更新数据与相应本地路径到电视端,以供电视端浏览器调用。
  2. 如权利要求1所述的网站信息下载方法,其特征在于,所述网站返回更新数据中包含拥有URL地址的数据,所述解析待访问网站的规则包括校验规则,
    所述根据更新的匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回更新数据步骤之后,所述方法还包括:
    根据校验规则校验网站返回更新数据是否正确;
    当网站返回更新数据正确时,判断网站返回更新数据中是否拥有URL地址的数据;
    当网站返回更新数据中拥有URL地址的数据时,解析获取返回更新数据中拥有URL地址的数据,将返回更新数据中拥有URL地址的数据作为子请求更新数据,向预置服务器端导入子请求更新数据请求队列,接收预置服务器端根据子请求更新数据对应返回的数据,将子请求更新数据对应返回的数据作为子返回更新数据。
  3. 如权利要求1所述的网站信息下载方法,其特征在于,所述根据更新的匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回更新数据步骤之前,所述方法还包括:
    启动工作线程,以供根据更新的匹配文件向预置服务器端导入URL地址请求队列。
  4. 一种网站信息下载方法,其特征在于,所述网站信息下载方法包括:
    当检测到电视端连接网络时,获取待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,所述匹配文件的内容包括用于解析待访问网站的规则;
    根据匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;
    根据网站返回数据,对应生成网站返回数据的本地路径;
    保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。
  5. 如权利要求4所述的网站信息下载方法,其特征在于,所述网站返回数据中包含拥有URL地址的数据,所述解析待访问网站的规则包括校验规则,
    所述根据匹配文件向预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据步骤之后,所述方法还包括:
    根据校验规则校验网站返回数据是否正确;
    当网站返回数据正确时,判断网站返回数据中是否拥有URL地址的数据;
    当网站返回数据中拥有URL地址的数据时,解析获取返回数据中拥有URL地址的数据,将返回数据中拥有URL地址的数据作为子请求数据,向预置服务器端导入子请求数据请求队列,接收预置服务器端根据子请求数据对应返回的数据,将子请求数据对应返回的数据作为子返回数据。
  6. 如权利要求4所述的网站信息下载方法,其特征在于,所述根据匹配文件向预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据步骤之前,所述方法还包括:
    启动工作线程,以供根据匹配文件向预置服务器端导入URL地址请求队列。
  7. 如权利要求4所述的网站信息下载方法,其特征在于,所述网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,所述根据匹配文件向所述预置服务器端导入URL地址请求队列步骤之后,所述方法还包括:
    接收预置的第一服务器对应返回的html内容;
    接收预置的第二服务器对应返回的媒体文件。
  8. 如权利要求5所述的网站信息下载方法,其特征在于,所述网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,所述根据匹配文件向所述预置服务器端导入URL地址请求队列步骤之后,所述方法还包括:
    接收预置的第一服务器对应返回的html内容;
    接收预置的第二服务器对应返回的媒体文件。
  9. 如权利要求6所述的网站信息下载方法,其特征在于,所述网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,所述根据匹配文件向所述预置服务器端导入URL地址请求队列步骤之后,所述方法还包括:
    接收预置的第一服务器对应返回的html内容;
    接收预置的第二服务器对应返回的媒体文件。
  10. 如权利要求4所述的网站信息下载方法,其特征在于,所述网站信息下载方法还包括:
    当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;
    当网站返回数据下载完毕时,则调用待显示网站已下载到电视端的网站返回数据。
  11. 一种网站信息下载装置,其特征在于,所述网站信息下载装置包括:
    获取模块,用于当检测到电视端连接网络时,获取待访问网站对应的匹配文件,所述匹配文件部署于预置服务器端,所述匹配文件的内容包括用于解析待访问网站的规则;
    接收模块,用于根据匹配文件向所述预置服务器端导入URL地址请求队列,以接收所述预置服务器端对应返回的数据,将该对应返回的数据作为网站返回数据;
    生成模块,用于根据网站返回数据,对应生成网站返回数据的本地路径;
    保存模块,用于保存网站返回数据与相应本地路径到电视端,以供电视端浏览器调用。
  12. 如权利要求11所述的网站信息下载装置,所述网站返回数据中包含拥有URL地址的数据,所述解析待访问网站的规则包括校验规则,
    所述接收模块包括:
    校验单元,用于根据校验规则校验网站返回数据是否正确;
    判断单元,用于当网站返回数据正确时,判断网站返回数据中是否拥有URL地址的数据;
    第一接收单元,用于当网站返回数据中拥有URL地址的数据时,解析获取返回数据中拥有URL地址的数据,将返回数据中拥有URL地址的数据作为子请求数据,向预置服务器端导入子请求数据请求队列,接收预置服务器端根据子请求数据对应返回的数据,将子请求数据对应返回的数据作为子返回数据。
  13. 如权利要求11所述的网站信息下载装置,其特征在于,所述接收模块还包括:
    启动单元,用于启动工作线程,以供根据匹配文件向预置服务器端导入URL地址请求队列。
  14. 如权利要求11所述的网站信息下载装置,其特征在于,所述网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,其特征在于,所述接收模块包括:
    第二接收单元,用于接收预置的第一服务器对应返回的html内容;
    第三接收单元,用于接收预置的第二服务器对应返回的媒体文件。
  15. 如权利要求12所述的网站信息下载装置,其特征在于,所述网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,其特征在于,所述接收模块包括:
    第二接收单元,用于接收预置的第一服务器对应返回的html内容;
    第三接收单元,用于接收预置的第二服务器对应返回的媒体文件。
  16. 如权利要求13所述的网站信息下载装置,其特征在于,所述网站返回的数据包括html内容与媒体文件,所述html内容部署于预置的第一服务器,媒体文件部署于网站预置的第二服务器,其特征在于,所述接收模块包括:
    第二接收单元,用于接收预置的第一服务器对应返回的html内容;
    第三接收单元,用于接收预置的第二服务器对应返回的媒体文件。
  17. 如权利要求11所述的网站信息下载装置,其特征在于,所述网站信息下载装置还包括:
    判断模块,用于当检测到要显示待显示网站时,实时检测网站返回数据是否下载完毕;
    调用模块,用于当网站返回数据下载完毕时,则调用待显示网站已下载到电视端网站返回数据。
PCT/CN2016/112861 2016-11-30 2016-12-29 网站信息下载方法及装置 WO2018098880A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611086721.4A CN106446299A (zh) 2016-11-30 2016-11-30 网站信息下载方法及装置
CN201611086721.4 2016-11-30

Publications (1)

Publication Number Publication Date
WO2018098880A1 true WO2018098880A1 (zh) 2018-06-07

Family

ID=58224019

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112861 WO2018098880A1 (zh) 2016-11-30 2016-12-29 网站信息下载方法及装置

Country Status (2)

Country Link
CN (1) CN106446299A (zh)
WO (1) WO2018098880A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420408A (zh) * 2021-05-14 2021-09-21 上海霍普建筑设计事务所股份有限公司 Cad网络化导入系统和导入方法
CN113596542A (zh) * 2021-08-09 2021-11-02 视若飞信息科技(上海)有限公司 一种智能电视应用图标的显示方法和装置及智能电视
CN114629896A (zh) * 2022-04-19 2022-06-14 高途教育科技集团有限公司 文件的下载方法及装置、电子设备、可读存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408750A (zh) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 页面显示方法、装置、计算机设备和存储介质
CN109522350B (zh) * 2018-10-19 2023-07-11 海闻科技有限公司 一种台账控件解析的方法
CN109922368B (zh) * 2019-02-18 2021-09-21 海信视像科技股份有限公司 一种基于网页页面的图片显示方法及智能电视
CN110309448A (zh) * 2019-07-05 2019-10-08 深圳创维-Rgb电子有限公司 获取epop的方法、装置及可读存储介质
CN112269608B (zh) * 2020-11-19 2022-08-19 四川长虹电器股份有限公司 一种在电视终端实现web应用加载优化的方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101770502A (zh) * 2009-12-30 2010-07-07 深圳市同洲电子股份有限公司 一种脚本处理的方法、装置和嵌入式浏览器
CN101790050A (zh) * 2009-12-18 2010-07-28 康佳集团股份有限公司 一种网络电视终端及其浏览页面的方法和装置
CN101808114A (zh) * 2010-02-09 2010-08-18 深圳市同洲电子股份有限公司 实现网页访问的方法、系统及前端服务器
CN102737116A (zh) * 2012-05-29 2012-10-17 深圳市同洲电子股份有限公司 一种网页资源保存方法和装置
KR20130079926A (ko) * 2012-01-03 2013-07-11 엘지전자 주식회사 영상표시장치, 및 그 동작방법
CN104093075A (zh) * 2014-06-11 2014-10-08 深圳市九洲电器有限公司 一种门户页面更新方法及系统
JP2015056883A (ja) * 2013-09-10 2015-03-23 株式会社Halcom ケーブルテレビ放送網・デジタルテレビ放送網・衛星(bs・cs)テレビ放送網・光回線によるテレビ放送網およびそれに伴う少なくともデータ放送およびハイブリッドキャストならびにインターネットによりテレビ受像機を活用した、コンテンツ閲覧システムおよび方法、ならびにサーバー装置およびアプリケーション

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369280A (zh) * 2008-10-10 2009-02-18 深圳市茁壮网络技术有限公司 一种数字电视终端网页浏览的方法和装置
CN105530543B (zh) * 2014-09-28 2019-01-18 深圳Tcl新技术有限公司 一种浏览器自动网页资源下载方法及装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101790050A (zh) * 2009-12-18 2010-07-28 康佳集团股份有限公司 一种网络电视终端及其浏览页面的方法和装置
CN101770502A (zh) * 2009-12-30 2010-07-07 深圳市同洲电子股份有限公司 一种脚本处理的方法、装置和嵌入式浏览器
CN101808114A (zh) * 2010-02-09 2010-08-18 深圳市同洲电子股份有限公司 实现网页访问的方法、系统及前端服务器
KR20130079926A (ko) * 2012-01-03 2013-07-11 엘지전자 주식회사 영상표시장치, 및 그 동작방법
CN102737116A (zh) * 2012-05-29 2012-10-17 深圳市同洲电子股份有限公司 一种网页资源保存方法和装置
JP2015056883A (ja) * 2013-09-10 2015-03-23 株式会社Halcom ケーブルテレビ放送網・デジタルテレビ放送網・衛星(bs・cs)テレビ放送網・光回線によるテレビ放送網およびそれに伴う少なくともデータ放送およびハイブリッドキャストならびにインターネットによりテレビ受像機を活用した、コンテンツ閲覧システムおよび方法、ならびにサーバー装置およびアプリケーション
CN104093075A (zh) * 2014-06-11 2014-10-08 深圳市九洲电器有限公司 一种门户页面更新方法及系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420408A (zh) * 2021-05-14 2021-09-21 上海霍普建筑设计事务所股份有限公司 Cad网络化导入系统和导入方法
CN113420408B (zh) * 2021-05-14 2024-03-19 上海霍普建筑设计事务所股份有限公司 Cad网络化导入系统和导入方法
CN113596542A (zh) * 2021-08-09 2021-11-02 视若飞信息科技(上海)有限公司 一种智能电视应用图标的显示方法和装置及智能电视
CN113596542B (zh) * 2021-08-09 2024-03-15 视若飞信息科技(上海)有限公司 一种智能电视应用图标的显示方法和装置及智能电视
CN114629896A (zh) * 2022-04-19 2022-06-14 高途教育科技集团有限公司 文件的下载方法及装置、电子设备、可读存储介质

Also Published As

Publication number Publication date
CN106446299A (zh) 2017-02-22

Similar Documents

Publication Publication Date Title
WO2018098880A1 (zh) 网站信息下载方法及装置
WO2019174375A1 (zh) 接口测试方法、装置、设备及计算机可读存储介质
WO2019165691A1 (zh) 自动生成测试案例的方法、装置、设备及可读存储介质
WO2017028601A1 (zh) 智能终端的语音控制方法、装置及电视机系统
WO2017092268A1 (zh) 终端故障处理方法、装置及系统
WO2017088664A1 (zh) 集群文件系统的数据处理方法和装置
WO2017190450A1 (zh) 进程关闭方法及装置
WO2019127837A1 (zh) 建表脚本生成方法、装置、设备及计算机可读存储介质
WO2016101677A1 (zh) 局域网设备通信的方法及系统
WO2016192254A1 (zh) 网络视频在线播放的方法和装置
WO2017041538A1 (zh) 终端用户界面的受控显示方法及装置
WO2019075973A1 (zh) 应用程序的测试方法及装置
WO2018068411A1 (zh) 智能电视远程调试方法及智能电视远程调试系统
WO2020224247A1 (zh) 基于区块链的数据溯源方法、装置、设备及可读存储介质
WO2015131803A1 (en) Application recommending method and system
US20150379030A1 (en) Platform integrating method and system for adapting third-party web page in application
WO2019114262A1 (zh) 加载用户界面的方法、智能电视及计算机可读存储介质
WO2018053963A1 (zh) 智能电视的系统升级方法及装置
WO2018036057A1 (zh) 软件后台自适应升级方法及装置
WO2019127869A1 (zh) 漏洞信息收集方法、装置、设备及可读存储介质
WO2013166805A1 (zh) 选择电视机网络应用的方法及装置
WO2019080401A1 (zh) 脚本语句转换方法、装置及计算机可读存储介质
WO2017036208A1 (zh) 显示界面中的信息提取方法及系统
WO2017084301A1 (zh) 音频数据播放方法、装置及智能电视机
WO2017016310A1 (zh) 遥控功能数据动态配置的方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16923000

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/10/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 16923000

Country of ref document: EP

Kind code of ref document: A1