def find_new_question_by_topic(self,link_id,count_id):
        new_question_amount_total = 0
        for i in range(1,7):
            topic_url = 'http://www.zhihu.com/topic/' + link_id + '/questions?page=' + str(i)
            new_question_amount_one_page = self.find_question_by_link(topic_url,count_id)
            new_question_amount_total = new_question_amount_total + new_question_amount_one_page

            if new_question_amount_one_page <= 2:
                break
        
        if count_id % 2 == 0:
            print str(count_id) + " , " + self.getName() + " Finshed TOPIC " + link_id + ", page " + str(i) + " ; Add " + str(new_question_amount_total) + " questions."

        time_now = int(time.time())
        sql = "UPDATE TOPIC SET LAST_VISIT = %s WHERE LINK_ID = %s"
        self.cursor.execute(sql,(time_now,link_id))
dataset/ETHPy150Open MorganZhang100/zhihu-spider/topic.py/UpdateOneTopic.find_new_question_by_topic/original