[email protected] ~/archive2011/comcappy-comcast-internet-usage-script/


Thu Apr 21 08:37:34 PDT 2011




comments content tags related

wc content


cat content

Yesterday I wrote a little python script that grabs your current Comcast internet usage and prints it to stdout. It depends on the excellent mechanize module so if you don’t have it, install it with easy_install.py mechanize.

To run the script, simply execute comcap.py. You will be prompted for your Comcast username and password. Alternatively, you can create an entry in your ~/.netrc file with your Comcast credentials. The entry should look like:

machine login.comcast.net
login [email protected]
password password

where username is your Comcast username and password is your Comcast password.

I’ll be running this in a cron job every few days to monitor my usage and send a warning email to myself if the usage gets near the limit. Hopefully someone else will also find this useful!

Find the code here: comcap.py

cat tags

bandwidth comcast internet mechanize usage

cat related

Paychex paystubs

Boxee Box NFO file creator

gitorious.py - A command line interface to Gitorious

cat comments

Comments powered by Disqus