Created
April 14, 2019 14:15
-
-
Save amit-bhandari/987c4bafab8e965f8165bb9345cc7b8a to your computer and use it in GitHub Desktop.
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
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