Automating search for words in a website using WSH
- From: "Hii Sing Chung" <singchung@xxxxxxxxxxx>
- Date: Sat, 6 Jun 2009 18:03:47 +0800
These are the processes my team are doing everyday at 6am (the urls and the words are examples):
1. Got to http://www.phishing.org, check for the presence of word1, word2, word3, word4, unicodeword5 for today's posting
2. Open up Outlook, send an e-mail using a predefined template, the subject of the mail: Phishing check result [today's date]. The body text: There is [0] increase in phishing site.
3. The team member has to enter today's date in the subject and if there is any increase to the number of match found, change the 0 value.
4. Send the mail.
I am able to automate the part of the composing of e-mail using wsh with the date variable in the subject. However, I am not able to automate the process of checking at the particular website, looking for matching words, and return the number of match found to the wsh to change the 0 value accordingly. I found that I can do a Google search with the match word parameter and the date parameter, like this: http://www.google.com/search?hl=en&rlz=1T4SKPB_enSG318SG319&as_q=&as_epq=&as_oq=word1+word2+word3+%E5%AD%97&as_eq=&num=10&lr=&as_filetype=&ft=i&as_sitesearch=&as_qdr=d&as_rights=&as_occt=any&cr=&as_nlo=&as_nhi=&safe=images. When putting this string into the url, and Enter, Google will return the search result. I would like to be able to return this result back to wsh, as 0, 1, 2, 3, depending on the number of matches. Is there a way to accomplish this?
Or, is there a better way?
Thanks in advance,
Sing Chung
.
- Follow-Ups:
- Re: Automating search for words in a website using WSH
- From: Tim Harig
- Re: Automating search for words in a website using WSH
- From: Pegasus [MVP]
- Re: Automating search for words in a website using WSH
- Prev by Date: RE: Adding an automation class for IMAPI
- Next by Date: Re: Automating search for words in a website using WSH
- Previous by thread: RE: Adding an automation class for IMAPI
- Next by thread: Re: Automating search for words in a website using WSH
- Index(es):
Relevant Pages
|
Loading