![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shell script not connecting to primary from standby site | a1_win | Shell Programming and Scripting | 0 | 10-23-2008 05:22 AM |
| script for download files from ftp site | tiff-matt | Shell Programming and Scripting | 5 | 09-19-2008 03:46 PM |
| Pulling a list of files from FTP site in a shell script | spatra | Shell Programming and Scripting | 0 | 08-28-2008 08:03 AM |
| Shell script for FTP download | moorthygs | Shell Programming and Scripting | 2 | 09-05-2007 05:34 AM |
| Automatic download of csv file using a shell script | figaro | Shell Programming and Scripting | 1 | 01-13-2007 08:53 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
shell script to download files from a site?
Hey everyone, my wife has purchased a bundle package of a bunch of images from a site, and now has to download each one of them manually. There are about 500 downloads, and it's quite a hassle to browse to each page and download them all individually.
I would like to write a shell script to just go out and grab all the links and do it all automatically, but one part of the script eludes me. She has an email that contains the initial links to all the download pages. I'm pretty sure I could manipulate the data in that page, and get all those links out and into a file. Then from there, I would do a for loop and loop through that file. So what I would need to do from there is have the script go to each link, then get the source code from that page. At that point, I could manipulate the data in that file and grab the link for the file in there. This is where it gets a little tricky. I can't just tell it to download that link, because it's just a php page that initiates the download for you. So I would have to have it hit the link, and tell it to save the file somewhere. If all I could do was get it to hit the link for me, that would still save a lot of time. Then we could just sit there while it runs, and click "Save" on every one. Anyone have any ideas? Thanks. |
| Bookmarks |
| Tags |
| shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|