maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] www2sms - Send SMS via your providers website (https://talk.maemo.org/showthread.php?t=52754)

nexus101 2010-05-18 10:56

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Hooray! It works :-)

Thank you all for your help and especially to Bjoern for this very appreciated programm!

Some feature requests:
1) Check for leading + in phone numbers.
2) Check for phone is online or not and go temporarily online if not.

Thanks again,
nexus

blubbi 2010-05-18 11:03

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by nexus101 (Post 663882)
Hooray! It works :-)

Thank you all for your help and especially to Bjoern for this very appreciated programm!

Some feature requests:
1) Check for leading + in phone numbers.

Oh, okay, i thought it worked with 0somthing or +something, so I have to revise my regexp check to only allow number with +something

Code:

re.match('^(\+[1-9][0-9]+)|(0[0-9]+)', num)
Needs to be changed to
Code:

re.match('^(\+[1-9][0-9]+)', num)
Quote:

Originally Posted by nexus101 (Post 663882)
2) Check for phone is online or not and go temporarily online if not.

Thanks again,
nexus

I'll put that on my TODO list. Thanks for the hint.

Cheers
Bjoern

blubbi 2010-05-18 11:59

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by MaRRo81 (Post 663854)
Lol..that's a bad news :( Unfortunatelly my sms provider is not supported so...I'm some steps behind you :)

Mhh, do you have some programing skills? If yes, it should be no problem for you to adapt the "Vodafone - NL" class in www2sms_providers.py

Don't get disturbed by the "o2online - germany" provider class, I was a bit over ambitious and implemented all the features on their website (okay... scheduling is not yet working) :D

Cheers
Bjoern

gri 2010-05-18 12:07

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by blubbi (Post 663816)
Oh, i don't think we are direct competitors, cause my approach is to scrape the website instead of using a API provided by some service. ;-) This might come in handy if there is no API present for a certain provider.
But well... the providers are modular, so how a provider is interfaced does not matter to my program, it just relies on some variables passed back from the provider class.

Thank you very much for the link! I appreciate it very much! If I, with my average python/QT skills, can help out let me know.

Cheers
Bjoern

Unfortunately we are. The basic idea is the same and I also use the o2 Germany's site because there is no programming interface.
But www2sms is more stable I think :)

blubbi 2010-05-18 12:37

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by gri (Post 664003)
Unfortunately we are. The basic idea is the same and I also use the o2 Germany's site because there is no programming interface.

Oh, then I misread your program description. I thought you were using some sort of public available API which is available for a bunch of services.

Quote:

Originally Posted by gri (Post 664003)
But www2sms is more stable I think :)

Sure about that?

But while we are on it.
Why not merge our efforts? I guess we both could make larger steps forward when we work together instead of figuring out different ways to address web scraping. And one stable, well supported app is better then two unstable apps.

I am open for changes. How about you?

Cheers
Bjoern

MaRRo81 2010-05-18 12:42

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by blubbi (Post 663992)
Mhh, do you have some programing skills? If yes, it should be no problem for you to adapt the "Vodafone - NL" class in www2sms_providers.py

Don't get disturbed by the "o2online - germany" provider class, I was a bit over ambitious and implemented all the features on their website (okay... scheduling is not yet working) :D

Cheers
Bjoern

Mh I used to write in othe languages when I was younger...so..I can try!! I'll keep you up-to-date! :)

blubbi 2010-05-18 15:40

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
1 Attachment(s)
Quote:

Originally Posted by MaRRo81 (Post 664053)
Mh I used to write in othe languages when I was younger...so..I can try!! I'll keep you up-to-date! :)

Let me know if I can help you.

By the way, version 1.0.1 should be in the DEVEL overlay in a few minutes.
Quote:

[2010-05-18 18:36:43] www2sms 1.0.1 has been queued for loading into fremantle extras-devel repository
I'll attach the tar here as well.

CHANGELOG 1.0.0 -> 1.0.1:
Quote:

www2sms (1.0.1) stable; urgency=low
* Stripped down the loaded QT modules to a bare minimum
* Fixed bug where the send Button was enabled without having an account
* Fixed regex check for o2online DE
* Added python-evolution to the dependencies
* Fixed crash for contacts without name, familyname or alias
* Known Bugs: Planing SMS does not work (o2online.de only) -> Disabled
* Known Bugs: Special characters (like Umlaute) vanish in the send SMS
Cheers
Bjoern

pelago 2010-05-18 16:00

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
I'm not trying to put a downer on this, but has anyone considered whether this kind of screen-scraping app is compatible with the various providers terms and conditions for their websites? They may prefer people going via their websites so they can show you adverts etc., and may not take kindly to this kind of app.

I only mention it because sometimes when sites find out about screen scraping they try and block it by user agent, or by obfuscating their HTML code, etc., which obviously is a hassle to work around.

blubbi 2010-05-18 16:05

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Quote:

Originally Posted by pelago (Post 664401)
I'm not trying to put a downer on this, but has anyone considered whether this kind of screen-scraping app is compatible with the various providers terms and conditions for their websites? They may prefer people going via their websites so they can show you adverts etc., and may not take kindly to this kind of app.

I only mention it because sometimes when sites find out about screen scraping they try and block it by user agent, or by obfuscating their HTML code, etc., which obviously is a hassle to work around.

Well, I didn't read the Terms in detail, but I could find a passage that permits it clearly. But in fact, you are right.

We will see.

Cheers
Bjoern

blubbi 2010-05-18 17:37

Re: [ANNOUNCE] www2sms - Send SMS via your providers website
 
Hey, first attempts to insert the SMS into conversations are WORKING!

So I guess the next version will be with SMS insertion into conversation :-)

Just wanted to let you knwo :cool:


All times are GMT. The time now is 11:36.

vBulletin® Version 3.8.8