Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 groovy 打开一个网页,转储指定的网页并最终将网页转储到锚标签后面。
有人有一些示例代码吗?
这是一个变化
println 'http://www.google.com'.toURL().text
这是一个很好的例子
http://docs.codehaus.org/display/GROOVY/Simple+file+download+from+URL
基本上你想做类似的事情
def data = new URL(feedUrl).getText()