WO2018000864A1 - Method for router supporting rss feed task download and router - Google Patents

Method for router supporting rss feed task download and router Download PDF

Info

Publication number
WO2018000864A1
WO2018000864A1 PCT/CN2017/077421 CN2017077421W WO2018000864A1 WO 2018000864 A1 WO2018000864 A1 WO 2018000864A1 CN 2017077421 W CN2017077421 W CN 2017077421W WO 2018000864 A1 WO2018000864 A1 WO 2018000864A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
download
file
resource
rss
Prior art date
Application number
PCT/CN2017/077421
Other languages
French (fr)
Chinese (zh)
Inventor
陶成军
Original Assignee
上海斐讯数据通信技术有限公司
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 上海斐讯数据通信技术有限公司 filed Critical 上海斐讯数据通信技术有限公司
Publication of WO2018000864A1 publication Critical patent/WO2018000864A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Abstract

Disclosed are a method for a router supporting an RSS feed task download and a router, wherein the router has an offline download function. The method comprises: arranging a URL of an RSS feed website to be downloaded in a offline download page of a router; the router arranging the URL of the RSS feed website to be downloaded in a configuration file; the router obtaining and parsing a corresponding XML file according to the URL of the RSS feed website in the configuration file; obtaining a download path of a BT resource in the XML file and downloading a corresponding BT file, and saving the BT file to a BT file download directory of the router; and the router making a BT download task form a queue file and the router performing a BT resource download according to the queue file, so as to realize that a router supports the automatic download of a BT resource of a website.

Description

