Results 1 to 19 of 19

Thread: sztext and wite new links

Hybrid View

  1. #1
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sztext and wite new links

    You can use regular expressions with VBScript to determine what is a hyperlink in that text there.

    http://www.regular-expressions.info/vbscript.html

  2. #2

    Thread Starter
    Junior Member gucci's Avatar
    Join Date
    Jun 2008
    Posts
    26

    Re: sztext and wite new links

    Quote Originally Posted by mendhak
    You can use regular expressions with VBScript to determine what is a hyperlink in that text there.

    http://www.regular-expressions.info/vbscript.html

    Hi,

    I use it to grab images of necp server (weather server).

    I first use wget to get the the html page and generate the server to create me a image.

    example:
    http://nomad5.ncep.noaa.gov/cgi-bin/...=%2Fgens%DATE%

    This generates me the html, the image is stored for a brief time in a tmp dir, and i need to generate the full link so i can use wget to download me the image.

    Cheers,

    Ian

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: sztext and wite new links

    Quote Originally Posted by gucci
    Hi,

    I use it to grab images of necp server (weather server).

    I first use wget to get the the html page and generate the server to create me a image.

    example:
    http://nomad5.ncep.noaa.gov/cgi-bin/...=%2Fgens%DATE%

    This generates me the html, the image is stored for a brief time in a tmp dir, and i need to generate the full link so i can use wget to download me the image.

    Cheers,

    Ian
    Not sure I understand - are you using regex already to get the image URL out?

  4. #4

    Thread Starter
    Junior Member gucci's Avatar
    Join Date
    Jun 2008
    Posts
    26

    Re: sztext and wite new links

    Quote Originally Posted by mendhak
    Not sure I understand - are you using regex already to get the image URL out?
    No am not using any vbs yet, but because i could not get the wget program to do what i wanted in full because of wildcards and a couple of other things - The only option left was vbs.

    I am quite a novice at vbs, and have.nt really had a need to use it until now really. I can write simple things to a txt file, and i did today try a search and write to a text file, but all i manged to do was get the full html tag img src="/tmp/ATEST21591.png" alt="plot">, rather than just the /tmp/ATEST21591.png.

    If i could figure that out then, i should have cracked it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width