开发者

Removing ads from RSS feeds?

I want to publish a news website feeds on my website. However they have included annoying banner advertising next to each headline. Is it possible to remove them from the XML feeds开发者_开发问答?


Yes, it should be easy1 to parse the XML, remove the offending element from the heading, and then serialize the tree-structure back to a XML (RSS) file.

But, it may violate the license of the RSS file, since you'll be actively manipulating the feed.


1) You'll be editing the //rss/channel/item/title nodes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