一种路由器支持RSS订阅任务下载的方法及路由器Method and router for supporting router subscription task downloading 技术领域Technical field
本发明涉及路由器技术领域,特别是涉及一种路由器支持RSS订阅任务下载的方法及路由器。The present invention relates to the field of router technologies, and in particular, to a method and a router for supporting a RSS subscription task download by a router.
背景技术Background technique
现有技术中,部分路由器支持脱机下载功能,但是普遍存在一个问题,都是只能手动添加或者删除一些下载任务,基本不能支持自动下载自己喜欢网络站点的资源。部分用户固定在某网络站点下载资源,用户需要去下载对应的BT,然后一个一个添加到路由器中,或者需要经常去更新网络资源,然后手动添加任务,这使用户下载BT资源非常不方便;而且也会存在路由器脱机资源浪费的问题,比如添加任务少了,尤其在晚上的时候,可能后半夜网络资源空闲了,下载很快完成,造成路由器脱机资源浪费。In the prior art, some routers support the offline download function, but there is a common problem that only some download tasks can be manually added or deleted, and basically cannot support the automatic download of resources that like the network site. Some users are fixed at a certain network site to download resources. Users need to download the corresponding BT, and then add them to the router one by one, or need to update the network resources frequently, and then manually add tasks, which makes it very inconvenient for users to download BT resources; There will also be problems with the waste of offline resources of the router. For example, there are fewer tasks to add, especially in the evening, the network resources may be idle in the middle of the night, and the download is completed quickly, resulting in waste of offline resources of the router.
因此,针对部分用户固定在某网络站点下载BT资源,路由器如何自动下载网站BT资源,是本领域的技术人员普遍关注的问题。Therefore, for some users to download BT resources at a certain network site, how to automatically download the website BT resources by the router is a common concern of those skilled in the art.
发明内容Summary of the invention
鉴于此,本发明的目的在于提供一种路由器支持RSS订阅任务下载的方法及路由器,用以实现路由器支持自动下载网站的BT资源。In view of this, an object of the present invention is to provide a method and a router for supporting a RSS subscription task download by a router, so as to implement a router to support automatic downloading of a BT resource of a website.
根据上述发明目的,本发明提出一种路由器支持RSS订阅任务下载的方法,路由器具备脱机下载功能,所述方法包括:According to the above object, the present invention provides a method for a router to support RSS subscription task downloading, and the router has an offline download function, and the method includes:
步骤S1,所述路由器的脱机下载页面设置待下载RSS订阅网站的URL,所述路由器在配置文件中设置所述待下载RSS订阅网站的URL;Step S1, the offline download page of the router sets the URL of the RSS subscription website to be downloaded, and the router sets the URL of the RSS subscription website to be downloaded in the configuration file;
步骤S2,所述路由器根据所述配置文件中的RSS订阅网站的URL获取并解析对应的XML文件;Step S2, the router acquires and parses the corresponding XML file according to the URL of the RSS subscription website in the configuration file;
步骤S3,在所述XML文件中获取BT资源下载路径并下载对应的BT文件, 保存所述BT文件至路由器的BT文件下载目录中;Step S3, obtaining a BT resource download path in the XML file and downloading a corresponding BT file, Saving the BT file to the BT file download directory of the router;
步骤S4,所述路由器将BT下载任务组成队列文件,路由器根据所述队列文件进行BT资源下载。In step S4, the router forms a BT download task into a queue file, and the router performs BT resource download according to the queue file.
一种实施方式下,所述方法还包括:In an embodiment, the method further includes:
在所述路由器的脱机下载页面设置一更新时间;Setting an update time on the offline download page of the router;
所述路由器在所述更新时间点上重新访问所述RSS订阅网站,并判断是否有更新的BT资源,若有,则下载更新的BT资源。The router re-accesses the RSS subscription website at the update time point, and determines whether there is an updated BT resource, and if so, downloads the updated BT resource.
优选地,所述判断过程包括:根据所述RSS订阅网站的URL获取并解析对应的XML文件,判断所述XML文件中是否有新BT资源下载路径,若有,则对该新BT资源下载路径执行步骤S3和S4。Preferably, the determining process includes: obtaining and parsing a corresponding XML file according to the URL of the RSS subscription website, determining whether there is a new BT resource download path in the XML file, and if so, downloading the new BT resource path. Steps S3 and S4 are performed.
又一种实施方式下,所述方法还包括:In still another embodiment, the method further includes:
在所述路由器系统内设置一更新时间的定时器;Setting an update time timer in the router system;
所述路由器在所述更新时间点上重新访问所述RSS订阅网站,并判断是否有更新的BT资源,若有,则下载更新的BT资源。The router re-accesses the RSS subscription website at the update time point, and determines whether there is an updated BT resource, and if so, downloads the updated BT resource.
优选地,所述判断过程包括:根据所述RSS订阅网站的URL获取并解析对应的XML文件,判断所述XML文件中是否有新BT资源下载路径,若有,则对该新BT资源下载路径执行步骤S3和S4。Preferably, the determining process includes: obtaining and parsing a corresponding XML file according to the URL of the RSS subscription website, determining whether there is a new BT resource download path in the XML file, and if so, downloading the new BT resource path. Steps S3 and S4 are performed.
优选地,所述BT资源下载路径是根据所述XML文件中的关键字“enclosure”获取。Preferably, the BT resource download path is obtained according to a keyword “enclosure” in the XML file.
根据上述发明目的,本发明还提供一种路由器,所述路由器包括:According to the above object, the present invention further provides a router, the router comprising:
配置模块,用于设置待下载RSS订阅网站的URL,路由器在配置文件中设置所述待下载RSS订阅网站的URL;a configuration module, configured to set a URL of the RSS subscription website to be downloaded, and the router sets a URL of the RSS subscription website to be downloaded in the configuration file;
解析模块,用于根据所述配置模块中的RSS订阅网站的URL获取并解析对应的XML文件,在所述XML文件中获取BT资源下载路径;a parsing module, configured to acquire and parse a corresponding XML file according to a URL of an RSS subscription website in the configuration module, and obtain a BT resource download path in the XML file;
下载模块,用于根据所述解析模块获取的BT资源下载路径,下载BT文件,保存所述BT文件至路由器的BT文件下载目录中,然后将BT下载任务组成队列文件,并根据所述队列文件进行BT资源下载; a downloading module, configured to download a BT file according to the BT resource download path obtained by the parsing module, save the BT file to a BT file download directory of the router, and then form a BT download task into a queue file, and according to the queue file Download BT resources;
存储模块:用于存储所述下载模块下载的BT资源。The storage module is configured to store the BT resource downloaded by the download module.
优选地,所述路由器还包括:Preferably, the router further includes:
定时模块,用于路由器设置重新访问所述RSS订阅网站的更新时间。A timing module, configured for the router to re-access the update time of the RSS subscription website.
优选地,所述路由器还包括:Preferably, the router further includes:
判断模块,用于判断所述解析模块中的XML文件中是否有新BT资源的下载路径。The determining module is configured to determine whether there is a download path of the new BT resource in the XML file in the parsing module.
与现有技术相比,本发明一种路由器支持RSS订阅任务下载的方法及路由器,具有以下有益效果:路由器能自动下载用户RSS订阅网站的BT资源,不用手动添加任务序列,极大地方便了用户,提高了用户的网络体验;也能更好的合理利用路由器脱机资源,不会造成路由器脱机资源浪费。Compared with the prior art, the method and the router for supporting the RSS subscription task downloading of the router have the following beneficial effects: the router can automatically download the BT resource of the user RSS subscription website, without manually adding the task sequence, which greatly facilitates the user. It can improve the user's network experience; it can also make better use of router offline resources, and will not waste the offline resources of the router.
附图说明DRAWINGS
图1为本发明实施例的一种路由器支持RSS订阅任务下载的方法流程图;FIG. 1 is a flowchart of a method for a router to support an RSS subscription task download according to an embodiment of the present invention;
图2为本发明实施例的一种路由器的系统结构图。2 is a system structural diagram of a router according to an embodiment of the present invention.
具体实施方式detailed description
正如背景技术中提及的,针对部分用户固定在某些网络站点下载资源,路由器如何自动下载网站资源是普遍关注的问题。As mentioned in the background art, how to automatically download website resources for a part of users to download resources at certain network sites is a common concern.
因此,本发明利用了RSS订阅功能和路由器脱机下载功能,在路由器的脱机下载页面输入待下载RSS订阅网站的URL,在路由器的配置文件中设置待下载RSS订阅站点的URL,路由器根据RSS订阅站点的URL获取并解析对应的XML文件,获取BT下载路径并下载BT文件,将BT下载任务保存至BT下载目录中;路由器将BT下载任务组成队列,路由器根据队列进行BT资源下载,从而可以实现自动下载用户RSS订阅网站的BT资源。Therefore, the present invention utilizes the RSS subscription function and the router offline download function, inputs the URL of the RSS subscription website to be downloaded on the offline download page of the router, and sets the URL of the RSS subscription site to be downloaded in the router configuration file, and the router according to the RSS The URL of the subscription site acquires and parses the corresponding XML file, obtains the BT download path and downloads the BT file, and saves the BT download task to the BT download directory; the router forms the BT download task into a queue, and the router performs BT resource download according to the queue, thereby Realize the automatic download of BT resources of the user RSS subscription website.
以下通过特定的具体实例并结合附图说明本发明的实施方式,本领域技术人员可由本说明书所揭示的内容轻易地了解本发明的其它优点与功效。本发明亦可通过其它不同的具体实例加以施行或应用,本说明书中的各项细节亦可基 于不同观点与应用,在不背离本发明的精神下进行各种修饰与变更。The embodiments of the present invention will be described by way of specific examples and the accompanying drawings, and those skilled in the art can readily understand the advantages and advantages of the present invention. The invention may also be embodied or applied by other different specific examples, and various details in the specification may also be used. Various modifications and changes can be made without departing from the spirit and scope of the invention.
为了更好的了解本发明,首先介绍一下RSS技术。RSS是“Really Simple Syndication”的英文缩写,它是网络站点和其它网络站点之间共享内容的一种简易方式,也叫聚合内容,是一种描述和同步网站内容的技术,网站用特定格式的XML文件提供最新信息的摘要,然后通过客户端浏览方式或者在线RSS方式阅读这些内容。RSS为在线共享内容的一种简易方式,在时效性比较强的内容上使用RSS订阅能够快速获取信息。由网站提供RSS输出,当网站内容有最新更新时,用户可以快速的获取网站最新更新的内容。本发明中,针对部分用户固定在某网络站点下载资源,利用RSS订阅功能,用户可以到支持RSS功能的网站以注册方式获取RSS订阅功能,或者下载RSS阅读器工具以实现对RSS订阅。In order to better understand the present invention, first introduce the RSS technology. RSS is the abbreviation of "Really Simple Syndication". It is an easy way to share content between web sites and other web sites. It is also called aggregate content. It is a technology for describing and synchronizing website content. The website uses a specific format. The XML file provides a summary of the latest information and then reads it through client browsing or online RSS. RSS is an easy way to share content online, using RSS feeds to get information quickly on time-sensitive content. The RSS output is provided by the website. When the website content has the latest update, the user can quickly obtain the latest update content of the website. In the present invention, for some users to be fixed at a certain network site to download resources, and using the RSS subscription function, the user can obtain the RSS subscription function by registering the website supporting the RSS function, or download the RSS reader tool to implement the RSS subscription.
图1为本发明一个实施例的一种路由器支持RSS阅读任务下载的方法流程图。如图1所示,该方法具体包括:FIG. 1 is a flowchart of a method for a router to support RSS reading task downloading according to an embodiment of the present invention. As shown in FIG. 1, the method specifically includes:
S1:路由器的脱机下载页面设置待下载RSS订阅网站的URL,路由器在配置文件中设置待下载RSS订阅网站的URL;S1: The offline download page of the router sets the URL of the RSS subscription website to be downloaded, and the router sets the URL of the RSS subscription website to be downloaded in the configuration file;
在本发明中,需要在路由器的脱机下载页面中设置一个能够输入待下载RSS订阅站点的URL的配置页面,即本发明的路由器是一种自带了上述功能的路由器,该功能可以通过在路由器出厂时,将相关的程序软件烧入路由器的控制芯片中,涉及对路由器硬件方面的改变,对于本领域技术人员来说,只要知晓本发明发明精神的前提下,也应当是可知的。In the present invention, it is necessary to set a configuration page in the offline download page of the router that can input the URL of the RSS subscription site to be downloaded, that is, the router of the present invention is a router that has the above functions, and the function can be When the router leaves the factory, the related program software is burned into the control chip of the router, and the changes in the hardware of the router are involved. It should be known to those skilled in the art that the spirit of the invention is known.
在本步骤前,用户需要在待下载BT资源的网站完成RSS订阅,获取RSS订阅网站的URL。如何RSS订阅,对于本领域技术人员来说,也应当是可知的。Before this step, the user needs to complete the RSS subscription on the website where the BT resource is to be downloaded, and obtain the URL of the RSS subscription website. How to subscribe to RSS should also be known to those skilled in the art.
在本步骤中,路由器的脱机下载页面输入待下载RSS订阅网站的URL,比如,在路由器的脱机下载页面至少包括一个可输入待下载RSS订阅网站的URL的输入框,用户在输入框输入待下载RSS订阅网站的URL。路由器根据用户输入的待下载RSS订阅网站的URL,获取待下载RSS订阅网站的URL。然后路由器对待下载RSS订阅的网站进行站点配置,在配置文件中除了支持RSS协议通用的 配置之外,还在配置文件中设置待下载RSS订阅网站的URL,配置完成后,并保存配置文件。In this step, the offline download page of the router inputs the URL of the RSS subscription website to be downloaded. For example, the offline download page of the router includes at least one input box for inputting the URL of the RSS subscription website to be downloaded, and the user inputs in the input box. The URL of the RSS subscription website to be downloaded. The router obtains the URL of the RSS subscription website to be downloaded according to the URL of the RSS subscription website to be downloaded input by the user. Then the router performs site configuration on the website that downloads the RSS subscription, in addition to supporting the RSS protocol in the configuration file. In addition to the configuration, the URL of the RSS subscription website to be downloaded is also set in the configuration file, and after the configuration is completed, the configuration file is saved.
步骤S2:路由器根据配置文件中的RSS订阅网站的URL获取并解析对应的XML文件;Step S2: The router acquires and parses the corresponding XML file according to the URL of the RSS subscription website in the configuration file;
步骤S3:在XML文件中获取BT资源下载路径并下载对应的BT文件,保存BT文件至路由器的BT文件下载目录中;Step S3: Obtain a BT resource download path in the XML file and download the corresponding BT file, and save the BT file to the BT file download directory of the router;
步骤S4,路由器将BT下载任务组成队列文件,路由器根据队列文件进行BT资源下载。In step S4, the router forms a BT download task into a queue file, and the router performs BT resource download according to the queue file.
在步骤S2、S3和S4中,路由器根据保存的配置文件,获取配置文件中的待下载RSS订阅网站的URL,路由器根据获取的待下载RSS订阅网站的URL获取并解析该URL对应的XML文件,在XML文件中获取BT资源的下载路径,并且下载BT文件,将下载的BT文件保存至路由器的BT文件下载目录中。然后路由器将BT下载任务组成队列文件,将队列文件添加到路由器脱机下载的队列中,路由器根据队列文件进行BT资源下载。路由器将下载的BT资源可以存储在路由器外挂的硬件存储器或者自身具备的存储器中。In steps S2, S3, and S4, the router obtains the URL of the RSS subscription website to be downloaded in the configuration file according to the saved configuration file, and the router obtains and parses the XML file corresponding to the URL according to the obtained URL of the RSS subscription website to be downloaded. Obtain the download path of the BT resource in the XML file, and download the BT file, and save the downloaded BT file to the BT file download directory of the router. Then the router composes the BT download task into a queue file, adds the queue file to the queue that the router downloads offline, and the router performs BT resource download according to the queue file. The BT resources that the router downloads can be stored in the hardware memory of the router or the memory that it has.
本发明的一种实施方式,该实施方式还包括:An embodiment of the present invention further includes:
在路由器的脱机下载页面设置一更新时间;Set an update time on the offline download page of the router;
路由器在更新时间点上重新访问RSS订阅网站,并判断是否有更新的BT资源,若有,则下载更新的BT资源。The router revisits the RSS subscription website at the update time point and determines whether there is an updated BT resource, and if so, downloads the updated BT resource.
优选地,该判断过程包括:根据RSS订阅网站的URL获取并解析对应的XML文件,判断XML文件中是否有新BT资源下载路径,若有,则对该新BT资源下载路径执行步骤S3和S4。Preferably, the determining process includes: obtaining and parsing the corresponding XML file according to the URL of the RSS subscription website, determining whether there is a new BT resource download path in the XML file, and if so, performing steps S3 and S4 on the new BT resource download path. .
本发明的另一种实施方式,该实施方式还包括:In another embodiment of the present invention, the implementation manner further includes:
在路由器系统内设置一更新时间的定时器;Setting an update time timer in the router system;
路由器在所述更新时间点上重新访问RSS订阅网站,并判断是否有更新的BT资源,若有,则下载更新的BT资源。The router revisits the RSS subscription website at the update time point, and determines whether there is an updated BT resource, and if so, downloads the updated BT resource.
优选地,该判断过程包括:根据RSS订阅网站的URL获取并解析对应的XML 文件,判断该XML文件中是否有新BT资源下载路径,若有,则对该新BT资源下载路径执行步骤S3和S4。Preferably, the determining process comprises: obtaining and parsing the corresponding XML according to the URL of the RSS subscription website The file determines whether there is a new BT resource download path in the XML file, and if so, steps S3 and S4 are performed on the new BT resource download path.
下面以具体实施例来介绍本发明。用户想要在其RSS订阅的网站上下载BT资源,登录路由器的脱机下载页面,该脱机下载页面至少包括一个用于输入待下载RSS订阅网站URL的输入框和一个可输入更新时间的输入框,用户在输入框输入待下载RSS订阅网站的URL和更新时间,然后根据提示完成输入。路由器获取用户输入的待下载RSS订阅网站的URL,路由器对该RSS订阅网站进行站点接口配置,在配置文件中除了支持RSS协议通用的配置之外,还在配置文件中设置待下载RSS订阅网站的URL和更新时间。路由器配置完成后,将配置文件保存,比如,配置文件名称为rss.config,并将该文件保存到目录/etc/config/rss.conf中。路由器根据配置文件rss.config中的待下载RSS订阅网站的URL获取并解析URL相对应的XML文件,在XML文件中获取BT文件下载路径的关键字“enclosure”,从而得到BT文件的下载路径。路由器下载BT文件,将BT文件保存至路由器脱机下载的BT文件目录中。路由器将BT下载任务组成队列,并保该存队列文件名为rss.dat,rss.dat文件中包括了一系列的BT下载任务。路由器将队列文件rss.dat添加到路由器的脱机下载任务中。路由器根据队列文件就可以下载BT资源。在本具体实施例中,比如用户输入更新时间为每天的晚上12点。路由器根据配置文件rss.config中的更新时间,在每天晚上的12点,路由器重新访问RSS订阅网站,并判断是否有更新的BT资源,若有,则根据RSS订阅网站的URL获取并解析对应的XML文件,获取该XML文件中的新BT资源下载路径,下载BT文件并将BT文件保存至路由器脱机下载的BT文件目录中。路由器将BT下载任务组成队列,并保存到队列文件中,然后根据更新的队列文件下载。The invention is described below in terms of specific embodiments. The user wants to download the BT resource on the website of his RSS subscription, and log in to the offline download page of the router. The offline download page includes at least one input box for inputting the URL of the RSS subscription website to be downloaded and an input for inputting the update time. In the box, the user enters the URL and update time of the RSS subscription website to be downloaded in the input box, and then completes the input according to the prompt. The router obtains the URL of the RSS subscription website to be downloaded by the user, and the router performs site interface configuration on the RSS subscription website. In addition to supporting the general configuration of the RSS protocol, the configuration file also sets the RSS subscription website to be downloaded in the configuration file. URL and update time. After the router is configured, save the configuration file. For example, the configuration file name is rss.config and save the file to the directory /etc/config/rss.conf. The router obtains and parses the XML file corresponding to the URL according to the URL of the RSS subscription website to be downloaded in the configuration file rss.config, and obtains the keyword “enclosure” of the BT file download path in the XML file, thereby obtaining the download path of the BT file. The router downloads the BT file and saves the BT file to the BT file directory that the router downloads offline. The router composes the BT download task into a queue, and saves the save queue file name as rss.dat. The rss.dat file includes a series of BT download tasks. The router adds the queue file rss.dat to the router's offline download task. The router can download BT resources according to the queue file. In this embodiment, for example, the user input update time is 12 o'clock every night. According to the update time in the configuration file rss.config, at 12 o'clock every night, the router revisits the RSS subscription website and determines whether there is an updated BT resource. If so, the corresponding URL is obtained and parsed according to the URL of the RSS subscription website. The XML file obtains the new BT resource download path in the XML file, downloads the BT file, and saves the BT file to the BT file directory that the router downloads offline. The router groups the BT download tasks into a queue file and then downloads them according to the updated queue file.
综上,本发明路由器脱机下载页面输入待下载RSS订阅网站的URL,在路由器的RSS站点接口配置文件中设置待下载RSS订阅站点的URL,路由器根据RSS订阅站点的URL获取并解析对应的XML文件,根据XML文件获取BT下载路径并下载BT文件,将BT下载任务保存至BT下载目录中;路由器将BT下载任 务组成队列,路由器根据队列进行BT资源下载,从而可以自动下载RSS订阅网站的BT资源,不用手动添加下载任务。In summary, the router offline download page of the present invention inputs the URL of the RSS subscription website to be downloaded, sets the URL of the RSS subscription site to be downloaded in the RSS site interface configuration file of the router, and the router acquires and parses the corresponding XML according to the URL of the RSS subscription site. File, obtain the BT download path according to the XML file and download the BT file, save the BT download task to the BT download directory; the router will download BT The service queue is formed, and the router downloads the BT resource according to the queue, so that the BT resource of the RSS subscription website can be automatically downloaded without manually adding the download task.
图2是本发明的实施例的一种路由器结构图。2 is a block diagram of a router in accordance with an embodiment of the present invention.
为实现本发明的发明目的,本发明实施例提供了一种路由器。如图2所示,一种路由器具体包括:In order to achieve the object of the present invention, an embodiment of the present invention provides a router. As shown in FIG. 2, a router specifically includes:
配置模块20,用于设置待下载RSS订阅网站的URL,路由器在配置文件中设置待下载RSS订阅网站的URL;The configuration module 20 is configured to set a URL of the RSS subscription website to be downloaded, and the router sets a URL of the RSS subscription website to be downloaded in the configuration file;
解析模块21,用于根据配置模块20中的RSS订阅网站的URL获取并解析对应的XML文件,在XML文件中获取BT资源下载路径;The parsing module 21 is configured to obtain and parse the corresponding XML file according to the URL of the RSS subscription website in the configuration module 20, and obtain a BT resource download path in the XML file;
下载模块22,用于根据解析模块22获取的BT资源下载路径,下载BT文件,保存BT文件至路由器的BT文件下载目录中,然后将BT下载任务组成队列文件,并根据队列文件进行BT资源下载;The downloading module 22 is configured to download the BT file according to the BT resource download path obtained by the parsing module 22, save the BT file to the BT file download directory of the router, and then form the BT download task into a queue file, and perform BT resource download according to the queue file. ;
存储模块23:用于存储下载模块22下载的BT资源。The storage module 23 is configured to store the BT resource downloaded by the download module 22.
定时模块24,用于路由器设置重新访问RSS订阅网站的更新时间。The timing module 24 is configured to set a time for the router to revisit the update time of the RSS subscription website.
判断模块25,用于判断解析模块21中的XML文件中是否有新BT资源的下载路径。The determining module 25 is configured to determine whether there is a download path of the new BT resource in the XML file in the parsing module 21.
路由器在配置模块20中,设置用户待下载RSS订阅网站的URL,路由器获取待下载RSS订阅网站的URL,并在RSS订阅网站接口配置文件中设置待下载RSS订阅网站的URL。路由器在解析模块22中,路由器根据配置模块20的待下载RSS订阅网站的URL,获取并解析该对应的XML文件,在XML文件中获取BT文件下载路径。然后路由器根据解析模块22获取的BT资源下载路径,在下载模块23中,下载BT文件,将BT文件保存至BT下载目录中,并将BT下载任务组成队列,路由器根据队列进行BT资源下载。路由器将下载模块22下载的BT资源存储在存储模块24中,存储模块24可以是路由器外挂的硬件存储器,也可以是路由器自身的硬件存储器。In the configuration module 20, the router sets the URL of the RSS subscription website to be downloaded by the user, the router obtains the URL of the RSS subscription website to be downloaded, and sets the URL of the RSS subscription website to be downloaded in the RSS subscription website interface configuration file. The router is in the parsing module 22, and the router obtains and parses the corresponding XML file according to the URL of the RSS subscription website to be downloaded of the configuration module 20, and obtains the BT file download path in the XML file. Then, according to the BT resource download path acquired by the parsing module 22, the router downloads the BT file in the download module 23, saves the BT file to the BT download directory, and forms a BT download task into a queue, and the router performs BT resource download according to the queue. The router stores the BT resources downloaded by the download module 22 in the storage module 24. The storage module 24 may be a hardware storage external to the router, or may be a hardware storage of the router itself.
路由器可以在定时模块24中,设置重新访问RSS订阅网站的更新时间。然后路由器在定时模块24设置的更新时间点上,在判断模块25中,判断解析 模块21中的XML文件中是否有新BT资源的下载路径。The router can set the update time for revisiting the RSS subscription website in the timing module 24. Then, at the update time point set by the timing module 24, the router determines the resolution in the determining module 25. Is there a download path for the new BT resource in the XML file in module 21.
综上所述,本发明一种路由器支持RSS订阅下载任务的方法及路由器,可以自动的下载BT资源,不用手动添加任务。。In summary, the present invention provides a method and a router for supporting an RSS subscription download task, and can automatically download BT resources without manually adding tasks. .
任何本领域技术人员均可在不违背本发明的精神及范畴下,对上述实施例进行修饰与改变。因此,本发明的权利保护范围,应如权利要求书所列。 Modifications and variations of the above-described embodiments can be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of protection of the invention should be as set forth in the claims.

