Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

Wednesday, January 17, 2007

blogpingr: ping your blog to get indexed and drive traffic

I was looking for a blog pinger desktop or console program for Linux, but I didn't find any. So I decide to write one, for easy pinging blog update services.
I wrote simple program before some days. The program is in Python and pings many xml-rpc blog indexing services. I put it on sourceforge.

blogpingr project

Download or Direct download blogpingr-0.1.0

How to install it:
1. Download the program.
2. Extract files
tar -zxvf blogpingr-0.1.0
3. Install it as root
cd blogpingr-0.1.0
python setup.py install

How to use it:
1. Just execute the following command (change your blog name and URL)

blogpingr http://poisonerbg.blogspot.com/ "PoisoneR's Blog"

You will see similar output:
[20:37:40][poisoner@oTpoBa] ~ $ blogpingr http://poisonerbg.blogspot.com/ "PoisoneR's Blog"
* Pinging PoisoneR's Blog http://poisonerbg.blogspot.com/
* Ping OK: http://ping.bloggers.jp/rpc/
Thanks for the ping.
* Ping OK: http://www.blogoon.net/ping/
Thanks for the ping
* Ping OK: http://bulkfeeds.net/rpc
Thanks for your ping.
* Ping OK: http://rpc.weblogs.com/RPC2
Thanks for the ping.
* Ping OK: http://ping.syndic8.com/xmlrpc.php
Thanks for pinging Syndic8
* Ping OK: http://ping.feedburner.com
Ok
* Ping OK: http://ping.weblogalot.com/rpc.php
Success! Thank you for your ping.
* Ping OK: http://pinger.blogflux.com/rpc/
Ping recorded successfully
* Ping OK: http://rpc.technorati.com/rpc/ping
Thanks for the ping
* Ping OK: http://api.moreover.com/RPC2
Thanks for the ping!

and that's all. You will ping all services listed in /etc/blogpinr.conf.

You can make allias for shortert command. Add following line in your ~/.bashrc

alias pingmyblog="blogpingr http://poisonerbg.blogspot.com/ \"PoisoneR's Weblog\""

And when you add new post in your blog just type:

pingmyblog

If you have any problems or features request, post comments here or in project page at sourceforge.

Wednesday, January 10, 2007

The Zen of Python

There is an easter egg in Python. Type "import this" in the python interpreter. That are the
principles for Python's design.
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!


PS. It's not something new, but more people don't know it.