title: Google CustomSearchEngine: How to get whole ArticleBody?
body: <p>I use CSE to crawl websites which publish news in form of articles, blogs, etc.</p>
  
  <p>Link to my CSE: <a href="https://cse.google.com/cse/publicurl?cx=003284443790305850415:xbxu60ofaec" rel="nofollow noreferrer">https://cse.google.com/cse/publicurl?cx=003284443790305850415:xbxu60ofaec</a>.</p>
  
  <p>My job is to implement a program to extract the results in JSON-format and analyze the articlebody. Unfortunatelly the articlebody (attribute/value pair) gets shortened automatically, so I don't get the whole articlebody at all. For instance: </p>
  
  <blockquote>
    <p>"articlebody": "How to Exploit Routers on an Unrooted Android Phone RouterSploit is a powerful exploit framework similar to Metasploit, working to quickly identify and exploit common vulnerabilities in routers...."</p>
  </blockquote>
  
  <p>Is there a way to get the whole articlebody in JSON?</p>
  
  <p>My code for now:</p>
  
  <pre><code>public class CustomSearchAPI {
  
  public static void main(String[] args) throws Exception {
  
      String key="AIzaSyALOC-8_qk_IrT3MEx8JzQ2MmXPbtlBhJw";
      String qry="exploit";
      URL url = new URL(
              "https://www.googleapis.com/customsearch/v1?key="+key+ "&amp;cx=003284443790305850415:xbxu60ofaec&amp;q="+ qry + "&amp;alt=json");
      HttpURLConnection conn = (HttpURLConnection) url.openConnection();
      conn.setRequestMethod("GET");
      conn.setRequestProperty("Accept", "application/json");
      BufferedReader br = new BufferedReader(new InputStreamReader(
              (conn.getInputStream())));
  
  
      String output;
      System.out.println("Output from Server .... \n");
      while ((output = br.readLine()) != null) {
          System.out.println(output);
      }
      conn.disconnect();
  }
  
  
  }
  </code></pre>
  
  <p>My dependencies in pom.xml:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;!-- https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mongodb&lt;/groupId&gt;
          &lt;artifactId&gt;mongo-java-driver&lt;/artifactId&gt;
          &lt;version&gt;3.4.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.apis&lt;/groupId&gt;
          &lt;artifactId&gt;google-api-services-customsearch&lt;/artifactId&gt;
          &lt;version&gt;v1-rev56-1.22.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>