How to programmatically determine whether an RSS feed is a full feed or a partial feed

后端 未结 3 1064
一生所求
一生所求 2021-02-08 10:52

I would need to programmatically determine whether an RSS feed exposes the full content of its articles or just extracts of them. How would you do it?

3条回答
  •  再見小時候
    2021-02-08 11:05

    Why not follow the url from the rss-feed and check whether there is more text on this page than in the rss-feed? You would need take a html-parser and put in some general rules.

提交回复
热议问题