I want to subscribe to some IEEE papers, but the rss corresponding to them cannot be subscribed. For example, the following website and its corresponding rss.
Itâs because they block the user agent TTRSS sends when requesting the feed.
This works:
curl -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.89 Safari/537.36" -sv https://ieeexplore.ieee.org/rss/TOC10.XML 2>&1
I couldnât get setting the user agent in the .env file to work , but this convoluted method worked ( for now ).
Install options_per_feed plugin
Add a feed that I didnât care about to TT-RSS
Edit the feed with the settings of the feed I actually wanted.
Make sure to change the UA in options per feed setting.
Save.
The reason I added a random feed, is that TT-RSS apparently pulls the feed before itâs be added. So if it cannot pull the feed with the default UAS ( user agent string ), then the feed is not added. It would be nice to change that behavior , or let the end user set the UAS when adding the feed.
I might have to crack open my very dusty php skills , dig in, and see if I can figure out a patch , config setting, or other way to make this a smooth process. That way, no one else has to struggle to add a feed.
For completeness, what I tried with the docker compose .env file were these vars and then stopping/starting docker, but this didnât work
TTRSS_SELF_USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
SELF_USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
The per feed solution is best, for sure. The challenge I see is configuring TT-RSS so that you can specify the UAS when adding a feed.
As far as I can tell, your options to either specify are a global setting or perform a work around method like the one I used.
There is probably a third option of learning php and creating a PR which adds the option
of setting the UAS to the âsubscribe to feedâ
dialogue box, which would take time for me to learn, plus I would need to make a very strong case for the change.
No worries. When I tried to add a problematic feed, I could not using the âSubscribe to Feedâ button as after I press âSubscribeâ, the dialogue shows the 403 status code message and does not subscribe to the feed.
The âoptions_per_feedâ plugin can only set the UAS for feeds after they are added. But what if you canât add them without first setting the UAS? If a plugin can fix/get around that, then great, Iâll write one.
This whole matter of having to change the UAS for specific websites , in my opinion, a workaround for misbehaving websites. RSS readers shouldnât have to do these gymnastics!