This is a standalone java application connecting to The Guardian Open Data platform.It is fetching data in JSON format and persisting it to a configured couchbase db bucket.
- Install Couchbase.http://www.couchbase.com/download
- Edit couchdbconf.properties file accordingly to point to your couchbase instance and bucket.Leave password field empty unless you have one.
- mvn clean package
- run java -jar GuardianRestClient-$version.jar on command line.
This will bring and store a configurable number of articles starting from 2012 to today from Guardian Open Platform.If
you want to change date and volume,code is annotated adequately with required information.You can change and test very quickly.
Java application to retrieve data from guardian open data platform and persist in couchdb.