示例#1
0
 def _process(self, input_pack: DataPack):
     page = input_pack.get_single(WikiPage)
     sys.stdout.write(".")
     sys.stdout.flush()
     if input_pack.get_single(WikiPage).page_id == '729678636':
         import pdb
         pdb.set_trace()
示例#2
0
 def _process(self, input_pack: DataPack):
     title_text = input_pack.get_single(WikiPage).page_name
     title_text = title_text.replace("_", " ")
     new_text = input_pack.text + "\n" + title_text
     title_begin = len(input_pack.text) + 1
     title_end = title_begin + len(title_text)
     input_pack.set_text(new_text)
     WikiArticleTitle(input_pack, title_begin, title_end)