コード例 #1
0
    def process_json_meta(self, process, item_id):
        '''
        Process JSON meta filed.
        '''
        json_meta = self.get_json_meta()

        # # TODO: change me
        parent_type = 'twitter'
        item_parent = str(json_meta['parent:twitter:tweet_id'])
        parent_date = datetime.date.today().strftime("%Y/%m/%d")
        item_parent = os.path.join('twitter', parent_date, item_parent) + '.gz'

        item_basic.add_item_parent(item_parent, item_id)
コード例 #2
0
def add_item_parent(item_parent, item_id):
    return item_basic.add_item_parent(item_parent, item_id)