Jump to content

Using InetGet to dowload an unknown file name (Part 2)


Go to solution Solved by guinness,

Recommended Posts

Posted

(Part 1)

I want to thank these guys again for the examples they provided. I have tried adjusting those examples for this part to no avail.

 

Here is the problem:

I need to download all of the virus updates for all Windows versions from this link ----> http://free.avg.com/us-en/download-update#tba1  I need to retain the file names. The link label and the file name changes from time to time.

 

  • Solution
Posted (edited)

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

Local $aSRE = StringRegExp(SOURCE, '<a\h+href="([^"]+)"[^>]+>Windows\h+x\d{2}:', 3)
_ArrayDisplay($aSRE)
I created this too >> http://regex101.com/r/qL3bQ7

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

The regular expression is also quite efficient compared to the likes of ... <ah+href="(.+)".+>Windowsh+xd{2}:

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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
  • Recently Browsing   0 members

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