This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env groovy | |
def searchUrl = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=("2016/09/01"[PDAT]:"2016/09/02"[PDAT])+AND+cancer[sb]&usehistory=y' | |
def parser = new XmlSlurper() | |
parser.setFeature("http://apache.org/xml/features/disallow-doctype-decl", false) | |
parser.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false) | |
def eSearchResult = parser.parse(new URL(searchUrl).openStream()) | |
def webEnv = eSearchResult.WebEnv.toString() | |
int queryKey = eSearchResult.QueryKey.toInteger() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:28:54.703 [main] DEBUG org.jclouds.rest.internal.InvokeHttpMethod - >> invoking volumeType:list | |
18:28:54.703 [main] DEBUG org.jclouds.http.internal.JavaUrlHttpCommandExecutorService - Sending request -15036221: GET https://iad.blockstorage.api.rackspacecloud.com/v1/970217/types HTTP/1.1 | |
18:28:54.703 [main] DEBUG jclouds.headers - >> GET https://iad.blockstorage.api.rackspacecloud.com/v1/970217/types HTTP/1.1 | |
18:28:54.704 [main] DEBUG jclouds.headers - >> Accept: application/json | |
18:28:54.704 [main] DEBUG jclouds.headers - >> X-Auth-Token: **DELETED** | |
18:28:55.719 [main] DEBUG org.jclouds.http.internal.JavaUrlHttpCommandExecutorService - Receiving response -15336221: HTTP/1.1 200 OK | |
18:28:55.719 [main] DEBUG jclouds.headers - << HTTP/1.1 200 OK | |
18:28:55.719 [main] DEBUG jclouds.headers - << Connection: keep-alive | |
18:28:55.720 [main] DEBUG jclouds.headers - << Date: Wed, 30 Mar 2016 15:28:55 GMT | |
18:28:55.720 [main] DEBUG jclouds.headers - << Content-Type: application/json |