The Following User Says Thank You to blubbi For This Useful Post: | ||
|
2010-11-21
, 12:58
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#232
|
|
2010-11-21
, 13:00
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#233
|
|
2010-11-21
, 13:17
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#234
|
Do you still need me to do this? Also did u mean www2sms_providers.py or www2sms_providers_web.py?
import mechanize br = mechanize.Browser() br.open(http://m.160by2.com/)
In [15]: br.open("http://m.160by2.com/") Out[15]: <response_seek_wrapper at 0x8660fac whose wrapped object = <closeable_response at 0x865e86c whose fp = <socket._fileobject object at 0x8604dac>>>
In [16]: br.open("http://m.160by2XYZ.com/") ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (163, 0)) --------------------------------------------------------------------------- URLError Traceback (most recent call last)
The Following User Says Thank You to blubbi For This Useful Post: | ||
|
2010-11-21
, 13:27
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#235
|
>>> br.open("http://m.160by2.com") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/mechanize/_mechanize.py", line 203, in open return self._mech_open(url, data, timeout=timeout) File "/usr/lib/python2.5/site-packages/mechanize/_mechanize.py", line 255, in _mech_open raise response mechanize._response.httperror_seek_wrapper: HTTP Error 404: Not Found
|
2010-11-21
, 14:19
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#236
|
|
2010-11-21
, 17:55
|
|
Posts: 395 |
Thanked: 107 times |
Joined on Dec 2009
@ India
|
#237
|
|
2010-11-21
, 17:58
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#238
|
160by2 works perfectly,but why only 80 characters? 160by2 supports 140 characters.
160by2 allows YOU to send Free SMS up to 80 characters long which can reach any mobile in India. Rest of the 80 characters will be utilized by contextual advertisement.
160by2 = 80 for YOU + 80 for Advertisers.
|
2010-11-22
, 05:49
|
|
Posts: 800 |
Thanked: 957 times |
Joined on Sep 2010
@ India
|
#239
|
|
2010-11-22
, 15:57
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#240
|
I am uploading a slightly modified version of the 160by2 provider. Changes include
-140 characters limit (only 80 for international, but not implemented yet)
-Removes leading 0 (Domestic) or 00 (international) if any
-Checks if number begins with 9,8,7 or 6 (requisite for Indian mobile numbers and intl' calling codes for supported countries)
-First goes to http://m.160by2.com/index.asp?in=yes instead of http://m.160by2.com so as to save time.
Please test and comment if there are any bugs in this. I have tried only international sms to Kuwait. But it was not working (not the app's problem. something wrong with their site). So please check others and let me know if it is successful.
PS: i can't upload py file here. Also txt file is too big to be uploaded here, apparently (huh?). So i have zipped it and uploaded it.
Could you please change the code in www2sms_providers.py:
(in /home/user/MyDocs/www2sms/www2sms_providers_web.py)
Cheers
Bjoern
My website:
- olausson.de
- gallery.olausson.de
My Applications: