Examples of retrieveSimilarPages()


Examples of org.wikipediacleaner.api.API.retrieveSimilarPages()

  private void constructSearchTitles(List<Page> pages) throws APIException {
    if (elementNames != null) {
      final API api = APIFactory.getAPI();
      for (String pageName : elementNames) {
        Page page = DataManager.getPage(getWikipedia(), pageName, null, null, null);
        api.retrieveSimilarPages(getWikipedia(), page, true);
        pages.addAll(page.getRelatedPages(Page.RelatedPages.SIMILAR_PAGES));
      }
    }
  }
View Full Code Here

Examples of org.wikipediacleaner.api.MediaWiki.retrieveSimilarPages()

      if (CheckErrorAlgorithms.isAlgorithmActive(wiki, 508)) {
        mw.retrieveAllTemplates(wiki, page, false);
      }
      mw.block(true);
      if (Boolean.FALSE.equals(page.isExisting())) {
        mw.retrieveSimilarPages(wiki, page);
      }
      setText("Analyzing data");
      PageAnalysis analysis = page.getAnalysis(page.getContents(), true);
      CheckError.analyzeErrors(algorithms, analysis, false);
    } catch (APIException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.