Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: mercurialeclipse.eclipselabs.org.codespot.com/hg –  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

1 Answer 1

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 https://typo3scripts.googlecode.com/svn/trunk/
share|improve this answer

Your Answer

 
discard

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.