Claims (9)

  1. 一种路由器支持RSS订阅任务下载的方法,路由器具备脱机下载功能,其特征在于,所述方法包括:A router supports a method for downloading an RSS subscription task, and the router has an offline download function, wherein the method includes:
    步骤S1,所述路由器的脱机下载页面设置待下载RSS订阅网站的URL,所述路由器在配置文件中设置所述待下载RSS订阅网站的URL;Step S1, the offline download page of the router sets the URL of the RSS subscription website to be downloaded, and the router sets the URL of the RSS subscription website to be downloaded in the configuration file;
    步骤S2,所述路由器根据所述配置文件中的RSS订阅网站的URL获取并解析对应的XML文件;Step S2, the router acquires and parses the corresponding XML file according to the URL of the RSS subscription website in the configuration file;
    步骤S3,在所述XML文件中获取BT资源下载路径并下载对应的BT文件,保存所述BT文件至路由器的BT文件下载目录中;Step S3, obtaining a BT resource download path in the XML file, downloading a corresponding BT file, and saving the BT file to a BT file download directory of the router;
    步骤S4,所述路由器将BT下载任务组成队列文件,路由器根据所述队列文件进行BT资源下载。In step S4, the router forms a BT download task into a queue file, and the router performs BT resource download according to the queue file.
  2. 如权利要求1所述的一种路由器支持RSS订阅任务下载的方法,其特征在于,还包括:The method for supporting a download of an RSS feed task by a router according to claim 1, further comprising:
    在所述路由器的脱机下载页面设置一更新时间;Setting an update time on the offline download page of the router;
    所述路由器在所述更新时间点上重新访问所述RSS订阅网站,并判断是否有更新的BT资源,若有,则下载更新的BT资源。The router re-accesses the RSS subscription website at the update time point, and determines whether there is an updated BT resource, and if so, downloads the updated BT resource.
  3. 如权利要求2所述的一种路由器支持RSS订阅任务下载的方法,其特征在于,所述判断过程包括:The method of claim 2, wherein the determining process comprises:
    根据所述RSS订阅网站的URL获取并解析对应的XML文件,判断所述XML文件中是否有新BT资源下载路径,若有,则对该新BT资源下载路径执行步骤S3和S4。Acquiring and parsing the corresponding XML file according to the URL of the RSS subscription website, determining whether there is a new BT resource download path in the XML file, and if so, performing steps S3 and S4 on the new BT resource download path.
  4. 如权利要求1所述的一种路由器支持RSS订阅任务下载的方法,其特征在于,还包括:The method for supporting a download of an RSS feed task by a router according to claim 1, further comprising:
    在所述路由器系统内设置一更新时间的定时器;Setting an update time timer in the router system;
    所述路由器在所述更新时间点上重新访问所述RSS订阅网站,并判断是否有更新的BT资源,若有,则下载更新的BT资源。The router re-accesses the RSS subscription website at the update time point, and determines whether there is an updated BT resource, and if so, downloads the updated BT resource.
  5. 如权利要求4所述的一种路由器支持RSS订阅任务下载的方法,其特征在于,所述判断过程包括: The method of claim 4, wherein the determining process comprises:
    根据所述RSS订阅网站的URL获取并解析对应的XML文件,判断所述XML文件中是否有新BT资源下载路径,若有,则对该新BT资源下载路径执行步骤S3和S4。Acquiring and parsing the corresponding XML file according to the URL of the RSS subscription website, determining whether there is a new BT resource download path in the XML file, and if so, performing steps S3 and S4 on the new BT resource download path.
  6. 如权利要求1-5任意一项所述的一种路由器支持RSS订阅任务下载的方法,其特征在于,所述BT资源下载路径是根据所述XML文件中的关键字“enclosure”获取。The method for supporting a download of an RSS feed task by a router according to any one of claims 1 to 5, wherein the BT resource download path is obtained according to a keyword "enclosure" in the XML file.
  7. 一种路由器,其特征在于,所述路由器包括:A router, characterized in that the router comprises:
    配置模块,用于设置待下载RSS订阅网站的URL,路由器在配置文件中设置所述待下载RSS订阅网站的URL;a configuration module, configured to set a URL of the RSS subscription website to be downloaded, and the router sets a URL of the RSS subscription website to be downloaded in the configuration file;
    解析模块,用于根据所述配置模块中的RSS订阅网站的URL获取并解析对应的XML文件,在所述XML文件中获取BT资源下载路径;a parsing module, configured to acquire and parse a corresponding XML file according to a URL of an RSS subscription website in the configuration module, and obtain a BT resource download path in the XML file;
    下载模块,用于根据所述解析模块获取的BT资源下载路径,下载BT文件,保存所述BT文件至路由器的BT文件下载目录中,然后将BT下载任务组成队列文件,并根据所述队列文件进行BT资源下载;a downloading module, configured to download a BT file according to the BT resource download path obtained by the parsing module, save the BT file to a BT file download directory of the router, and then form a BT download task into a queue file, and according to the queue file Download BT resources;
    存储模块:用于存储所述下载模块下载的BT资源。The storage module is configured to store the BT resource downloaded by the download module.
  8. 如权利要求7所述的一种路由器,所述路由器还包括:The router of claim 7, the router further comprising:
    定时模块,用于路由器设置重新访问所述RSS订阅网站的更新时间。A timing module, configured for the router to re-access the update time of the RSS subscription website.
  9. 如权利要求7所述的一种路由器,所述路由器还包括:The router of claim 7, the router further comprising:
    判断模块,用于判断所述解析模块中的XML文件中是否有新BT资源的下载路径。 The determining module is configured to determine whether there is a download path of the new BT resource in the XML file in the parsing module.
