Esempio n. 1
0
    def get_collector_object(self, feature_type):

        if feature_type == "news_articles":
            return NewsContentCollector(self.config)
        elif feature_type == "tweets":
            return TweetCollector(self.config)
        elif feature_type == "retweets":
            return RetweetCollector(self.config)
        elif feature_type == "user_profile":
            return UserProfileCollector(self.config)
        elif feature_type == "user_timeline_tweets":
            return UserTimelineTweetsCollector(self.config)
Esempio n. 2
0
    def get_collector_object(self, feature_type):

        if feature_type == "news_articles":
            return NewsContentCollector(self.config)
        elif feature_type == "tweets":
            return TweetCollector(self.config)
        elif feature_type == "retweets":
            return RetweetCollector(self.config)
        elif feature_type == "user_profile":
            return UserProfileCollector(self.config)
        elif feature_type == "user_timeline_tweets":
            return UserTimelineTweetsCollector(self.config)
        elif feature_type == "user_following":
            return UserFollowingCollector(self.config)
        elif feature_type == "user_followers":
            return UserFollowersCollector(self.config)
        elif feature_type == "retweet_cascade":
            return RetweetCascadeCollector(self.config)
        elif feature_type == "retweet_user_followers":
            return RetweetUserFollowersCollector(self.config)
        elif feature_type == "follower_profile":
            return FollowerProfileCollector(self.config)