昨天死活导不进去,从里面导出来的也无法导入
今天去台湾的一个论坛问了下,发现blogspot每天是有导入限制的,后面的应该是超过了导入限制,即便格式对也无法正常导入
然后试了一个简单的,竟然导入成功了。。。。。。
第一个成功的内容如下
111.xml:
- <?xml version="1.0"?>
- <feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0">
- <id>tag:blogger.com,1999:blog-1.archive</id>
- <updated>2008-09-10T10:44:09.799-07:00</updated>
- <title>test123456标题1111</title>
- <link href="http://www.blogger.com/feeds/1/archive" rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml"/>
- <link href="http://test123451111111116.blogspot.com" rel="alternate" type="text/html"/>
- <link href="http://www.blogger.com/feeds/1/archive" rel="self" type="application/atom+xml"/>
- <author>
- <name>test123456</name>
- <uri>http://www.blogger.com/profile/1</uri>
- <email>noreply@blogger.com</email>
- </author>
- <generator uri="http://www.blogger.com" version="7.00">Blogger</generator>
- <entry>
- <id>tag:blogger.com,1999:blog-1.post-1</id>
- <published>2016-08-12T10:44:30.000+08:00</published>
- <updated>2016-08-12T10:44:30.000+08:00</updated>
- <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/blogger/2008/kind#post"/>
- <title type="text">导入啊</title>
- <content type="html">导入吧</content>
- <link href="http://tesafsdfa.blogspot.com/2008/09/test1.html" rel="alternate" title="test1" type="text/html"/>
- <link href="http://www.blogger.com/feeds/1/posts/default/1" rel="self" type="application/atom+xml"/>
- <author>
- <name>test12啊啊啊啊啊3456</name>
- <uri>http://www.blogger.com/profile/1</uri>
- <email>noreply@blogger.com</email>
- </author>
- </entry>
- </feed>
看来只要符合这个格式就可以了,然后把昨天导出来的改成这个格式,发现也可以导入成功
那么
解析下格式吧
blog-08-11-2016.xml:
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- atom格式的xml-->
- <?xml-stylesheet href="https://www.blogger.com/styles/atom.css" type="text/css"?>
- <!-- feed标签 -->
- <feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss">
- <id>tag:blogger.com,1999:blog-171507978679241883.archive</id>
- <updated>2016-08-11T20:02:46.260-07:00</updated>
- <title type="text">TEST BY SENRSL</title>
- <link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/archive"/>
- <link rel="self" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/archive"/>
- <link rel="http://schemas.google.com/g/2005#post" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/archive"/>
- <link rel="alternate" type="text/html" href="http://testbysenrsl.blogspot.com/"/>
- <author>
- <name>senRsl Zhao</name>
- <email>noreply@blogger.com</email>
- <gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh6.googleusercontent.com/-oUkhvUhgg_E/AAAAAAAAAAI/AAAAAAAAAAA/dPY0WOz15ME/s32-c/photo.jpg"/>
- </author>
- <generator version="7.00" uri="https://www.blogger.com">Blogger</generator>
- <!-- 上面都不需要改 -->
- <!-- 一个entry是一个记录 -->
- <entry>
- <!-- 唯一的,评论要对应这个,前面的883是blog id,后面的093是帖子id -->
- <id>tag:blogger.com,1999:blog-171507978679241883.post-5127061826790740093</id>
- <!-- 发布时间 -->
- <published>2004-08-11T02:25:00.001-07:00</published>
- <!-- 更新时间 -->
- <updated>2016-08-11T02:26:32.033-07:00</updated>
- <!-- 里面的draft=yes,说明这是一个草稿 -->
- <app:control xmlns:app="http://purl.org/atom/app#">
- <app:draft>yes</app:draft>
- </app:control>
- <!-- 标签 -->
- <category scheme="http://www.blogger.com/atom/ns#" term="测试二号"/>
- <!-- 最后post是正文,如果是comment是评论 -->
- <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/blogger/2008/kind#post"/>
- <!-- 这条记录的标题 -->
- <title type="text">导入草稿测试二次修改版</title>
- <!-- 这条记录的内容 -->
- <content type="html">这是一个导入的草稿二次修改啊啊啊</content>
- <!-- 修改链接地址,注意后面那个数字跟上面id数字是对应的-->
- <link rel="edit" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/posts/default/5127061826790740093"/>
- <!-- 自身地址 -->
- <link rel="self" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/posts/default/5127061826790740093"/>
- <!-- 作者信息 -->
- <author>
- <name>senRsl Zhao</name>
- <uri>https://plus.google.com/100743021429432655774</uri>
- <email>noreply@blogger.com</email>
- <gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh6.googleusercontent.com/-oUkhvUhgg_E/AAAAAAAAAAI/AAAAAAAAAAA/dPY0WOz15ME/s32-c/photo.jpg"/>
- </author>
- <thr:total>0</thr:total>
- </entry>
- <!-- 第二个帖子 -->
- <entry>
- <id>tag:blogger.com,1999:blog-171507978679241883.post-222869801414084761</id>
- <published>2012-09-11T01:04:00.002-07:00</published>
- <updated>2013-02-11T01:04:37.374-07:00</updated>
- <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/blogger/2008/kind#post"/>
- <category scheme="http://www.blogger.com/atom/ns#" term="测试一号"/>
- <title type="text">导入导出测试啊啊啊啊2016年08月12日11:08:00二次修改识别</title>
- <content type="html">如题11范德萨飞洒范德萨内容发的说法上打法</content>
- <link rel="replies" type="application/atom+xml" href="https://testbysenrsl.blogspot.com/feeds/222869801414084761/comments/default" title="帖子评论"/>
- <link rel="replies" type="text/html" href="http://testbysenrsl.blogspot.com/2016/08/blog-post.html#comment-form" title="2 条评论"/>
- <link rel="edit" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/posts/default/222869801414084761"/>
- <link rel="self" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/posts/default/222869801414084761"/>
- <link rel="alternate" type="text/html" href="http://testbysenrsl.blogspot.com/2016/08/blog-post.html" title="导入导出测试"/>
- <author>
- <name>senRsl Zhao</name>
- <uri>https://plus.google.com/100743021429432655774</uri>
- <email>noreply@blogger.com</email>
- <gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh6.googleusercontent.com/-oUkhvUhgg_E/AAAAAAAAAAI/AAAAAAAAAAA/dPY0WOz15ME/s32-c/photo.jpg"/>
- </author>
- <!-- 这条记录有两条评论 -->
- <thr:total>2</thr:total>
- </entry>
- <!-- 第二个帖子的第一个评论 -->
- <entry>
- <id>tag:blogger.com,1999:blog-171507978679241883.post-4116591716262517041</id>
- <published>2013-08-11T02:26:47.831-07:00</published>
- <updated>2014-08-11T02:26:47.831-07:00</updated>
- <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/blogger/2008/kind#comment"/>
- <title type="text">这时一篇评论文章啊啊啊标题2016年08月12日11:30:58</title>
- <content type="html">这时一篇评论文章内容</content>
- <link rel="edit" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/222869801414084761/comments/default/4116591716262517041"/>
- <link rel="self" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/222869801414084761/comments/default/4116591716262517041"/>
- <link rel="alternate" type="text/html" href="http://testbysenrsl.blogspot.com/2016/08/blog-post.html?showComment=1470907607831#c4116591716262517041" title=""/>
- <author>
- <name>senRsl Zhao</name>
- <uri>https://www.blogger.com/profile/11987603322719380386</uri>
- <email>noreply@blogger.com</email>
- <gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh6.googleusercontent.com/-oUkhvUhgg_E/AAAAAAAAAAI/AAAAAAAAAAA/dPY0WOz15ME/s32-c/photo.jpg"/>
- </author>
- <thr:in-reply-to href="http://testbysenrsl.blogspot.com/2016/08/blog-post.html" ref="tag:blogger.com,1999:blog-171507978679241883.post-222869801414084761" source="https://www.blogger.com/feeds/171507978679241883/posts/default/222869801414084761" type="text/html"/>
- <gd:extendedProperty name="blogger.itemClass" value="pid-1770457059"/>
- <gd:extendedProperty name="blogger.displayTime" value="2016年8月11日 上午2:26"/>
- </entry>
- <!-- 第二个帖子的第二个评论 -->
- <entry>
- <id>tag:blogger.com,1999:blog-171507978679241883.post-6751649727143437779</id>
- <published>2015-08-11T20:02:46.261-07:00</published>
- <updated>2016-08-11T20:02:46.261-07:00</updated>
- <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/blogger/2008/kind#comment"/>
- <title type="text">这时第二个评论的标题</title>
- <content type="html">这时第二个评论的大大大内容</content>
- <link rel="edit" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/222869801414084761/comments/default/6751649727143437779"/>
- <link rel="self" type="application/atom+xml" href="https://www.blogger.com/feeds/171507978679241883/222869801414084761/comments/default/6751649727143437779"/>
- <link rel="alternate" type="text/html" href="http://testbysenrsl.blogspot.com/2016/08/blog-post.html?showComment=1470970966261#c6751649727143437779" title=""/>
- <author>
- <name>senRsl Zhao</name>
- <uri>https://www.blogger.com/profile/11987603322719380386</uri>
- <email>noreply@blogger.com</email>
- <gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="//lh6.googleusercontent.com/-oUkhvUhgg_E/AAAAAAAAAAI/AAAAAAAAAAA/dPY0WOz15ME/s32-c/photo.jpg"/>
- </author>
- <thr:in-reply-to href="http://testbysenrsl.blogspot.com/2016/08/blog-post.html" ref="tag:blogger.com,1999:blog-171507978679241883.post-222869801414084761" source="https://www.blogger.com/feeds/171507978679241883/posts/default/222869801414084761" type="text/html"/>
- <gd:extendedProperty name="blogger.itemClass" value="pid-1770457059"/>
- <gd:extendedProperty name="blogger.displayTime" value="2016年8月11日 下午8:02"/>
- </entry>
- </feed>
找了一遭,发现网易博客,新浪微博,blogspot都是有api的,太好了
--
senRsl
2016年08月12日11:27:11
2016年08月12日11:27:11
没有评论 :
发表评论