Platinum Partner

Download A Web Page

// Groovy code to download a web-page



def download(address, outfile)
{
    def file = new FileOutputStream(outfile)
    def out = new BufferedOutputStream(file)
    out << new URL(address).openStream()
    out.close()
}

download("http://www.google.com", "google.html");

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}