'å€æ­itemçç±»åïŒå¹¶äœçžåºçå€çïŒåå¥æ°æ®åº'

def process_item(self, item, spider):

    if isinstance(item, InformationItem):
        try:
            self.Information.insert(dict(item))
        except Exception:
            pass
    elif isinstance(item, TweetsItem):
        try:
            self.Tweets.insert(dict(item))
        except Exception:
            pass
    elif isinstance(item, FollowsItem):
        followsItems = dict(item)
        follows = followsItems.pop('follows')
        for i in range(len(follows)):
            followsItems[str((i + 1))] = follows[i]
        try:
            self.Follows.insert(followsItems)
        except Exception:
            pass
    elif isinstance(item, FansItem):
        fansItems = dict(item)
        fans = fansItems.pop('fans')
        for i in range(len(fans)):
            fansItems[str((i + 1))] = fans[i]
        try:
            self.Fans.insert(fansItems)
        except Exception:
            pass
    return item
