Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

what I want to do is to download files using wget. The maximum depth is up to 3. Now, I know that there is a big possibility that the files in the url will be updated. Is there a way that these updated/modified files will be the only ones to be downloaded?

For example, day 1: Ill run the python script that will download all files from a particular site. day 2: Ill run the same script, expecting that it will download all UPDATED files ONLY.

What parameter do I need to add to do this?


share|improve this question

migrated from Mar 6 '13 at 10:14

This question came from our site for professional and enthusiast programmers.

you can use -N(--timestamping) option. e.g. wget -N

share|improve this answer

You must log in to answer this question.