Jump to content

Using InetGet to dowload an unknown file name from the same link


Go to solution Solved by DW1,

Recommended Posts

  • Solution

I'm sure a regex guru can come along and make a nicer, proper regex for this, but this is grabbing the links for me.

This should grab the recommended downloads for premium security (trial and paid)

#include <Inet.au3>
#include <Array.au3>

Local $sURL = 'http://www.avg.com/us-en/download.prd-isi'
Local $sSource = _INetGetSource($sURL)
Local $aRegEx = StringRegExp($sSource, 'a href="(.*\.exe)"(?:.*\R){0,5}.*Recommended', 3)
_ArrayDisplay($aRegEx)
Link to comment
Share on other sites

I really hate being a jerk but I saw your examples and implemented them successfully.  Thank you again.

Part 2 of my application entailed downloading all of the virus updates for all Windows versions from this link ----> http://free.avg.com/us-en/download-update#tba1 

The links are not always the same label and the file names are not always the same file name.  I have tried adjusting your examples for this part to no avail. Can you please help me with this as well?

Thank You

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...