import pywikibot
import pywikibot.pagegenerators
pywikibot.__version__
pywikibot.__release__
site = pywikibot.Site('id', 'wikipedia')
board = site.load_board("Wikipedia:Warung Kopi (Bantuan)")
topic_list = site.load_topiclist("Wikipedia:Warung Kopi (Bantuan)",
                                 format='wikitext',
                                 limit=100,
                                 sortby='newest',
                                 toconly=False,
                                 offset=None,
                                 offset_id="t6wi2jcry4hrbsny",
                                 reverse=False,
                                 include_offset=False)
import json
with open("topic_list3.json", "w") as f:
    f.write(json.dumps(topic_list))
help(site.load_topiclist)
Help on method load_topiclist in module pywikibot.site:

load_topiclist(page, format='wikitext', limit=100, sortby='newest', toconly=False, offset=None, offset_id=None, reverse=False, include_offset=False) method of pywikibot.site.APISite instance
    Retrieve the topiclist of a Flow board.
    
    @param page: A Flow board
    @type page: Board
    @param format: The content format to request the data in.
    @type format: str (either 'wikitext', 'html', or 'fixed-html')
    @param limit: The number of topics to fetch in each request.
    @type limit: int
    @param sortby: Algorithm to sort topics by.
    @type sortby: str (either 'newest' or 'updated')
    @param toconly: Whether to only include information for the TOC.
    @type toconly: bool
    @param offset: The timestamp to start at (when sortby is 'updated').
    @type offset: Timestamp or equivalent str
    @param offset_id: The topic UUID to start at (when sortby is 'newest').
    @type offset_id: str (in the form of a UUID)
    @param reverse: Whether to reverse the topic ordering.
    @type reverse: bool
    @param include_offset: Whether to include the offset topic.
    @type include_offset: bool
    @return: A dict representing the board's topiclist.
    @rtype: dict