Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: How To Download DAT Files From Unsecured Website

by InfiniteSilence (Curate)
on Jan 31, 2012 at 02:26 UTC ( #950856=note: print w/replies, xml ) Need Help??

in reply to How To Download DAT Files From Unsecured Website

I'm not sure that plucking code form the Internet (that you may or may not understand) and asking ' can you refactor this to do x and y?' is a brilliant strategy. Second, grabbing a whole bunch of files from somebody's website is probably a violation of their terms of service. Nevertheless, you might try something like this:

linux> perl -e 'for my $month (qw|June July|) {for(1..3){my $url = qq| +http://localhost/foo| . $_ . qq|\.tar&dt=| . qq|$month-2001|; print q +q|Doing >>> $url\n|; `wget $url` }}'
Replace the start of the URL with your target. Of course you'll need wget, but you can even download that for Windows nowadays. Please don't let this discourage you from learning Perl and trying to understand code that you find on the web. It just isn't a very good place to start if your intent is to learn this language. If your intent isn't to learn the language then you are in the wrong place. There are websites that will write scripts for you for a modest sum.

Celebrate Intellectual Diversity

Replies are listed 'Best First'.
Re^2: How To Download DAT Files From Unsecured Website
by Marjan (Initiate) on Feb 01, 2012 at 02:44 UTC

    Thank you for your help. The website makes the data available for downloading; as I'm a student I'm using it for research purposes.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://950856]
[holli]: I got into a fight yesterday and won.
[holli]: No, that's not true. I started it.
[holli]: I was company to my mother, bringing her to the therapy she has to take. There was another so called therapist outside smoking. We engaged in a talk with her and he turned out to be one of these lunatics telling people when they are sick it's their own
[holli]: fault for not thinking positively enough.
[LanX]: did he seriously hurt his fist at your nose in the end?
LanX .oO(positively thought)
[holli]: :) No. I might be small, but you don't want to be around me when I flip.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-12-13 17:57 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (373 votes). Check out past polls.