@Grab(group='org.jsoup', module='jsoup', version='1.7.2') import org.jsoup.* import org.jsoup.select.* gitorious = "<your-gitorious-server>" doc = Jsoup.connect("http://${gitorious}/projects.xml").get() for(repo in Selector.select("repository", doc)){ println "-----------" println "name:" + repo.getElementsByTag("name").eq(0).text() println "owner:" + repo.getElementsByTag("owner").eq(0).text() println "clone url:" + repo.getElementsByTag("clone_url").eq(0).text() }関連項目
Gitorious - API - Open wiki - Gitorious
http://gitorious.org/gitorious/pages/Api
0 件のコメント:
コメントを投稿