Does someone have a code snipet I can use to download an image on a webpage? I'm not looking to capture it, but actually download the image itself.
Thanks!
Download webpage image
Moderators: Dorian (MJT support), JRL
-
- Newbie
- Posts: 15
- Joined: Fri Sep 21, 2012 5:17 pm
- Location: Phoenix, AZ
Re: Download webpage image
A snippet to retrieve the Macro Scheduler logo.
Code: Select all
HTTPRequest>https://www.mjtnet.com/images/macroscheduler_logo.png,%desktop_dir%\macroscheduler_logo.png,GET,,,,,,
Re: Download webpage image
JRL wrote:A snippet to retrieve the Macro Scheduler logo.
Code: Select all
HTTPRequest>https://www.mjtnet.com/images/macroscheduler_logo.png,%desktop_dir%\macroscheduler_logo.png,GET,,,,,,
. I feel silly. I found it in the help files. ThanksIs the GET,,,,,,,,,, suppose to be like that or is something suppose to go there .
Last edited by 23ohagan on Sun Apr 03, 2016 1:31 pm, edited 2 times in total.
Using:
MS 14.2.07 (regular)
Windows 7
Browser: Chrome
MS 14.2.07 (regular)
Windows 7
Browser: Chrome
Re: Download webpage image
How would you go about downloading (GET) an image that is a popup (not stored on the site you are currently on?
For example, say I am at url http://www.siteiamvisiting.com and a pop up appears and I want to downlonload the image on that pop up, but the image is from http://www.theimageishere.com/r=(this part changes each new pop up).jpg
I want to download and save the image as "share.jpg"
Id this correct?
For example, say I am at url http://www.siteiamvisiting.com and a pop up appears and I want to downlonload the image on that pop up, but the image is from http://www.theimageishere.com/r=(this part changes each new pop up).jpg
I want to download and save the image as "share.jpg"
Id this correct?
Code: Select all
HTTPRequest>http://www.theimageishere.com/r=*,C:\Temp\share.jpg,GET
Using:
MS 14.2.07 (regular)
Windows 7
Browser: Chrome
MS 14.2.07 (regular)
Windows 7
Browser: Chrome
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Download webpage image
It requires a couple more parms:
HTTPRequest>http://www.theimageishere.com/r=*,C:\Te ... httpResult
Is http://www.theimageishere.com/r=* a valid URL? Looks odd to me. You will need a valid URL pointing to the resource you want to download.
HTTPRequest>http://www.theimageishere.com/r=*,C:\Te ... httpResult
Is http://www.theimageishere.com/r=* a valid URL? Looks odd to me. You will need a valid URL pointing to the resource you want to download.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?