This application claims priority of Taiwanese Application No. 096106119, filed on Feb. 16, 2007.
1. Field of the Invention
The invention relates to a really simple syndication (RSS) feed updating method, more particularly to a method and system for RSS feed updating capable of pre-loading new content.
2. Description of the Related Art
With the popularity of the Internet, people have grown used to obtaining information and searching data through the Internet. Many people record addresses of frequently visited websites, such as news websites and blogs, in “My Favorites” so as to be able to go directly to these websites regularly (e.g., daily) to log in and browse latest content of news, articles, etc., in the future. However, there are some problems with this approach. For instance, the user may find the data on the web pages stale or uninteresting after taking the time to log in, which results in user inconvenience.
Therefore, there is available a new way of providing information on the networks, which is known as Really Simple Syndication (hereinafter referred to as RSS for short). RSS is a format based on XML (extensible Markup Language) for publishing content of information on the Web, making it possible for users to subscribe to information content of interest, and for the most recent information content to be sent to subscribers in real time.
Specifically, to read RSS content, a user needs to install an RSS reader in a user terminal and then subscribe to various RSS feeds or channels provided by websites through the RSS reader. The RSS reader checks the subscribed RSS feeds regularly for updates, i.e., the RSS reader will automatically download summaries (including, e.g., a title, a description, and a URL or link) of latest content of news or articles on the subscribed feeds to the user terminal every user-determined time, so that the user can have updated information on the subscribed feeds in real time. If the user is interested in any new content or update, the user can click the corresponding summary to use the associated URL or link to connect to the corresponding web page in order to browse the full text of the new content. Thus, the inconveniences associated with having to connect to each website regularly to check for updates can be overcome.
Since current RSS readers merely download summaries of new content when checking for updates, if the user wants to view the full text of the new content, the user needs to connect to the corresponding web page in the website via the Internet. Thus, the browsing environment is restricted, and the user needs to view the full text in an environment with an Internet connection, which is inconvenient in terms of use. Moreover, the new content may possibly be removed from the website after a period of time, e.g., a few days, weeks or months, and cannot be connected to and browsed, thereby imposing a time constraint on the new content.
Therefore, the object of the present invention is to provide a method and system for updating RSS feeds, which can achieve greater user convenience.
Another object of the present invention is to provide a method and system for updating RSS feeds, which can be substantially free from time constraints.
In the present invention, after a summary of new content is downloaded, the new content can be automatically downloaded according to user settings so as to enable the user to view the new content in an environment without an Internet connection (e.g., offline), thereby achieving greater user convenience.
Accordingly, the method for updating RSS feeds of this invention includes the following steps:
(A) downloading and storing a summary of new content of a subscribed feed, the summary of the feed containing a title and a URL; and
(B) determining on and off states of an offline browsing mode, downloading and storing the new content via the URL in the summary of the new content if the offline browsing mode is in the on state, and refraining from downloading the new content if the offline browsing mode is in the off state.
Furthermore, after downloading the new content, the summary of the new content can be set to point to the downloaded new content instead of pointing to a web page to which the URL corresponds, so that the user can directly browse the locally stored new content upon clicking the summary, without connecting to the web page at the remote end via the Internet, thereby achieving greater user convenience.
In addition, since the web page containing the new content may include some relative URLs, such as an image URL or a background URL, and since these relative URLs are linked to data located in the same website, if the new content is directly opened after being downloaded to the user terminal, the data of the relative URLs cannot be displayed in a normal fashion. Therefore, in the present invention, a relative URL in the downloaded new content is converted to a remote URL corresponding to the URL of the website, so that data of the relative URL in the downloaded new content can be displayed in a normal fashion.
Thus, in the aforesaid step (B), after downloading the new content, the new content is parsed to determine whether the new content contains a relative URL, and the relative URL, if present, is converted to a remote URL corresponding to the URL of the subscribed feed.
Other features and advantages of the present invention will become apparent in the following detailed description of the preferred embodiment with reference to the accompanying drawings, of which:
The user can subscribe to feeds 41 of interest to obtain summaries of new content in the subscribed feeds 41 through the RSS reader 1. Certainly, the user can subscribe to one or more feeds 41, which may come from different websites 4. To facilitate description, the present invention will be exemplified using an example in which the user subscribes to a feed (which is hereinafter referred to as the subscribed feed) 41 of a website 4 using the RSS reader 1.
The RSS reader 1 may be a firmware connectible to the Internet, or a program. The program can be pre-stored in a storage medium, such as an optical disk, for installation in and execution by an electronic device that can be connected to the Internet. The RSS reader 1 in this embodiment includes a feed updating system 2 and a database 3. The database 3 is a storage medium, such as a hard disk, a memory card, a memory, etc., for storing data of the RSS reader 1, such as content, summaries of content, relevant programs, information of the subscribed feed 41, etc. Certainly, the RSS reader 1 in this embodiment further has basic components that other conventional RSS readers have, such as a control module for executing corresponding tasks in response to control commands from the user. However, as such components are well known to those skilled in the art and are not crucial features of the present invention, they will not be discussed herein for the sake of brevity.
The feed updating system 2 includes a feed updating unit 21 and a content pre-loading module 22. The feed updating unit 21 is used to download summaries of new content in the subscribed feed 41 regularly. Specifically, the feed updating unit 21 downloads the summary file 411 of the subscribed feed 41 regularly, and compares the summary file 411 with the summaries stored in the database 3 to determine whether there is any summary of new content (i.e., a summary of content yet to be stored in the database 3). If affirmative, the feed updating unit 21 sends the summary of the new content to the content pre-loading module 22 for storage in the database 3. The feed updating unit 21 is set with a predetermined time interval associated with an updating frequency, and the feed updating unit 21 downloads summaries of new content from the subscribed feed 41 at the predetermined time intervals. The value of the predetermined time interval may be adjusted according to the user's settings, e.g., 30 minutes. The content pre-loading module 22 can be used to download the corresponding new content after downloading the summary of the new content. In order to enhance selectivity in use, the content pre-loading module 22 in this embodiment has an offline browsing mode, which can be switched between on and off states under the control of the user. When the offline browsing mode is in the on state, the content pre-loading module 22 automatically downloads the corresponding new content when the summary of the new content is downloaded. When the offline browsing mode is in the off state, the content pre-loading module 22 refrains from downloading any new content. Therefore, the content pre-loading module 22 in this embodiment includes a content downloading unit 221 for downloading new content, and a storage management unit 223 responsible for accessing the downloaded new content.
Since the summary of a piece of new content points to the corresponding web page (i.e., connection to the corresponding web page is conducted via the Internet using the URL), the storage management unit 223 in this embodiment will, upon storing the downloaded new content in the database 3, enable the summary of the new content to point to the downloaded new content, i.e., when the summary of the new content is clicked or selected, the downloaded new content will be read from the storage address of the new content, without connecting to the website 4.
Furthermore, the downloaded new content may have one or more relative URLs (links) to link to local data (i.e., data within the same website 4), e.g., an image URL, a background URL, etc. However, upon storing the downloaded new content in the database 3, the relative URL(s) of the new content cannot be used to connect to data that are actually located at a remote terminal. Therefore, the content pre-loading module 22 in this embodiment further has a link parsing unit 222 for converting a relative URL to a remote URL corresponding to the URL of the subscribed feed 41, so that the data which the relative URL links to can be correctly presented in case of need. For example, if the URL of the subscribed feed 41 is http//www.somewhere.com, the relatively linked image URL is <ing src=“/logo.gif>”, and the body background URL is <body background=“/bg.jpg”>, the link parsing unit 222 will convert the relative links respectively to corresponding remote URLs of <imgsrc=“http://www.somewhere.com/logo.gif”>, and <body background=”http://www.somewhere.com/bg.jpg”>.
Referring to a feed updating procedure illustrated in
Initially, in step 510, the feed updating unit 21 of the feed updating system 2 determines whether a predetermined time interval since the last updating has elapsed. If the determination in step 511 is negative, the flow returns to step 510 to wait until the predetermined time interval has elapsed.
If the determination in step 510 is affirmative, step 511 is executed, in which the feed updating unit 21 downloads the summary file 411 of the subscribed feed 41. Specifically, the feed updating unit 21 sends a request in the format of Hyper Text Transfer Protocol (HTTP) to the server of the website 4 to obtain permission to download the summary file 411 of the subscribed feed 41 from the server of the website 4. The server of the website 4 will correspondingly send the summary file 411 to the RSS reader 1 in reply. The summary file 411 is written in a format based on eXtensible Markup Language (XML), and includes a plurality of summaries. Each summary includes a title, a description, and a URL (link) of the corresponding web page of the new content.
Thereafter, when the RSS reader receives the summary file 411 of the subscribed feed 41, the feed updating unit 21 executes step 512 to determine whether there is a summary of new content in the summary file 411. Specifically, the feed updating unit 21 compares the summaries in the summary file 411 with the summaries stored in the database 3. If a summary in the summary file 411 is identical to a summary in the database 3 (i.e., the former was stored in the database 3 previously), the feed updating unit 21 determines that the summary in the summary file 411 is an old one. If a summary in the summary file 411 does not match any one of the summaries in the database 3, the feed updating unit 21 determines that the summary in the summary file 411 is the summary of new content. If the determination in step 512 is affirmative, step 513 is executed. On the contrary, if the determination in step 512 is negatives the flow returns to step 510 to wait for a next updating. When the feed updating unit 21 determines that there is a summary of new content in the summary file 411, it will send the summary of the new content to the content pre-loading module 22.
In step 513, the storage management unit 223 of the content pre-loading module 22 first stores the summary of the new content in the database 3 to enable the user to browse the summary of the new content using the RSS reader 1 and to select the summary when the user is interested in reading the entire content of the new content.
After step 513 is ended, the flow goes to step 514, in which the content downloading unit 221 of the content pre-loading module 22 determines whether the offline browsing mode is in the on state. If the offline browsing mode is determined in step 514 to be in the off state, the content downloading unit 221 refrains from executing the task of downloading the new content, i.e., does not download the new content, and the flow returns to step 510 If the offline browsing mode is determined in step 514 to be in the on state, the flow goes to step 515.
In step 515, the content downloading unit 221 downloads the new content. Specifically, the format of the new content is Hypertext Markup Language (HTML) The content downloading unit 221 uses the URL in the summary of the new content to download the new content according to the HTTP protocol, and subsequently sends the downloaded new content to the link parsing unit 222. After step 515 is ended, the flow goes to step 516.
In step 516, the link parsing unit 222 parses the new content to determine whether there is a relative URL. If it is determined in step 516 that there is a relative URL, the link parsing unit 222 executes step 517 to convert the relative link to a corresponding remote link. After step 517 is ended, the flow goes to step 518. Otherwise, if it is determined in step 516 that there is no relative URL, the flow directly proceeds to step 518. In addition, the link parsing unit 222 will send the new content to the storage management unit 223 after the conversion or where conversion is not required.
In step 518, the storage management unit 223 stores the new content in the database 3. Moreover, the storage management unit 223 updates the recently downloaded summary of the new content to point to the new content in the database 3 instead of to the new content on the website 4. After step 518 is ended, the flow returns to step 510 to wait for a next updating.
It is noted that the order of execution of steps 513 and 514 can be adjusted according to design requirements. For instance, the content downloading unit 221 may execute step 514 first so that the storage management unit 223 stores the summary of the new content in the database 3 after the offline browsing mode is determined to be in the off state or after the pointing setting of the summary is updated in step 518, without being limited to the disclosure in this embodiment.
Hence, unlike the aforementioned conventional feed updating method which merely stores summaries of new content, this embodiment further provides pre-loading of new content (as in steps 514 to 518). The user is thus able to view the summary of new content and select the summary upon viewing. When the summary is selected, the storage management unit 223 in this embodiment will prioritize retrieval of the previously downloaded new content from the database 3 for displaying, so that the displaying of the previously downloaded new content is prioritized over the displaying of the new content on the website 4.
Specifically, referring to
In step 521, the RSS reader 1 determines whether a summary has been selected, i.e., the user has clicked to view the content. If the determination in step 521 is affirmative, step 522 is executed, in which the storage management unit 223 determines whether the new content corresponding to the selected summary has been downloaded. Otherwise, if the determination in step 521 is negative, step 520 is continued to display the summaries for browsing by the user.
If it is determined in step 522 that the corresponding new content has not been downloaded, step 524 is executed to link to the relative URL in the selected summary via the Internet so as to display the web page containing the new content on the website 4 for viewing by the user. Otherwise, if it is determined in step 522 that the corresponding new content has been downloaded, step 523 is executed to retrieve and load the previously downloaded new content from the database 3 and to display the same for viewing by the user. Thus, since the new content displayed by the RSS reader 1 is located in the local database 3, the speed of retrieving the new content is faster to thereby avoid keeping the user waiting for too long. Besides, since there is no need to connect to the web page containing the new content via the Internet, the RSS reader 1 is able to display the new content for viewing by the user without the need to be disposed in an Internet environment, thereby achieving an environment of use which is substantially free from limitations. Furthermore, since the relative URL in the downloaded new content has been converted to a remote URL, if the RSS reader 1 can connect to the Internet, the corresponding data of the URL in the download new content can be displayed in a normal fashion. After the user has finished viewing the new content, the user can end step 523 or 524 and return to step 520 to continue browsing other summaries.
In addition, if the user wants to switch on/off the offline browsing mode, the operating interface of the RSS reader 1 can be used to make settings so as to correspondingly input an offline browsing mode setting command. When the content pre-loading module 22 receives the offline browsing mode setting command the content pre-loading module 22 will correspondingly change the on/off state of the offline browsing mode.
As illustrated herein, the present invention enables the user to select to pre-load new content to the RSS reader 1 upon updating of the subscribed feeds, so that the user can view the new content without requiring an Internet environment, thereby achieving the effect of better user convenience. Furthermore, since the downloaded new content is stored in the database 3 of the RSS reader 1, the user can keep the new content for a relatively long time, thereby overcoming the time constraint imposed on the new content on the website.
While the present invention has been described in connection with what is considered the most practical and preferred embodiment, it is understood that this invention is not limited to the disclosed embodiment but is intended to cover various arrangements included within the spirit and scope of the broadest interpretation so as to encompass all such modifications and equivalent arrangements.
Number | Date | Country | Kind |
---|---|---|---|
096106119 | Feb 2007 | TW | national |