Helpful Information
 
 
Category: Beginner Programming
How do I automatically send a daily SMS-message with stockquotes scraped from the web

I want to build an automatic script which performs the following actions:

1) connect to a secure site with my username & password
2) navigate through the pages to find some quotes.
3) scrape these quotes from the pages
4) compile these into a SMS-message
5) send this SMS-message to a list of GSM Phonenumbers

I have the availability of a cable connected Linux-server to perform these actions on.

Should I write a crontab? Any other suggestions?

Regards,
Erwin Heukels

I would suggest you write a Perl-script. This can retrieve the info from the web for you. You can request the page using LWP::UserAgent and use Regular Expressions to scrape the quotes from it.

However I'm not sure how to send the SMS from there. Maybe there is site that you can put a request to with the info in the querystring, which will send it to you.

Indeed you then can use cron to have executed every morning.

------------------
Good luck,
Bas

------------------
E-mail me at: b.vandermeijden@pecoma.nl

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by MeijdenB:
I would suggest you write a Perl-script. This can retrieve the info from the web for you. You can request the page using LWP::UserAgent and use Regular Expressions to scrape the quotes from it.

However I'm not sure how to send the SMS from there. Maybe there is site that you can put a request to with the info in the querystring, which will send it to you.

Indeed you then can use cron to have executed every morning.

[/quote]

In the UK we have plenty of email to SMS gateways.

Or in the UK you could go with a specialist SMS house if you wished to do this as a commercial operation.










privacy (GDPR)