Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Is it possible to grab the source-code from a Google Code repository (hg) using wget or curl?

Else using Python?

Thanks for all suggestions

FYI: I'm on a shared WebFaction host, so can't install hg

share|improve this question
Google Code provides HTTP interfaces to the repositories if I'm not mistaken. Example: – Oliver Salzburg Jul 3 '12 at 15:04
So what, a recursive wget call using awk? – A T Jul 3 '12 at 15:07
wget --mirror or something similar, should be fine. – Oliver Salzburg Jul 3 '12 at 15:15
Can you write it into an answer so I can accept it? – A T Jul 3 '12 at 15:24
up vote 0 down vote accepted

You should be able to use Google's HTTP interface to their repositories.

The easiest way would be to grab a raw file link:
enter image description here

And then dissect the URL.

You can then download the files with curl, or mirror the whole repository (or, at least the current revision) with wget. For example

wget --mirror
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.