|
2010-09-16
, 17:16
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#182
|
I am still trying with the scraping technique (mostly because i did some work on it already).
My first error was "global name 'number' not defined"
This was in lineI dunno if its right, but nevertheless, i modifies number to num and the error goes away.Code:num = number[3:]
Next I am getting error "global name 'cookielib' is not defined".
I have a feeling i'm missing something here and that these two are related. What happened? is some file with global variables missing?
EDIT: OK, i imported cookielib and error went away. Was that a bug? Anyway now i am stuck at login error.
cj = cookielib.LWPCookieJar() br.set_cookiejar(cj)
|
2010-09-17
, 07:54
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#183
|
Ok, so now I am at 'Error logging in'. I don't really know what the problem is as there are no errors in terminal. But i think its because the form in the main page has no name only id. I triedbut still no improvement.Code:br.select_form(nr=0)
I also installed the google desktop and sdk and went through the widget/gadget that I mentioned earlier. It is in javascript and from what i understand, there is an alternate API to access the site. I am attaching the codes, could you please take a look at it?
Thanks
login_url = "http://www.160by2.com/Widget/Comman.asp?RT=LC&txtUN=%s&txtPWD=%s&SIZE_ID=2&userid=" %s(LOGIN, PASSWORD)
send_url = "http://www.160by2.com/Widget/Comman.asp?RT=SC&txtMNO=%s&txtMSG=%s&SIZE_ID=2&userid=%s" %(UNKNOWN, MESGTEXT, USERID)
logout_url="http://www.160by2.com/Widget/Comman.asp?RT=LO&userid=%s" %(USERID)
|
2010-09-18
, 06:15
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#184
|
|
2010-09-22
, 10:59
|
Posts: 35 |
Thanked: 1 time |
Joined on Dec 2009
|
#185
|
|
2010-10-02
, 16:15
|
|
Posts: 5 |
Thanked: 1 time |
Joined on Sep 2010
@ Milan
|
#186
|
|
2010-10-02
, 18:18
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#187
|
|
2010-10-02
, 18:23
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#188
|
@blubbi
I sent you an email, but you didn't answer me yet... I took your email address from provider configuration file of the application: maemo@olausson.de
is it wrong?
we really need your help, thanks in advance
|
2010-10-06
, 11:40
|
Posts: 35 |
Thanked: 1 time |
Joined on Dec 2009
|
#189
|
|
2010-10-09
, 19:50
|
Posts: 35 |
Thanked: 1 time |
Joined on Dec 2009
|
#190
|
I also installed the google desktop and sdk and went through the widget/gadget that I mentioned earlier. It is in javascript and from what i understand, there is an alternate API to access the site. I am attaching the codes, could you please take a look at it?
Thanks