class PTTpushAnalyser:

    def __init__(self):
        pass

    def loadCrawledResult(self):
        pass

    def gatherAuthorPusherPairs(self):
        pass

@@ -1,8 +1,57 @@
+import json%0A%0Afrom src.DBmanage import DBmanage%0A%0A%0A
 class PT
@@ -102,59 +102,252 @@
     
-pass%0A%0A    def loadCrawledResult(self):%0A        pass
+db = DBmanage()%0A%0A    def analyse(self):%0A        pass%0A%0A    def loadCrawledResult(self, artucleResultFilePath):%0A        with open(artucleResultFilePath, encoding='utf8') as f:%0A            articleResult = json.load(f)%0A%0A        return articleResult
 %0A%0A  
@@ -357,13 +357,13 @@
 ef g
-ather
+etAll
 Auth
@@ -376,28 +376,450 @@
 erPairs(self
-):%0A        pas
+, crawlArticles):%0A        allAuthorPusherPairs = %5B%5D%0A        for artical in crawlArticles:%0A            authorID = artical%5B'authorID'%5D%0A            for push in artical%5B'pushMessages'%5D:%0A                pushUserID = push%5B'pushUserID'%5D%0A                pushTag = push%5B'pushTag'%5D%0A                authorPusherPair = (authorID, pushUserID, pushTag)%0A                allAuthorPusherPairs.append(authorPusherPair)%0A%0A        return allAuthorPusherPair
 s%0A

implement loadCrawledResult() and getAllAuthorPusherPairs()