HTTP Get Image from Website

1,102 views
Skip to first unread message

Jay M

unread,
Mar 9, 2013, 11:27:31 PM3/9/13
to Tasker
Ok So after messing with the APOTD task on the Tasker wiki (whch
worked fine) im now trying to get the Picture of the day from this
website and then set it as my wallpaper. but i cant seem to grab the
image.

Heres what i did.

made new folder called TEST at the root of my sdcard.

Task
HTTP Get

server:Port = photography.nationalgeographic.com
path = photography.photo-of-the-day/
mime type = text.html

Variable Split
Name = %HTTPD Splitter <img src="

Variable Split
Name = %HTTPD2 Splitter " width

Task
Alert/Flash

Text = %HTTPD21

which flashed me this
http://images.nationalgeographic.com/wpf/media-live/photos/000/646/cache/people-beach-gaza-pellegrin_64696_990x742.jpg

Which according to the source code of the website is the actual image
i want.

Task.
HTTP Get

serverport: = photography.nationalgeographic.com
path = photography.photo-of-the-day/%HTTPD21
mime type = image/jpeg
outputfile = TEST/Test.jpg

Task
Set Wallpaper

image = TEST/Test.jpg


Error set wallpaper:File not found. :/

I tried deleting base in the variable split but that didnt work
either

JayM

Matt R

unread,
Mar 10, 2013, 5:25:14 AM3/10/13
to tas...@googlegroups.com
Put %HTTPD21 as the server port for the second http get.

Matt

Jay M

unread,
Mar 10, 2013, 6:47:37 PM3/10/13
to tas...@googlegroups.com
That worked cheers :) 
Reply all
Reply to author
Forward
0 new messages