def get(self, show=True, proxy=None, timeout=0):
        """
        Make Mediawiki, RESTBase, and Wikidata requests for page data
        some sequence of:
        - get_parse()
        - get_query()
        - get_restbase()
        - get_wikidata()
        """
        wikibase = self.params.get('wikibase')

        if wikibase:

            self.flags['defer_imageinfo'] = True

            self.get_wikidata(False, proxy, timeout)
            self.get_query(False, proxy, timeout)
            self.get_parse(False, proxy, timeout)

            self.flags['defer_imageinfo'] = False

            self.get_restbase('/page/summary/', False, proxy, timeout)

            if show and not self.flags.get('silent'):
                self.show()

        else:

            self.flags['defer_imageinfo'] = True

            self.get_query(False, proxy, timeout)
            self.get_parse(False, proxy, timeout)

            if not self.data.get('wikibase'):
                self.skip_action('wikidata')

            self.get_wikidata(False, proxy, timeout)

            self.flags['defer_imageinfo'] = False

            wiki = self.params.get('wiki')
            if wiki and 'wikipedia.org' not in wiki:
                self.skip_action('restbase')

            self.get_restbase('/page/summary/', False, proxy, timeout)

            if show and not self.flags.get('silent'):
                self.show()

        return self
def get ( self , show = True , proxy = None , timeout = 0 ) : wikibase = self . params . get ( 'wikibase' ) if wikibase : self . flags [ 'defer_imageinfo' ] = True self . get_wikidata ( False , proxy , timeout ) self . get_query ( False , proxy , timeout ) self . get_parse ( False , proxy , timeout ) self . flags [ 'defer_imageinfo' ] = False self . get_restbase ( '/page/summary/' , False , proxy , timeout ) if show and not self . flags . get ( 'silent' ) : self . show ( ) else : self . flags [ 'defer_imageinfo' ] = True self . get_query ( False , proxy , timeout ) self . get_parse ( False , proxy , timeout ) if not self . data . get ( 'wikibase' ) : self . skip_action ( 'wikidata' ) self . get_wikidata ( False , proxy , timeout ) self . flags [ 'defer_imageinfo' ] = False wiki = self . params . get ( 'wiki' ) if wiki and 'wikipedia.org' not in wiki : self . skip_action ( 'restbase' ) self . get_restbase ( '/page/summary/' , False , proxy , timeout ) if show and not self . flags . get ( 'silent' ) : self . show ( ) return self
Make Mediawiki, RESTBase, and Wikidata requests for page data
        some sequence of:
        - get_parse()
        - get_query()
        - get_restbase()
        - get_wikidata()