For instance, is there a way for me to use svn or cvs (and how to find out which?) for a project if I have their project page -- for example, http://sourceforge.net/projects/ecb/?
Looking on the Source page for that project, it gives the CVS command
cvs -d:pserver:email@example.com:/cvsroot/ecb login
Other projects that use CVS should follow the same naming convention. SVN looks to be similar:
svn co https://<project>.svn.sourceforge.net/svnroot/<project>
Something tells me you want to 'screen-scrape' to figure out which revision control a project uses. The project page has the link to the main 'Code' page which you can
grep out by looking for the word
scm. For e.g:
The command (in unix, say):
curl -s http://sourceforge.net/projects/<project-short-name>/ | \ grep 'scm/?type' | sed 's/\(.*type=\)\([a-z]\+\)\(&.*\)$/\2/g'
Should get you the words
cvs or both (or even other words ?) from the html links. This is just to illustrate how you can figure out the SCM a project uses programatically. You might have
to write more or less code depending on where you want to 'script' this i.e. Questions like, is it on unix or windows ? is it for an eclipse plugin ? and many more come to mind.
Disclaimer: Many websites consider screen scraping a violation of the Terms of Service. Please check the sf.net policy to see if its ok to scrape the web-page before you do.