INNER CODE UNIT · Python

get_members

siznax/wptools · wptools/category.py:124

    def get_members(self, show=True, proxy=None, timeout=0):
        """
        GET Mediawiki:API (action=query) category members
        https://www.mediawiki.org/wiki/API:Categorymembers

        Required {params}: title OR pageid
        - title: <str> article title
        - pageid: <int> Wikipedia database ID

        Optional arguments:
        - [show]: <bool> echo page data if true
        - [proxy]: <str> use this HTTP proxy
        - [timeout]: <int> timeout in seconds (0=wait forever)

        Data captured:
        - members: <list> category members [{ns, pageid, title}]
        """
        title = self.params.get('title')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…