PCT/CN2017/077421 2016-06-30 2017-03-21 Method for router supporting rss feed task download and router WO2018000864A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610498291.0A CN106209992A (en) 2016-06-30 2016-06-30 A kind of router supports method and the router of RSS subscription task download
CN201610498291.0 2016-06-30

Publications (1)

Publication Number Publication Date
WO2018000864A1 true WO2018000864A1 (en) 2018-01-04

Family

ID=57464105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/077421 WO2018000864A1 (en) 2016-06-30 2017-03-21 Method for router supporting rss feed task download and router

Country Status (2)

Country Link
CN (1) CN106209992A (en)
WO (1) WO2018000864A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11274320B2 (en) 2019-02-25 2022-03-15 Ginkgo Bioworks, Inc. Biosynthesis of cannabinoids and cannabinoid precursors

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209992A (en) * 2016-06-30 2016-12-07 上海斐讯数据通信技术有限公司 A kind of router supports method and the router of RSS subscription task download
CN113612855A (en) * 2021-08-18 2021-11-05 深圳鼎盛电脑科技有限公司 File downloading method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141454A (en) * 2007-08-20 2008-03-12 阳术国 Video subscribing instrument system and method using the same
CN101246480A (en) * 2007-02-16 2008-08-20 易搜比控股公司 Simple association reporting channel updating method and system thereof
JP4480609B2 (en) * 2005-03-23 2010-06-16 Necアクセステクニカ株式会社 NETWORK DEVICE, CONTROL TERMINAL, UTILITY AUTOMATIC UPDATE METHOD AND ITS PROGRAM
US7814478B2 (en) * 2005-11-09 2010-10-12 Texas Instruments Norway As Methods and apparatus for use in updating application programs in memory of a network device
CN103997521A (en) * 2014-05-15 2014-08-20 深圳大学 File operating method and device based on router and router
CN105681209A (en) * 2016-03-28 2016-06-15 深圳市双赢伟业科技股份有限公司 Router-based instruction processing method and router
CN106209992A (en) * 2016-06-30 2016-12-07 上海斐讯数据通信技术有限公司 A kind of router supports method and the router of RSS subscription task download

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692671A (en) * 2009-09-28 2010-04-07 中兴通讯股份有限公司 Digital picture frame, terminal equipment and multimedia file downloading method for the digital picture frame
CN103248641A (en) * 2012-02-07 2013-08-14 腾讯科技(深圳)有限公司 Network download method, device and system
CN103389972B (en) * 2013-07-26 2017-12-26 Tcl集团股份有限公司 A kind of method and device that text is obtained based on Simple Syndication

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4480609B2 (en) * 2005-03-23 2010-06-16 Necアクセステクニカ株式会社 NETWORK DEVICE, CONTROL TERMINAL, UTILITY AUTOMATIC UPDATE METHOD AND ITS PROGRAM
US7814478B2 (en) * 2005-11-09 2010-10-12 Texas Instruments Norway As Methods and apparatus for use in updating application programs in memory of a network device
CN101246480A (en) * 2007-02-16 2008-08-20 易搜比控股公司 Simple association reporting channel updating method and system thereof
CN101141454A (en) * 2007-08-20 2008-03-12 阳术国 Video subscribing instrument system and method using the same
CN103997521A (en) * 2014-05-15 2014-08-20 深圳大学 File operating method and device based on router and router
CN105681209A (en) * 2016-03-28 2016-06-15 深圳市双赢伟业科技股份有限公司 Router-based instruction processing method and router
CN106209992A (en) * 2016-06-30 2016-12-07 上海斐讯数据通信技术有限公司 A kind of router supports method and the router of RSS subscription task download

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11274320B2 (en) 2019-02-25 2022-03-15 Ginkgo Bioworks, Inc. Biosynthesis of cannabinoids and cannabinoid precursors

