Only 1 word left on google voice, and its mine!

I recently got an invitation to google voice and have been trying to come up with a good number. I tried all the first 10 digits of physics constants and every single 10 letter word in the ubuntu /usr/share/dict/words. Out of all of that, there was ONLY 1 that was available.

So I give you my new phone number (which is very easy to memorize, hehe) :

(MEM) ORI-ZING 
(636) 674-9464

The 2 other leading candidates were :

(209) 782-7526 (209) PTA-RJAN

(707) 728-5468 (707) PAU-LIN8 (thanks ultramegaman)

Is it too much to ask for the number (314) 159-2653, (299) 792-4580, or (137) 035-9990? What is a geek to do…

Here is the source of my script:

# This script will search google voice to see if there are any numbers
# available that spell a 10 letter word 
#
# It can easily be customized for 9 letters, or to use your own dictionary, etc.
#
# Author: Paul Tarjan <http://paulisageek.com>
#
# Make sure you put your own cookie here. Search the web if you don't know how to find it.
cookie = "DQAAA<rest of cookie>"

import urllib2
import re

def check(c) :
    global cookie
    r = urllib2.Request("https://www.google.com/voice/setup/search/?q=" + c, headers={"Cookie" : "gv=" + cookie})
    response = urllib2.urlopen(r)
    data = response.read()
    if '"Sign in"' in data:
        print "Bad cookie (probably)"
        return False
    if data.find('"num_matches":"0"') != -1 :
        return False
    return True

def dict(f="/usr/share/dict/words") :
    for word in file(f).read().split() :
        if len(word) == 10 and re.match("^[a-zA-Z0-9]+$", word) :
            if check(word) :
                print word

if "<rest of cookie>" in cookie:
    print "Please look up your google cookie and put it at the top of this file before running"
else:
    dict()

If it can help anyone, here is the list of the first 10 digits of all of the physics constants on that site which are known to 10 digits or greater :

2997924580
1054571628
1256637061
8854187817
3767303134
1602176487
2417989454
7297352537
1370359996
2067833667
7748091700
1290640377
2581280755
1758820150
2426310217
2817940289
0665245855
3636947519
2002319304
6582106848
6582275971
2802495364
1097373156
5291772085
1660538782
3990312682
0119626564
5485799094
1602176487
1660538782
1672621637
1321409844
1410606662
5585694713
1674927211
1319590895
2002331841
0433073465
0857438230
1074553298
3243410198
Posted on 16 July 2009 by Paul Tarjan

If you liked this, you might also like...