【问题标题】:Blogger Title Link Import via XMLBlogger 标题链接通过 XML 导入
【发布时间】:2019-01-22 09:58:40
【问题描述】:

我在 python 中生成以下 xml 格式以将帖子批量导入博主。我看到博主可以选择在使用网络表单时为帖子设置标题链接。

你知道我如何修改下面的 xml 以包含标题链接吗?

<?xml version="1.0" encoding="UTF-8"?><ns0:feed xmlns:ns0="http://www.w3.org/2005/Atom">
<ns0:generator>Blogger</ns0:generator>
<ns0:entry>
<ns0:category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/blogger/2008/kind#post" />
<ns0:category scheme="http://www.blogger.com/atom/ns#" term="CATEGORY C" />
<ns0:category scheme="http://www.blogger.com/atom/ns#" term="CATEGORY D" />
<ns0:id>Sample Blog Post</ns0:id><ns0:content type="html">Blogger CONTENT 2</ns0:content> 
<ns0:published>2019-10-30T03:22:00.001-07:00</ns0:published> 
<ns0:title type="html">Sample Blog Post</ns0:title> 
</ns0:entry>
</ns0:feed>

谢谢!

【问题讨论】:

    标签: xml blogger


    【解决方案1】:

    标题链接在导出的 XML 中另存为 related 链接。以下格式将起作用 -

    ....
    <ns0:published>2019-10-30T03:22:00.001-07:00</ns0:published> 
    <ns0:link href='https://google.com/' rel='related'></ns0:link>
    <ns0:title type="html">Sample Blog Post</ns0:title> 
    ....
    

    【讨论】:

    猜你喜欢
    • 2014-07-03
    • 1970-01-01
    • 2011-05-19
    • 2020-05-07
    • 1970-01-01
    • 2020-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多