code: public Organization parseDocument(Document doc) throws IOException, ParseException {
          Organization organization = new Organization();
          organization.setSherdogUrl(ParserUtils.getSherdogPageUrl(doc));
  
          String url= organization.getSherdogUrl();
          url += "/recent-events/%d";
          int page = 1;
  
  
          doc = ParserUtils.parseDocument(String.format(url, page));
  
          logger.info("Getting name");
          Elements name = doc.select(".bio_organization .module_header h2[itemprop=\"name\"]");
          organization.setName(name.html());
  
  
          logger.info("Getting upcoming event");
          Elements upcomingEventsElement = doc.select("#upcoming_tab .event tr");
          organization.getEvents().addAll(parseEvent(upcomingEventsElement, organization));
  
          logger.info("Getting past events");
          List<Event> toAdd;
          do {
              logger.info("Parsing page [{}]", page);
  
              doc = ParserUtils.parseDocument(String.format(url, page));
              Elements events = doc.select("#recent_tab .event tr");
  
              toAdd = parseEvent(events, organization);
  
              organization.getEvents().addAll(toAdd);
              page++;
  
  
          } while (toAdd.size() > 0);
  
  
          organization.getEvents().sort((o1, o2) -> o1.getDate().compareTo(o2.getDate()));
          return organization;
      }
docs: Parse a sherdog page
  
  @param doc Jsoup document of the sherdog page
  @throws IOException    if connecting to sherdog fails
  @throws ParseException if the page structure has changed