博主标题 Link 通过 XML 导入
Blogger Title Link Import via XML
我正在 python 中生成以下 xml 格式以将 posts 批量导入 blogger。我看到博主有一个选项,可以在使用网络表单时为 post 设置标题 link。
你知道我如何修改下面的 xml 以包含标题 link 吗?
<?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>
谢谢!
标题 Link 在导出的 XML 中保存为 related
link。以下格式将起作用 -
....
<ns0:published>2019-10-30T03:22:00.001-07:00</ns0:published>
<b><ns0:link href='https://google.com/' rel='related'></ns0:link></b>
<ns0:title type="html">Sample Blog Post</ns0:title>
....
我正在 python 中生成以下 xml 格式以将 posts 批量导入 blogger。我看到博主有一个选项,可以在使用网络表单时为 post 设置标题 link。
你知道我如何修改下面的 xml 以包含标题 link 吗?
<?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>
谢谢!
标题 Link 在导出的 XML 中保存为 related
link。以下格式将起作用 -
....
<ns0:published>2019-10-30T03:22:00.001-07:00</ns0:published>
<b><ns0:link href='https://google.com/' rel='related'></ns0:link></b>
<ns0:title type="html">Sample Blog Post</ns0:title>
....