You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This app currently relies on the rss2json api for xml parsing. While it's an excellent service—and I'm grateful to its developer, Molayli, for providing it—I don't like depending on an external API. Who can say how long it will be available?
Below is an alternate version of the getArticles() function I wrote earlier in development, which doesn't use an API. It largely worked, but couldn't handle a lot of edge cases, and had issues with performance and text encoding.
Could it be made more robust? If even just the text encoding issue could be resolved, that alone would be a great start. For an example of the text encoding problem, try loading a headline from the New York Times's RSS feed and watch what happens to most non-ASCII characters, such as ‘.
(Note: This function was written a long time ago, and so some function definitions likely need to be updated to work with the latest version of the code. This should be trivial, but if not, let me know.)
I believe I explored using https://github.com/isaacs/sax-js/ directly at one point (very eager to stay out of the npm dependency quagmire), but now I can't remember why I gave up on it! Something to look at!
This app currently relies on the rss2json api for xml parsing. While it's an excellent service—and I'm grateful to its developer, Molayli, for providing it—I don't like depending on an external API. Who can say how long it will be available?
Below is an alternate version of the getArticles() function I wrote earlier in development, which doesn't use an API. It largely worked, but couldn't handle a lot of edge cases, and had issues with performance and text encoding.
Could it be made more robust? If even just the text encoding issue could be resolved, that alone would be a great start. For an example of the text encoding problem, try loading a headline from the New York Times's RSS feed and watch what happens to most non-ASCII characters, such as
‘
.(Note: This function was written a long time ago, and so some function definitions likely need to be updated to work with the latest version of the code. This should be trivial, but if not, let me know.)
The text was updated successfully, but these errors were encountered: