Thread: Dialcentral 1.0
View Single Post
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#436
Originally Posted by TronDD View Post
Similar error as dialcentral gives me.

Traceback (most recent call last):
File "generate_gv_samples.py", line 93, in <module>
main()
File "generate_gv_samples.py", line 76, in main
raise RuntimeError("Could not extract authentication token from GoogleVoice")
RuntimeError: Could not extract authentication token from GoogleVoice
In this case, the file of interest is "loggingin.txt". The annoying thing is Google didn't report any login errors . It just gives a fresh login page (with your email address remembered). This still tells us more than we knew before.

Oh and people might like to know that in investigating this issue I dropped the login time (for fresh logins) from
Code:
real	0m4.338s
user	0m0.216s
sys	0m0.040s
to
Code:
real	0m2.042s
user	0m0.208s
sys	0m0.012s
Not the most scientific of benchmarks but was repeatable enough. The command used was (dialer.py being my in-work gv_backend.py):
Code:
rm ~/.gv_cookies.txt ; time ./dialer.py USERNAME PASSWORD
I noticed they added a parameter to login "continue". This lets me chose where I redirect to. I first selected a page I knew was very small. This shaved over 1s off "real". I then made the redirect also be a page that I need to authenticate login and grab account details. I then realized I was duplicating a check. This brought it down to what it now is in my private branch.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog

Last edited by epage; 2009-09-30 at 02:54. Reason: Fixed typo; added a caution on benchmarks; updated benchmark with latest findings