Monday, January 23, 2012

Retrieving The PostID, To Recover A Deleted Post

One of the challenges of using the Blogger dashboard "Posts" menu is the too easy ability to delete posts - if you are not thinking about what you're doing.

Fortunately, under the right circumstances, accidental deletion of a single post won't cause a terrible catastrophe - though you (the blog owner) will need to react properly.

There are several techniques to recreate or recover a post, after it's accidentally deleted from your blog.

You have to be careful, to recover the contents, published to the same URL as before.
  • Recover from the blog feed, using scraped text.
  • Recover from search engine cache, using scraped text.
  • Recover from the blog feed, using the PostID.
  • Recover from search engine cache, using the PostID.
The PostID, similar to the BlogID, is a non publicised identifier, which is attached to a post, when it's published to the host blog.

If you delete a post that's been cached by the search engines, you can retrieve the PostID from the cached content. Combining the BlogID and the PostID, you can directly access the Post editor display for the post itself, and re publish the post.

First, retrieve the BlogID. Next, do the same with the PostID.

The previous post in this subject, Recovering A Deleted Post, was cached by the search engines some time ago. Doing a search engine cache search, I can find a cached copy of that post.

Looking at the source code for that page, as cached, I look for (some line breaks inserted, here)
<div class='post hentry'>
<a name='8899607620317019913'></a>
<h3 class='post-title entry-title'>
<a href='http://blogging.nitecruzr.net/2012/01/recovering-deleted-post.html'>
Recovering A Deleted Post</a>
</h3>

There's the PostID
8899607620317019913

Adding the PostID and the BlogID, I can now access the post editor, as
https://www.blogger.com/blogger.g?blogID=24069595#editor/target=post;postID=8899607620317019913;

From there, I simply
Publish Post
or
Publish
or
Save
or
Update
depending upon what the Post Editor offers -
and my post, with all content and with the original URL, comes right back online.

If you have this problem, just do the same with your blog and page / post - and (hoping that your blog is cached) you should get similar results.

If the blog content is not cached, you may be able to retrieve the PostID from the blog feed.

I'll note that the post editor session, for a given blog, can only be used by a blog author or owner - this is not a security risk. Try editing my post, using the URL above, if you don't believe me.

>> Top

Elm0D

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 comments:

Post a Comment

Navigate» Become author for this Blog

Manual Categories