コード例 #1
0
ファイル: builder.py プロジェクト: passionbull/blog
    def __init__(self, account=None, tag=None, days=None, host="github"):
        SteemReader.__init__(self, account=account, tag=tag, days=days)

        self.host = host

        # create blog folder
        self.blog_folder = os.path.join(BLOG_CONTENT_FOLDER, self._get_subfolder())

        self.folder_created = False
        self.commited = False
コード例 #2
0
 def __init__(self, account=None, tag=None, days=None, incremental=False):
     SteemReader.__init__(self, account=account, tag=tag, days=days)
     self.roster = []
     self._roster_dict = {}
     self.public_folder = "public"
     self.incremental = incremental
     if self.incremental:
         logger.info("launch: incremental mode")
         self.days = 1.5
         self.fetch_history()
コード例 #3
0
 def __init__(self, tag="cn", days=CN_HELLO_REVIEW_DURACTION):
     SteemReader.__init__(self, tag=tag, days=days)
     self.attributes = [
         u'title', u'pending_payout_value', u'author', u'net_votes',
         u'created', u'url'
         # u'permlink', u'authorperm', u'body', u'community', u'category',
     ]
     self.author = CN_HELLO_ACCOUNT
     self.writer = Writer(author=self.author)
     self.voter = Voter(author=self.author)
     self.uploader = Uploader(author=self.author)
     self.newbies = Newbies()
     self.db = settings.get_db()
     self.comments = []