Sunday, December 11, 2011

How To Delete Labels From Blogger - Part 2 | Blogger Labels Utilities

Hi again.

As promised here I'm again to announce the release of the first tool part of the blogger-labels-tools suite.

The tool is called "blogger-labels-purger" and will allow you to delete all the labels from any of your blogs given a date interval.

This means you don't need to use the Blogger interface to do this and potentially save a lot of time, especially if you have blogs containing thousands of labels.

The tool will require Python to be installed on your system to run.

I've developed is using Python 2.5 so any version starting from that release should be fine.

A simple usage of the tool follows:

>$ python blogger-labels-purger.py -u [Your Blogger Username Here]


A password will then required by the tool in order to continue.


The full help to use the tool follows:



Blogger Labels Tools - Released by thetubo.
blogger-labels-purger - To remove all your labels from your posts.
version 0.1 - 11/12/2011




Usage: blogger-labels-purger.py [options]


Options:
  -h, --help            show this help message and exit
  -u UNAME, --email=UNAME
                        Your username to authenticate with blogger. This
                        option is mandatory!
  -p PWD, --password=PWD
                        Your password to loging with blogger.
  -f START_DATE, --from=START_DATE
                        The start date (YYYY-MM-DD) to begin updating the
                        blog. Typically from when you want start removing
                        labels.
  -t END_DATE, --to=END_DATE
                        The end date (YYYY-MM-DD) to begin updating the blog.
                        Typically from when you want start removing labels.




The "-f" and "-t" options will let you specify the date interval for the tool to operate.


E.g. if you want to delete all the labels between the 1st November 2011 until the 15th November 2011 your command line could be:


>$ python blogger-labels-purger.py -u [Your Blogger Username Here] -f 2011-11-01 -t 2011-11-15


Note that when the "-f" option (the starting date) is not provided then at least the "-t" option is necessary.
In this case all the labels related to posts up to 50 days to the ending date will be removed from the blog.


When not specified in the command line the "end-date" will be requested after selecting what blog to process. 


So to start the tool just specify the "-u" option!




This tool was developed using the Google API, which are included in the download.


Finally here's the home page of the blogger-label-tools project on Google Code:




Blogger Labels Tools


Please report any bugs using the Google Code interface.

Any comments about the tool is also appreciated.

The next tool I will soon publish is about re-labeling your blog based on a list of words so stay tuned!

Tuesday, November 22, 2011

How To Delete Labels From Blogger

So you have a blog on Blogger full of labels and are you thinking to re-label it from scratch?

If so you will soon find out that the only way to do that is manually! Navigating from labels to labels and removing it as discussed in the following video.



However what happens if you have more than 1000 labels for your blog?
The manual process is not even thinkable!

So is there any other way to do that? The answer is yes but you will need some programming skills!

But no worries! I'm already doing the hard job for you!!!

Stay tuned on this blog and I will soon publish a tool to do that!

The tool will let you remove all the labels from your blog(s) without interacting with the blog interface at all.

When the blog will be finally clean from all the labels then you will be able to use another tool, which will be also released here soon, to re-label your Blogger posts based on a list of labels you have prepared on an external file.

 How cool is that?