为什么我的 atom 提要无法加载到我在 Feedly 中的站点的链接?

如何解决为什么我的 atom 提要无法加载到我在 Feedly 中的站点的链接?

我正在使用 FeedGenerator (https://feedgen.kiesow.be/) 在 Flask 中生成我的 atom 提要,在我看来它是正确的。当我在 Feedly 中添加提要时,没有链接,“直接在网站中打开”会转到 Feedly 404 页面。这是我在生成提要的烧瓶中的路线:

def RSS():
    RSS_url = 'https://www.example.com/RSS'
    base_url = 'https://www.example.com'
    
    fg = FeedGenerator()
    fg.id(RSS_url)
    fg.title('MysSite Feed')
    fg.description('My site description')
    fg.link(href='https://www.example.com')

    for article in get_RSS_posts():
        fe = fg.add_entry()
        fe.title(article.title)
        fe.link(href=base_url+'/post/'+article.slug)
        fe.content(article.body)
        fe.summary(article.short_desc)
        fe.id(base_url+'/post/'+article.slug)
        fe.author(name=article.author.username)
        fe.pubDate(article.timestamp.astimezone(timezone('America/Chicago')))

    return Response(fg.atom_str(pretty=True),mimetype="application/atom+xml; charset=utf-8")```

My generated Feed when viewed in Chrome:

<?xml version='1.0' encoding='UTF-8'?>
<Feed xmlns="http://www.w3.org/2005/Atom">
  <id>https://www.example.com/RSS/devops</id>
  <title>Example - devops Feed</title>
  <updated>2021-04-08T21:13:58.427520+00:00</updated>
  <link href="https://www.example.com"/>
  <generator uri="https://lkiesow.github.io/python-Feedgen" version="0.9.0">python-Feedgen</generator>
  <subtitle>Example is your source for devops posts.</subtitle>
  <entry>
    <id>https://www.example.com/post/uptime-robot</id>
    <title>Uptime Robot</title>
    <updated>2021-04-08T21:13:58.445502+00:00</updated>
    <author>
      <name>ExampleAdmin</name>
    </author>
    <content>&lt;h4&gt;I Needed A Monitor To Check Uptime&lt;/h4&gt;&#13;
&lt;p&gt;I needed a website monitoring service for Example that let me kNow if it went down. There are a many options but I only found one that met all of my needs:&lt;/p&gt;&#13;
&lt;ul&gt;&#13;
&lt;li&gt;&lt;strong&gt;Free -&lt;/strong&gt; I'm running this site on a budget so I need a service that's reliable but doesn't cost me anything&lt;/li&gt;&#13;
&lt;li&gt;&lt;strong&gt;SMS and Email messaging -&lt;/strong&gt; I need a service that emails and texts me if my site goes offline&lt;/li&gt;&#13;
&lt;li&gt;&lt;strong&gt;Easy to use -&lt;/strong&gt; I need something simple that I can just set and forget&lt;/li&gt; &#13;
&lt;li&gt;&lt;strong&gt;Allows for multiple monitors -&lt;/strong&gt; 1 just won't cut it&lt;/li&gt;&#13;
&lt;/ul&gt;&#13;
&lt;h4&gt;Verdict&lt;/h4&gt;&#13;
&lt;p&gt;&lt;a href="https://uptimerobot.com/" target="_blank"&gt;Uptime Robot&lt;/a&gt; met all of my needs and did I mention that they have a free option? If you need a bit more they have a cheap monthly plan too. Currently,the free plan is working for me.&lt;/p&gt;&#13;
&lt;p&gt;Uptime Robot gets a Pass from me! &lt;/p&gt;&#13;
&lt;p&gt;&lt;b class="icon solid fa-fire iof-fire"&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;</content>
    <link href="https://www.example.com/post/uptime-robot" rel="alternate"/>
    <summary>&lt;p&gt;Need a tool to monitor your website's uptime? See our top recommendation!&lt;/p&gt;</summary>
    <published>2021-02-18T16:57:22-06:00</published>
  </entry>
</Feed>

This is a Feedly link on my website that allows following: https://Feedly.com/i/subscription/Feed%2Fhttps%3A%2F%2Fwww.example.com%2F/RSS/devops

When I click the Feedly link,my site shows up and allows me to follow it. The problem is that none of the news articles have links that will load on my website. If I turn on the "Open in website directly" and click a link,I get a Feedly 404 page.

Does anyone kNow what the problem is? Thanks!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?