为什么我的 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.JdbcOdbc...