Solved

download images from internet

Posted on 2001-08-25
4
214 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

816 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now