Notices


Reply
Thread Tools
blubbi's Avatar
Posts: 288 | Thanked: 111 times | Joined on Dec 2009 @ Germany
#1
www2sms lets you send SMS via your providers Website.

Currently two providers are supported:
- O2 Germany (by myself)
- Vodafon Netherlands (by Shane)

The program is entirely written in Pyhton and uses python-mechanize to scrape the websites.

It's written modular, so it's easy to patch in new providers.
Your Address book is fully supported (well, not as nice as I would like it to be, but it is a start)

Now saves SMS to Conversation
(thanks gri for the code!)

Features for o2online (DE):
  • Send SMS anonymous
  • Send SMS with different sender ID
  • Send SMS as Flash SMS
  • Scheduling SMS is work in progress

ToDo:
  • Fix o2online.de scheduling
  • Find nicer Phone book workaround
  • Some cosmetic changes (Nicer Contact selection, etc)
  • Special characters like "" do not show up in the send SMS

The advanced Tab only shows up if the provider features advanced settings.

I would like to promote the package to testing if no sever bugs occur. So PLEASE test.

Version 1.0.2 is in DEVEL right now.

https://garage.maemo.org/projects/www2sms/
http://maemo.org/packages/view/www2sms/


Please vote for the dependencies of www2sms:
python-mechanize
http://maemo.org/packages/view/python-mechanize/
http://maemo.org/packages/package_in....11-1.1maemo4/

python-clientform
http://maemo.org/packages/view/python-clientform/
http://maemo.org/packages/package_in....10-2.1maemo4/

Kind regards
Bjoern
Attached Images
     

Last edited by blubbi; 2010-05-18 at 18:25.
 

The Following 8 Users Say Thank You to blubbi For This Useful Post:
Posts: 118 | Thanked: 39 times | Joined on Apr 2010 @ Jakarta, Indonesia
#2
keep up the good work...

unfortunately i'm not using any of the supported provider
so i'll be waiting for more provider support (and i don't know anything about python programming also)
 
blubbi's Avatar
Posts: 288 | Thanked: 111 times | Joined on Dec 2009 @ Germany
#3
Originally Posted by adhrie View Post
keep up the good work...

unfortunately i'm not using any of the supported provider
so i'll be waiting for more provider support (and i don't know anything about python programming also)
Jeah, well that's the problem...
Adding new providers is only possible if one has access to the target provider and some skills in python or a friend who has.

Well, any provider can be added, not only cellphone providers.
(Any webservice providing SMS)

I just started with o2online.de because I got 50 free SMS/month and was to lazy to fire up the browser each time. Shane contributed the "Vodavone Netherlands" provider.

So I am open for suggestions and patches are welcome as well ;-)


Cheers
Bjoern
 
HumanPenguin's Avatar
Posts: 270 | Thanked: 169 times | Joined on Jul 2007 @ Atlanta, GA + Oxford UK
#4
Originally Posted by adhrie View Post
keep up the good work...

unfortunately i'm not using any of the supported provider
so i'll be waiting for more provider support (and i don't know anything about python programming also)
I have a fair bit of python experience.

If someone could point me to the sites I need to do this through vodafone UK and other providers Id be happy to work ut how to create modules for it.

I have been looking for a project to get into maemo development.
 
blubbi's Avatar
Posts: 288 | Thanked: 111 times | Joined on Dec 2009 @ Germany
#5
Originally Posted by HumanPenguin View Post
I have a fair bit of python experience.

If someone could point me to the sites I need to do this through vodafone UK and other providers Id be happy to work ut how to create modules for it.

I have been looking for a project to get into maemo development.
Well, do you have an account for those providers? If yes, all you need to do is the following:
  • Read on python-mechanize
  • Download www2sms and have a look at www2sms_providers.py
  • Add your own provider class to www2sms_providers.py (take the existing as example, o2online is rather complex because of the additions features, so for the beginning have a look at Vodafon NL)
  • Use FireFox Web Developer Plugin to easily get the forms to fill (Or Opera DragonFly)

If you don't have access to those providers, just look out for some public SMS-Service like http://sms.de or any other serious provider you use or found by google: http://www.google.com/search?q=free+sms

Go for one that does not use too much JavaScript, mechanize does not support JavaScript and you have to manually reconstruct what the JavaScript is doing.

Contact me via PM if you want to attend the project or contact me via SKYPE, XMMP. I am glad to help you start.

Thanks for your interest.

Cheers
Bjoern
 
HumanPenguin's Avatar
Posts: 270 | Thanked: 169 times | Joined on Jul 2007 @ Atlanta, GA + Oxford UK
#6
Originally Posted by blubbi View Post
Well, do you have an account for those providers? If yes, all you need to do is the following:
  • Read on python-mechanize
  • Download www2sms and have a look at www2sms_providers.py
  • Add your own provider class to www2sms_providers.py (take the existing as example, o2online is rather complex because of the additions features, so for the beginning have a look at Vodafon NL)
  • Use FireFox Web Developer Plugin to easily get the forms to fill (Or Opera DragonFly)

If you don't have access to those providers, just look out for some public SMS-Service like http://sms.de or any other serious provider you use or found by google: http://www.google.com/search?q=free+sms

Go for one that does not use too much JavaScript, mechanize does not support JavaScript and you have to manually reconstruct what the JavaScript is doing.

Contact me via PM if you want to attend the project or contact me via SKYPE, XMMP. I am glad to help you start.

Thanks for your interest.

Cheers
Bjoern
I have a contract with vodafone uk.

Ill look around at stuff when I get home. ( At gfs atm)

I am not sure if vodafone UK even provides such a service but will look into it.
 
blubbi's Avatar
Posts: 288 | Thanked: 111 times | Joined on Dec 2009 @ Germany
#7
Originally Posted by HumanPenguin View Post
I have a contract with vodafone uk.

Ill look around at stuff when I get home. ( At gfs atm)

I am not sure if vodafone UK even provides such a service but will look into it.
If Vodafon UK has such a service, it should be straight forward to modify the existing Vodafon NL class to match Vodafon UK (If the websites are not too different)

Cheers
Bjoern
 
Posts: 16 | Thanked: 1 time | Joined on Jan 2010
#8
Hi,

I've installed the last version of www2sms from extra-devel but when I launch it, it doesn't work...It starts loading but then nothing happens and the window closes...what could it be?

Many thanks
 
Posts: 16 | Thanked: 1 time | Joined on Jan 2010
#9
If I launch it from shell it says " QGtkStyle cannot be used together wit GTK_Qt engine. Segmentation fault".

Any ideas?
 
blubbi's Avatar
Posts: 288 | Thanked: 111 times | Joined on Dec 2009 @ Germany
#10
Originally Posted by MaRRo81 View Post
If I launch it from shell it says " QGtkStyle cannot be used together wit GTK_Qt engine. Segmentation fault".

Any ideas?
Mmmmh, that weird. I once got that error when launching www2sms.py as root. But after dropping root privileges and running
"cd /opt/www2sms/"
"python www2sms.py"
it started right away.

Could you download the attached version, extract it an run it from the console?
(There is only a fix included for "Umlaute", I completely forgot to test for that and... using Umlaute, mechanize fails to send the SMS)

Did you install version 1.0.0 via the package manager?

Cheers
Bjoern
Attached Files
File Type: tar www2sms-1.0.1.tar (265.0 KB, 144 views)

Last edited by blubbi; 2010-05-17 at 14:52.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:32.