It is currently July 31st, 2021, 5:39 am

FeedMoe - simple skin for RSS feeds

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
nek
Posts: 42
Joined: November 3rd, 2019, 12:00 am

Re: FeedMoe - simple skin for RSS feeds

Post by nek »

Harshsrcc wrote: December 14th, 2020, 3:16 am
  • I'm unable to increase no. of items in feed above 15. Where can I do this?
Scroll the mouse wheel button over the top-right of the skin.

- or -

Right-click the skin > Edit skin

Code: Select all

[Variables]
MAX_ITEMS=20
Note: MAX_ITEMS= 1-20 | default: 8
And save. - File encoding: UTF-16LE BOM / UCS-2 LE BOM

You can also see the current value like this.
Right-click the skin > Show Tooltips
FeedMoe.Tooltips.png
Harshsrcc wrote: December 14th, 2020, 3:16 am
  • Some feeds aren't working. ... What could be the likely reason?
1. https://www.hindustantimes.com/rss/opinion/rssfeed.xml
- I have opened the url with the chrome browser, I got a xml feed.
- I have opened the url with the FeedMoe, I got a HTTP 403 Forbidden error from the web server.

You can see the error, right click the Rainmeter icon at the bottm-right of the desktop > About > Log tab
FeedReader.dll: Bang before failure (https://www.hindustantimes.com/rss/opinion/rssfeed.xml) - ... (403) ...
HTTP 403 Forbidden | https://developer.mozilla.org/docs/Web/HTTP/Status/403
Edited:
I don't investigate yet, what cause this error. (user-Agent? or something else?)
We can't get HindustanTimes' feeds with FeedMoe skin directly.
Tech reasons:
- hindustantimes.com is using a Akamai Technologies services.
- In this case, Akamai's server requires client(web brower etc.)'s HTTP request header Accept or User-Agent.
- FeedMoe skin is reading a RSS2.0 feed by plugin FeedReader.dll.
- There aren't any way to modify HTTP request headers in the plugin FeedReader.dll.

Code: Select all

HTTP request header: by FeedReader.dll (2.3.0.0) **There is not Accept and User-Agent header.**
> GET /rss/opinion/rssfeed.xml HTTP/1.1
> Host: www.hindustantimes.com
(1) HTTP request with Accept: */* header and SUCCESSED.
command prompt: curl.exe -A "" -H "Accept: */*" -v https://www.hindustantimes.com/rss/opinion/rssfeed.xml

Code: Select all

HTTP request header: 
> GET /rss/opinion/rssfeed.xml HTTP/1.1
> Host: www.hindustantimes.com
> Accept: */*

HTTP response header: 
< HTTP/1.1 200 OK
< Content-Type: application/xml;charset=UTF-8
< Server: nginx
< Eomportal-Instance: S160.21
< Cache-Control: must-revalidate, max-age=600
< Date: Mon, 14 Dec 2020 16:35:50 GMT
< Content-Length: 12175
< Connection: keep-alive
HTTP/1.1 200 OK means you succeed to get the feed content.

(2) HTTP request without Accept: */* header and FAILED.
command prompt: curl.exe -A "" -H "Accept:" -v https://www.hindustantimes.com/rss/opinion/rssfeed.xml

Code: Select all

HTTP request header: 
> GET /rss/opinion/rssfeed.xml HTTP/1.1
> Host: www.hindustantimes.com

HTTP response header: 
< HTTP/1.1 403 Forbidden
< Server: AkamaiGHost
< Mime-Version: 1.0
< Content-Type: text/html
< Content-Length: 306
< Expires: Mon, 14 Dec 2020 16:36:17 GMT
< Date: Mon, 14 Dec 2020 16:36:17 GMT
< Connection: close
HTTP/1.1 403 Forbidden means...
Akamai server says: I don't like your behavior, Access Denied.
2. http://static.cricinfo.com/rss/livescores.xml
- It works in my environment.
// Windows 10 pro 1909, Rainmeter 4.4.0.3398 beta (64-bit), FeedMoe_20200802, FeedReader.dll (2.3.0.0)
Please try again.

Code: Select all

[Variables]
@Include4=#@#FeedMoe.RSS2.inc
FEED_URL=http://static.cricinfo.com/rss/livescores.xml
FEED_TITLE=
COLOR_BACKGROUND_HEADER_DARK=03A9F4CC
COLOR_BACKGROUND_HEADER_LIGHT=9ADDFBE6
ITEM_TITLE_SUBSTITUTE=
;ITEM_LINK_SUBSTITUTE="(?si)^(?(?!http://www\.cricinfo\.com/).+)":""
MAX_ITEMS=10
You do not have the required permissions to view the files attached to this post.
Last edited by nek on January 24th, 2021, 2:46 pm, edited 4 times in total.
Morsmodre
Posts: 18
Joined: December 14th, 2020, 3:04 am

Re: FeedMoe - simple skin for RSS feeds

Post by Morsmodre »

Thanks a lot, nek. Cricinfo feed works for me as well now. I was able to make Hindustan Times feed work with FeedMoe too, with https://rss.app/. It's a decent workaround.
Also, I had set MAX_ITEMS to 20, yet it was only fetching 15 items. Apparently it is a limitation with Youtube. xml for youtube playlists shows only 14-15 items at once.
nek
Posts: 42
Joined: November 3rd, 2019, 12:00 am

Re: FeedMoe - simple skin for RSS feeds

Post by nek »

Glad to help.
YouTube Data API v2 | max 15 videos in the playlist | https://www.youtube.com/feeds/videos.xml?playlist_id=xxxxx
Last edited by nek on December 16th, 2020, 3:49 pm, edited 1 time in total.
Morsmodre
Posts: 18
Joined: December 14th, 2020, 3:04 am

Re: FeedMoe - simple skin for RSS feeds

Post by Morsmodre »

That explains it. Thank you :)
nek
Posts: 42
Joined: November 3rd, 2019, 12:00 am

