pskenny / libjfreecycle

Java library for scraping freecycle.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub

libjfreecycle

NOTE: In alpha stage, do not use

libjfreecycle is a Java library for scraping freecycle.org.

libjfreecycle lazy loads group and post information i.e. only retrieving information when methods for returning them are called (not getting all information on instantiation). Example:

// Creating a group does not retrieve any information from freecycle.org
Group group = new Group("GalwayIE");

// Request freecycle.org 100 most recent posts now
ArrayList<Post> posts = group.getPosts();

Maven

To use this you must package and install this repo to your local Maven repository using the following commands:

> git clone https://github.com/pskenny/libjfreecycle # Clone libjfreecycle
> cd libjfreecycle
> mvn package # Package libjfreecycle
> mvn install # Install to local Maven repository

Then add to your pom.xml dependencies:

    <dependency>
      <groupId>io.github.pskenny</groupId>
      <artifactId>libjfreecycle</artifactId>
      <version>0.1-SNAPSHOT</version>
    </dependency>

About

Java library for scraping freecycle.org

License:GNU Affero General Public License v3.0


Languages

Language:Java 100.0%