Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
getting someplace..
Browse files Browse the repository at this point in the history
  • Loading branch information
FultonBrowne committed Oct 2, 2019
1 parent b782647 commit e4542bf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/com/andromeda/araserver/GetInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,19 @@ public String main(String mainurl) throws MalformedURLException {
"format=json" +
"&action=query" +
"&prop=extracts" +
"&explaintext=" +
"&titles="+"fulton");
"&explaintext=true" +
"&titles="+"lcars");
URL url = new URL(urlText);
//System.out.println(new com.andromeda.araserver.url().main(url));
//parse the json
JsonElement jelement = new JsonParser().parse(new com.andromeda.araserver.url().main(url));
JsonObject jobject = jelement.getAsJsonObject();
System.out.println(jobject);
JsonArray jsonArray = jobject.getAsJsonArray("batchcomplete");
System.out.println(jsonArray.size());
//JsonArray jsonArray = jobject.getAsJsonArray("query");
jobject = jobject.getAsJsonObject("query");
System.out.println(jobject);
System.out.println(jobject.size());
OutputModel outputModel;
//keep parsing



outputModels.add(new OutputModel("test", mainurl, "https://github.com/FultonBrowne/Ara-Server", "", "", ""));
Expand Down

0 comments on commit e4542bf

Please sign in to comment.