Solved

download images from internet

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

14 Experts available now in Live!

Get 1:1 Help Now