Automating search for words in a website using WSH



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

.



Relevant Pages

  • Re: Automating search for words in a website using WSH
    ... and return the number of match found to the wsh to change the 0 value ... I found that I can do a Google search with the match word ... You could use the batch file below to search for your words It's not script ... echo Result=%Result% ...
    (microsoft.public.scripting.wsh)
  • Re: Hourglass or something?
    ... bars" that you could incorporate, some sophisticated, some ... I did look over the information returned by Paul's Google search, ... script instead of the wscript.exe, which is the standard default WSH ...
    (microsoft.public.scripting.wsh)
  • Re: automate backup of digital certificates
    ... Windows doesn't ship with a tool to do that, ... If you're a coder, you can automate the UI (WSH is good at that) ...
    (microsoft.public.win2000.security)

Loading