Skip to content

Instantly share code, notes, and snippets.

@amit-bhandari
Created April 14, 2019 14:15
Show Gist options
  • Save amit-bhandari/987c4bafab8e965f8165bb9345cc7b8a to your computer and use it in GitHub Desktop.
Save amit-bhandari/987c4bafab8e965f8165bb9345cc7b8a to your computer and use it in GitHub Desktop.
Connection connection = Jsoup.connect(queryURL.toExternalForm())
.header(headers_if_any)
.timeout(0)
.ignoreContentType(true);
Document document = connection.userAgent(Net.USER_AGENT).get();
response = new JsonParser().parse(document.text()).getAsJsonObject();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment