@@ -0,0 +1,1769 @@
+package easIE.src.examples;%0A%0Aimport easIE.src.Executors.SnippetHandler;%0Aimport easIE.src.Field;%0Aimport easIE.src.Wrappers.PaginationIterator;%0Aimport java.io.IOException;%0Aimport java.net.URISyntaxException;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport javafx.util.Pair;%0A%0A/**%0A *%0A * @author vasgat%0A */%0Apublic class PaginationWrapperExample %7B%0A    %0A    public static void main(String%5B%5D args) throws IOException, URISyntaxException, Exception %7B%0A        Field company_name = new Field(%0A                %22Company Name%22,%0A                %22td:nth-child(1)%22,%0A                %22RAW_TEXT%22,%0A                %22CSS%22,%0A                %22TEXT%22,%0A                %22TEXT%22%0A        );%0A        Field fortune_rank = new Field(%0A                %22Membership RSPO Type%22,%0A                %22td:nth-child(5)%22,%0A                %22RAW_TEXT%22,%0A                %22CSS%22,%0A                %22TEXT%22,%0A                %22TEXT%22%0A        );%0A%0A        Field year = new Field(%0A                %22RSPO Member since%22,%0A                %22td:nth-child(4)%22,%0A                %22RAW_TEXT%22,%0A                %22CSS%22,%0A                %22TEXT%22,%0A                %22TEXT%22%0A        );%0A        List%3CField%3E company_fields = new ArrayList();%0A        company_fields.add(company_name);%0A%0A        List%3CField%3E snippet_fields = new ArrayList();%0A        snippet_fields.add(fortune_rank);%0A        snippet_fields.add(year);%0A%0A        PaginationIterator wrapper = new PaginationIterator(%22http://www.rspo.org%22, %22/members/all%22, %22.next %3E a:nth-child(1)%22);%0A%0A        Pair extractedData = wrapper.extractTable(%22.table %3E tbody:nth-child(2) %3E tr%22, company_fields, snippet_fields);%0A%0A        SnippetHandler handler = new SnippetHandler((ArrayList) extractedData.getKey(), (ArrayList) extractedData.getValue());%0A%0A        System.out.println(handler.getJSON());%0A    %7D%0A    %0A%7D%0A

Create PaginationWrapperExample.java