Самую малость продвинулся.
Ниже часть исходного кода авито, в которой содержатся изображения:
<meta property="og:image" content="https://51.img.avito.st/640x480/3138614951.jpg" /><meta property="og:image" content="https://76.img.avito.st/640x480/3138616176.jpg" /><meta property="og:image" content="https://33.img.avito.st/640x480/3138616933.jpg" /><meta property="og:image" content="https://68.img.avito.st/640x480/3138617468.jpg" /><meta property="og:image" content="https://79.img.avito.st/640x480/3138618379.jpg" /><meta property="og:image" content="https://78.img.avito.st/640x480/3138619278.jpg" /><meta property="og:image" content="https://84.img.avito.st/640x480/3138619784.jpg" /><meta property="og:image" content="https://04.img.avito.st/640x480/3138620604.jpg" /><meta property="og:image" content="https://00.img.avito.st/640x480/3138621200.jpg" /><meta property="og:image" content="https://34.img.avito.st/640x480/3138621834.jpg" /><meta property="og:image" content="https://26.img.avito.st/640x480/3138622626.jpg" /><meta property="og:image" content="https://10.img.avito.st/640x480/3138623110.jpg" /><meta property="og:image" content="https://52.img.avito.st/640x480/3138624652.jpg" /><meta property="og:image" content="https://24.img.avito.st/640x480/3138625324.jpg" /><meta property="og:image" content="https://83.img.avito.st/640x480/3138625883.jpg" /><meta property="og:image" content="https://24.img.avito.st/640x480/3138626424.jpg" /><meta property="og:image" content="https://75.img.avito.st/640x480/3138626875.jpg" /><meta property="og:image" content="https://23.img.avito.st/640x480/3138627923.jpg" /><meta property="og:image" content="https://66.img.avito.st/640x480/3138630166.jpg" /><meta property="og:image" content="https://87.img.avito.st/640x480/3138633487.jpg" /><meta property="og:image" content="https://51.img.avito.st/640x480/3138614951.jpg" />
Понимаю, что мне необходимо использовать функцию httpgetfile:
HttpGetFile('http://24.img.avito.st/640x480/3138614951.jpg', 'C:\Cap\file1.jpg');
HttpGetFile('http://24.img.avito.st/640x480/3138616176.jpg', 'C:\Cap\file2.jpg');
HttpGetFile('http://24.img.avito.st/640x480/3138618379.jpg', 'C:\Cap\file3.jpg');
HttpGetFile('http://24.img.avito.st/640x480/3138620604.jpg', 'C:\Cap\file4.jpg');
и т.д.
Однако, путь к файлам один, а названия файлов разные. То есть данный код подойдет только для одного объекта.
Как я могу сделать так, чтобы работало таким образом:
HttpGetFile('http://24.img.avito.st/640x480/Гружу все, что есть по данному адресу с расширением .jpg', 'C:\Cap\генерирую произвольное имя с расширением .jpg');