News for hackers. Stuff that matters.
Re:RSS Box – RSS for websites that do not support RSS by latexr on Saturday June 20, 2020 @09:39AM (#23583876)
> FYI: If you enable JavaScript then you be able to access additional options in the dropdown menus. The website should still be somewhat usable, but recent versions of Firefox will try to download the RSS feeds.

This is how you communicate with people with JavaScript disabled! Kudos. Most sites either present you with a blank page with no information, a blank page asking to enable JavaScript (even when the content is just text), or silently break some features.

That kind of respectful messaging alone is making me want to take a closer look. Though it should be “then you will be able”.

> Important: Please do not overload this service. Do not make more requests than you need.

What if we don’t have control over the frequency of requests (e.g. using a service like Feedly)? Do those happen often enough that we’d need to host the app ourselves?

Re:RSS Box – RSS for websites that do not support RSS by stefansundin on Saturday June 20, 2020 @04:10PM (#23586828)
> What if we don’t have control over the frequency of requests (e.g. using a service like Feedly)? Do those happen often enough that we’d need to host the app ourselves?

I know the wording is a bit vague, and I know that most services don't let you customize this. I added it after I suddenly started receiving tons of traffic caused by, I suspect, a single user. This person was purposefully fetching feeds multiple times a minute.

Anyhow, if you aren't actively trying to abuse the service, you should be good. Some RSS readers have "boost" features to fetch feeds more frequently (often a paid feature).

Once I am able to add some good caching, then I may be able to remove that notice. But right now, the service is kinda overloaded and that is why some of the services (Twitter and Instagram in particular) may give you errors at the moment.

Re:RSS Box – RSS for websites that do not support RSS by oefrha on Saturday June 20, 2020 @11:22AM (#23584425)
Feed aggregation services tend to minimize the frequency of requests especially for unpopular feeds since more requests = higher load for them as well. The incentives on the publishing and consuming sides align. Many services only offer to increase crawling frequencies for premium users, and even then only for a limited number of feeds. Not to mention they only need to crawl once for however many subscribers.

It’s really people who don’t use aggregation services and set their clients to update very frequently (say every minute) that pose a problem.

Re:RSS Box – RSS for websites that do not support RSS by hinkley on Saturday June 20, 2020 @12:15PM (#23584716)
An aggregator most likely would prioritize feeds by popularity and then run most of their crawlers 24/7. Telling some users that a popular feed has new entries and not telling the free tier sounds complicated. Unless the free tier is getting a read replica of the database, in which case it’s throttled only by how far behind the read replicas get.

Prioritizing lower subscribership feeds if a smaller number of premium customers add them makes some sense though.

Re:RSS Box – RSS for websites that do not support RSS by oefrha on Saturday June 20, 2020 @12:34PM (#23584812)
Of course popular feeds are crawled constantly, and no, there’s no “telling some users that a popular feed has new entries and not telling the free tier”. But you bet services don’t want to crawl those one-subscriber feeds (e.g. some websites have personal feeds for paid subscribers) constantly for free. And RSS Box feeds apparently tend to fall in the latter category.
Re:RSS Box – RSS for websites that do not support RSS by derefr on Saturday June 20, 2020 @10:46AM (#23584231)
> What if we don’t have control over the frequency of requests (e.g. using a service like Feedly)?

I believe most RSS reader-clients and aggregator backends are programmed to respect HTTP cache-control headers; so as long as the developer of this service sets those headers appropriately for their endpoints, there shouldn't be a problem.

The warning is likely more for people's custom scripting using curl(1) et al, where there isn't an HTTP cache in the code path.

Re:RSS Box – RSS for websites that do not support RSS by chrismorgan on Saturday June 20, 2020 @12:59PM (#23584982)
Yes, this is far better than most.

But as a matter of fact, almost all of that functionality could be done without JavaScript! You can make the dropdown work by changing it to use a <details> element (the best approach for both practical and accessibility reasons), or :focus-within, or any number of hacks (I’m partial to the checkbox hack which has served me well for many years, except for minor accessibility concerns), and then replace the <a> elements with appropriate submit buttons that will set the necessary query string parameters.

For example, the button for “exclude retweets” would be:

  <button type=submit name=include_rts value=0>Exclude retweets</button>
The only bit that I can’t think of a good way to handle is when you’re setting more than one query string parameter, like the Twitter “Exclude retweets and replies” button which wants to add `include_rts=0&exclude_replies=1` to the query string. I can think of ways to make it work with two clicks (harming accessibility in the process), but none with only one click. My best hope was putting formaction="?include_rts=0&exclude_replies=1" on the submit button, but a GET form will scrub any query string from its action, so that doesn’t work.

And download links like the Ustream one would use formaction="/ustream/download" on their submit button.

Re:RSS Box – RSS for websites that do not support RSS by stefansundin on Saturday June 20, 2020 @04:06PM (#23586802)
I will look into this. Thanks!
Re:RSS Box – RSS for websites that do not support RSS by k1m on Saturday June 20, 2020 @11:34AM (#23584499)
> What if we don’t have control over the frequency of requests (e.g. using a service like Feedly)? Do those happen often enough that we’d need to host the app ourselves?

I run a similar service where I rate limit. I've whitelisted the IPs of the centralised feed readers like Feedly (at least the ones I've been able to identify), but the reate limit for non-whitelisted IPs is generous enough that it's really there to only catch the really problematic scripts which crop up from time to time.

Re:RSS Box – RSS for websites that do not support RSS by stefansundin on Saturday June 20, 2020 @04:15PM (#23586875)
> Though it should be “then you will be able”.

Fixed. Thanks! :)