Also Published As

Publication number Publication date
CN106209992A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US8185621B2 (en) Systems and methods for monitoring webpages
AU2016359508B2 (en) Page jumping method and apparatus
WO2017113060A1 (en) Website access method and device, and website system
US20140201617A1 (en) Method for Browsing Web Page on Mobile Terminal
WO2018000864A1 (en) Method for router supporting rss feed task download and router
WO2018001124A1 (en) Webpage file sending method, webpage rendering method and apparatus, and webpage rendering system
CN105095280A (en) Caching method and apparatus for browser
WO2012037793A1 (en) Upgrade method and system for widget system
WO2022206487A1 (en) Cache object updating method and apparatus, device, and storage medium
WO2015051723A1 (en) Method and device for downloading data
WO2018035799A1 (en) Data query method, application and database servers, middleware, and system
US10506400B2 (en) Data download method and apparatus
US20140096237A1 (en) Information processing system, access right management method, information processing apparatus and control method and control program therefor
WO2018157686A1 (en) Webpage crawling method and apparatus
CN114461955A (en) Method for automatically generating http interface based on web page configuration
JP6692907B2 (en) Link request processing method, link generation method, and link generation device
EP2618297A1 (en) Operation information generation device
CN105279156A (en) Network information communication method and network information browsing device
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN113067853A (en) Data pushing method and device, electronic equipment and storage medium
CN104079540A (en) Method, device and system of updating application as well as user equipment
CN103793459B (en) Webpage opening method and device
JP2013122655A (en) Browser execution script conversion system and browser execution script conversion program
CN111133415A (en) Customizing functions across platforms
CN113454966B (en) Method and device for generating shadow device and storage medium

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: 17818863

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17818863

Country of ref document: EP

Kind code of ref document: A1