如何从域中了解Feed网址?

xRo*_*bot 0 javascript php rss feeds

http://simplepie.org/demo/上,如果您插入mashable.com,它会自动提取Feed网址.

怎么做?

Jea*_*nal 5

您进入页面源并搜索以下元素:

对于RSS提要:

<link rel="alternate" type="application/rss+xml" href="`your feed address`" />
Run Code Online (Sandbox Code Playgroud)

对于Atom提要:

<link rel="alternate" type="application/atom+xml" href="`your feed address`" />
Run Code Online (Sandbox Code Playgroud)

这可能是获取源地址的最简单(易于解析)和最可靠(它被明确声明为页面的Feed等效方式)的方式.