适配Pinterest的RSS文件的正确格式是什么?
Pinterest兼容RSS文件要求及修正方案
你当前编写的RSS使用了标准RSS 2.0的子标签放在
以下是Pinterest RSS的必填规则:
- 必须在
<rss>标签内添加MRSS命名空间声明:xmlns:media="http://search.yahoo.com/mrss/" - 每个
<item>内的图片需使用<media:content>标签声明,必须包含url、medium、width、height属性,要求图片最小尺寸为200*200px,优先使用竖版高清图片 <guid>标签必须唯一且固定,重复内容会被系统判定为冗余内容跳过同步- 所有链接必须是可公开访问的HTTPS链接,不能设置访问限制、登录墙、验证码
- RSS文件返回的
Content-Type请求头必须为application/rss+xml或text/xml,且支持跨域访问
修正后的完整RSS示例
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <title>My title</title> <link>https://www.mywebpage.com/</link> <description>Some text here.</description> <item> <title>The item title here</title> <link>https://mywebpage.se/produkt/6740</link> <description>The item description here</description> <media:content url="https://mywebpage.se/image.jpg" medium="image" width="1080" height="1350" /> <guid isPermaLink="true">https://mywebpage.se/produkt/6740</guid> </item> </channel> </rss>
补充排查提示:绑定RSS后Pinterest最长可能需要72小时完成首次同步,24小时未同步属于正常区间;如果超过72小时仍无内容,可以先通过公共RSS校验工具验证文件格式合法性,再检查所有资源链接是否可被海外网络正常访问。
内容的提问来源于stack exchange,提问作者Claes Gustavsson
相关产品推荐
相关产品推荐

