Archive for February, 2012
WordPress Visit Counter
February 24, 2012
Leave a comment
Problem
You have a wordpress blog (or several) and you want to know the (total) number of visitors. How to nail it?
Solution
Here is a simple script that scrapes the essential parts from a webpage.
Sample output:
https://pythonadventures.wordpress.com 29,822 http://ubuntuincident.wordpress.com 100,639 -------------------------------------------------- Total number of visits: 130,461!
This idea was inspired by vanity.
Username/password generator
February 23, 2012
Leave a comment
Problem
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.
Solution
I made a Python script for this, available here.
Sample output:
akutak # username C0A9b69h # password
Categories: python
password generator, username generator
Easy access to download stats for PyPI packages
February 17, 2012
1 comment
Problem
You have a project that you pushed on PyPI and you want to check how many times it has been downloaded.
Solution
Use the command-line script vanity.
Installation:
sudo pip install vanity
Example:
$ 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!