Solved

download images from internet

Posted on 2001-08-25
4
222 Views
Last Modified: 2010-03-18
I want to download images and keep them on my server
using crontab service.
for html source codes i do:
#lynx -source "http://................";
but it can't help to get images.
have somebody any idea?


0
Comment
Question by:kako
  • 2
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 100 total points
ID: 6425222
Try GNU wget instead of lynx.

http://freshmeat.net/projects/wget/

wget http://www.somesite.com/todaysimage.jpeg -O /home/you/somesite-images/`date '+%d-%m-%y'`.jpeg

Will save http://www.somesite.com/todaysimage.jpeg with the filename: http://www.somesite.com/25-08-01.jpeg

Leaving off the -O and filename at the end will just use the file name that the server uses. (todaysimage.jpeg)
0
 

Author Comment

by:kako
ID: 6425941
well, it works
can you help me to supress the output?


"Connecting to www.some-site.net:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 5,600 [image/jpeg]0K .....                                 100%"

Thanks

0
 
LVL 17

Expert Comment

by:dorward
ID: 6426956
wget [parameters] 2> /dev/null
0
 

Author Comment

by:kako
ID: 6427778
I've fount option -q
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question