Sign in to follow this  
Followers 0
Shiro

how to download multiple images from a website?

13 posts in this topic

hello

i want to download some images from a website to @DesktopDir

any idea?


Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Share this post


Link to post
Share on other sites

Shiro, did you even install autoit? If you have then please search the help file. You cannot miss it.


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites

How about 'Right mouse click' on image and select 'Save image'. :mellow:

if i have to do it myself then what i am doing here?

Share this post


Link to post
Share on other sites

Shiro, did you even install autoit? If you have then please search the help file. You cannot miss it.

ka goi chay

do you really think i don't have autoit installed and i have 68 posts?


Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Share this post


Link to post
Share on other sites

can i have link to the udf for downloading all the images of a webpage?


Share this post


Link to post
Share on other sites

There is code to do this in the Snippets Database (see my sig)

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

There is code to do this in the Snippets Database (see my sig)

Dale

but i want to do it in background / without visible windows.

this snippest did not work as i want:

#include <IE.au3>
 
$sImgDir = "d:\pkf\"; Please make certain this folder already exists (silent failure if not)
$sWebPage = "http://www.autoitscript.com/forum/index.php?"; webpage with images
 
$oIE = _IECreate( $sWebPage)
$oIMGs = _IEImgGetCollection ($oIE)
 
; Loop through all IMG tags and save file to local directory using INetGet
For $oIMG in $oIMGs
    $sImgUrl = $oIMG.src
    $sImgFileName = $oIMG.nameProp
    INetGet($sImgUrl,  $sImgDir & $sImgFileName)
Next

Share this post


Link to post
Share on other sites

search the helpfile _IECreate and _IEQuit

#include <IE.au3> 
_IECreate ( [$s_Url = "about:blank" [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = 1]]]]] )

_IEQuit ( ByRef $o_object )

Share this post


Link to post
Share on other sites

you mean something like this?

#include <IE.au3>
$sImgDir = "d:\pkf\"; Please make certain this folder already exists (silent failure if not)
$sWebPage = "http://www.autoitscript.com/forum/index.php?"; webpage with images 
$oIE = _IECreate ( [$s_Url = $sWebPage [, $f_tryAttach = 0 [, $f_visible = 1 [, $f_wait = 1 [, $f_takeFocus = 1]]]]] )
_IEQuit ( ByRef $o_object )
$oIMGs = _IEImgGetCollection ($oIE)
; Loop through all IMG tags and save file to local directory using INetGet
For $oIMG in $oIMGs
    $sImgUrl = $oIMG.src
    $sImgFileName = $oIMG.nameProp
    INetGet($sImgUrl,  $sImgDir & $sImgFileName)
Next

but it's not working...


Share this post


Link to post
Share on other sites

Test this small script :mellow:

Local $path = RegRead("HKLM\SOFTWARE\AutoIt v3\AutoIt", "InstallDir")
ShellExecute("mk:@MSITStore:" & $path & "\UDFs3.chm::/html/libfunctions/_IECreate.htm")

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

but i want to do it in background / without visible windows.

this snippest did not work as i want:

Then set the visible flag in _IECreate to false and remember to use _IEQuit when you exit.

Dale

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
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
Sign in to follow this  
Followers 0