Re: FeedMoe - simple skin for RSS feeds

Post by nek »

>> New version available

Twitter feeds (via nitter.net) error
20210314.nitter.net.error.png
It seems that nitter.net service restrict some connections, and there are alternative servers that we can use.
> Public Nitter Instances | https://github.com/zedeus/nitter/wiki/Instances
I picked up some from that list (ssllabs.com Rating:A+, those feed returns https link addresses.)
* [Germany] nitter.nixnet.services 2021-03-18 https to http
* [Germany] nitter.mastodont.cat 2021-03-18 https to http
* [France] nitter.fdn.fr 2021-06-04 unstable
* [Bulgaria] nitter.himiko.cloud 2021-03-18 https to http
* [Germany] nitter.cattube.org
* [Germany] nitter.namazso.eu
* [Netherlands] nitter.unixfox.eu
* [India] nitter.kavin.rocks


How to fix Twitter feeds error. (via nitter.net)
1. Right-click the skin that occured the error, and select the Edit skin.
2. Edit the code (for example)

Code: Select all

;FEED_URL=https://nitter.net/NASA/rss
;ITEM_LINK_SUBSTITUTE="https://nitter\.net/":"https://twitter.com/","(?si)^(?(?!https://(?:[0-9a-z-]+\.)?twitter\.com/).+)":""
FEED_URL=https://nitter.cattube.org/NASA/rss
ITEM_LINK_SUBSTITUTE="https://nitter\.cattube\.org/":"https://twitter.com/","(?si)^(?(?!https://(?:[0-9a-z-]+\.)?twitter\.com/).+)":""
3. Save the file, and right-click the skin and select Refresh skin

If you don't care about secure stuff, you can also add the ?
ITEM_LINK_SUBSTITUTE="https?://nitter\.cattube\.org/":"https://twitter.com/","(?si)^(?(?!https://(?:[0-9a-z-]+\.)?twitter\.com/).+)":""

Note: Use that alternative servers at your own risk.
You do not have the required permissions to view the files attached to this post.