changeSnakType ( value = None, ** kwargs ) # Parameters :Ĭlaims ( list of Claim) – the claims to add changeRank ( rank, ** kwargs ) #Ĭhange the rank of the Claim and save. None addSources ( claims, ** kwargs ) #Īdd the claims as one source. Qualifier ( ) – the qualifier to add addSource ( claim, ** kwargs ) #Ĭlaim ( Claim) – the claim to add Return type : SNAK_TYPES = ('value', 'somevalue', 'novalue') # TARGET_CONVERTER = # addQualifier ( qualifier, ** kwargs ) # Is_qualifier ( bool) – whether specified claim is a qualifier Is_reference ( bool) – whether specified claim is a reference Note that this does not have to correspond to the repository Site ( ) – Repository where the property of the claim is defined. Claim ( site, pid, snak = None, hash = None, is_reference = False, is_qualifier = False, rank = 'normal', ** kwargs ) #Ĭlaims are standard claims as well as references and qualifiers.ĭefined by the “snak” value, supplemented by site + pid Parameters : Recurse ( int | bool) – if not False or 0, also iterate articles inįor complete list ( member_type excluded). The order of subcategories areī, E, H, F, G, C, I, E, H, J, K, L, G, D Parameters : Returns :Ī page generator of all pages in a category ordered by the Total ( int | None) – The total number of pages queried. With the newly added first and it yields all pages which were createdĪfter the currently checked page was added (and thus there is no pageĬreated after any of the cached but added before the currently But it is possible to check the category in order Is impossible to determine the oldest page in a category withoutĬhecking all pages. It only allows to return the pages ordered from newest to oldest, as it Returned in the order they were added to the category. If two or more pages are created at the same time, the pages are Return pages in a category ordered by the creation date. Total ( int | None) – iterate no more than this number of pages in (Example: recurse=1 will iterate articles in If an int, limit recursion to this number of Recurse ( bool) – if not False or 0, also iterate articles in With member_type= instead.Ĭhanged in version 8.0: all parameters are keyword arguments only. Yields all pages in the category that are not subcategories.ĭuplicates are filtered. Yield all articles in the current category. Title ( str) – articles ( *, recurse = False, total = None, ** kwargs ) # Category ( source, title = '', sort_key = None ) #Īll parameters are the same as for Page() Initializer. Parameters :Ĭheck if it automatically updates the site before run. Instead which specifically handle multiple or single sites.Ĭreate a Bot instance and initialize cached sites. If possible the MultipleSitesBot or SingleSiteBot classes should be used The initialization file for the Pywikibot framework. Toggle table of contents sidebar pywikibot - Base Classes and Functions #
0 Comments
Leave a Reply. |