downloading mid files in bulk
rahul kumar <rahulk-TkgXTuSR4r0f5/[email protected]>
| Newsgroups | gmane.user-groups.linux.delhi.devel |
|---|---|
| Message-ID | <[email protected]> |
There is a page which has a large number of links of mid files which i wish to download. The page is (e.g. there are many) http://www.classicalmidiconnection.com/cmc/ludwig.html One example links is: http://www.classicalmidiconnection.com/cgibin/x.cgi/mid/beethoven/be- ps-30.mid When i click this link, a page opens with a slightly changed link in the address bar: http://www.classicalmidiconnection.com/cgibin/x.cgi?mid/beethoven/be- ps-30.mid (cgi is followed by a ?) My browser now opens the file in some player and i can do a save as. Now i wish to download all the links on each page, using say wget (rather than manually doing it for each page). However, when i try the above 2 links in wget, i get a message saying 302 temporarily moved giving another url: http://www.clavier.com/?mid/beethoven/be-ps-30.mid I tried each of these urls with wget and i only get a HTML file with some javascript, not the mid file. Considering that my browser is able to get the mid file, I should also be able to get it. Any ideas what i can do ? I am trying to do a : wget --accept mid --reject html --mirror http://www.classicalmidiconnection.com/cmc/ludwig.html However this command, first downloads the hundred plus html links before rejecting. Not sure this will work. (BTW, I dont believe the above is illegal or breaking any license on their site. Pls tell me if otherwise). re rahul