Examples of retrieveAllLinks()


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

    MediaWiki mw = MediaWiki.getMediaWikiAccess(worker);

    // Retrieving links in each page
    if (!linksAvailable) {
      for (Page page : pages) {
        mw.retrieveAllLinks(wiki, page, Namespace.MAIN, null, false, false);
      }
      mw.block(true);
      if (shouldStop()) {
        return false;
      }
View Full Code Here

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

          pageAndRedirects.add(backlink);
          mw.retrieveContents(getWikipedia(), backlink, false, false, false, false, false);
        }
      }
      mw.retrieveDisambiguationInformation(getWikipedia(), pageAndRedirects, null, false, false, false);
      mw.retrieveAllLinks(getWikipedia(), page, null, null, true, false);
    } catch (APIException e) {
      return e;
    }
    return null;
  }
View Full Code Here

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

        if (Boolean.TRUE.equals(link.isDisambiguationPage())) {
          Iterator<Page> itLink = link.getRedirectIteratorWithPage();
          while (itLink.hasNext()) {
            Page link2 = itLink.next();
            if (!link2.isRedirect()) {
              mw.retrieveAllLinks(wiki, link2, null, knownPages, false, false);
            }
            if (link.hasWiktionaryTemplate() &&
                (link.getContents() == null)) {
              mw.retrieveContents(wiki, link2, false, false, false, true, false);
            }
View Full Code Here

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

      List<Page> pages,
      boolean convertTalkPages) throws APIException {
    for (String dabList : elementNames) {
      Page page = DataManager.getPage(getWikipedia(), dabList, null, null, null);
      MediaWiki mw = MediaWiki.getMediaWikiAccess(this);
      mw.retrieveAllLinks(getWikipedia(), page, null, null, true, true);
      Iterator<Page> iter = page.getLinks().iterator();
      while (iter.hasNext()) {
        Page link = iter.next();
        if (link != null) {
          if (convertTalkPages && !link.isArticle()) {
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.