Archive for February, 2012

WordPress Visit Counter

February 24, 2012 Leave a comment

You have a wordpress blog (or several) and you want to know the (total) number of visitors. How to nail it?

Here is a simple script that scrapes the essential parts from a webpage.

Sample output:       29,822        100,639
Total number of visits: 130,461!

This idea was inspired by vanity.

Categories: python Tags: , ,

Username/password generator

February 23, 2012 Leave a comment

You want to register on a website but you don’t want to use the same username/password combination everywhere. It’d be nice to have a generator for this task.

I made a Python script for this, available here.

Sample output:

akutak      # username
C0A9b69h    # password

Easy access to download stats for PyPI packages

February 17, 2012 1 comment

You have a project that you pushed on PyPI and you want to check how many times it has been downloaded.

Use the command-line script vanity.


sudo pip install vanity


$ vanity jabbapylib
jabbapylib-0.1.0.tar.gz     2012-01-25       81
jabbapylib-0.1.1.tar.gz     2012-02-17        0
jabbapylib has been downloaded 81 times!
Categories: python Tags: ,