def write_coin_announcements(self):
     coin_announcement_filename = os.path.join(args.output_dir,
                                               "coin_announcement.csv")
     utils.write_coin_users(coin_announcement_filename, self.name_by_coin,
                            self.first_mention, self.num_posts_per_user,
                            self.num_subjects_per_user,
                            self.first_post_per_user,
                            self.earliest_trade_date_by_coin,
                            self.first_mention_date_by_coin,
                            self.earliest_trade_date_by_coin, 1)
     urls_output_filename = os.path.join(args.output_dir,
                                         "announcement_urls.csv")
     utils.write_coin_user_urls(urls_output_filename, self.name_by_coin,
                                self.first_mention_date_url,
                                self.earliest_trade_date_by_coin,
                                self.first_mention_date_by_coin, 1, 1)
 def write_unmodified_coin_first_thread_post_mentioners(self):
   first_thread_post_introducers_output_filename = os.path.join(
       args.output_dir, "unmodified_coin_first_thread_post_introducers.csv")
   utils.write_coin_users(first_thread_post_introducers_output_filename,
                          self.unmodified_first_thread_post_mention,
                          self.num_posts_per_user,
                          self.num_subjects_per_user,
                          self.first_post_per_user,
                          self.earliest_date_by_unmodified_coin,
                          self.first_thread_post_mention_network_date_by_unmodified_coin,
                          1)
   urls_output_filename = os.path.join(
       args.output_dir, "unmodified_coin_first_thread_post_introducer_urls.csv")
   utils.write_coin_user_urls(urls_output_filename,
                              self.unmodified_first_thread_post_mention_date_url,
                              self.earliest_date_by_unmodified_coin,
                              1, 1)
 def write_unmodified_coin_first_mentioners(self):
     first_introducers_output_filename = os.path.join(
         args.output_dir, "unmodified_coin_first_introducers.csv")
     utils.write_coin_users(
         first_introducers_output_filename, self.name_by_unmodified_coin,
         self.unmodified_first_mention, self.num_posts_per_user,
         self.num_subjects_per_user, self.first_post_per_user,
         self.earliest_trade_date_by_unmodified_coin,
         self.first_mention_date_by_unmodified_coin,
         self.earliest_trade_date_by_unmodified_coin, 1)
     urls_output_filename = os.path.join(
         args.output_dir, "unmodified_coin_first_introducer_urls.csv")
     utils.write_coin_user_urls(urls_output_filename,
                                self.name_by_unmodified_coin,
                                self.unmodified_first_mention_date_url,
                                self.earliest_trade_date_by_unmodified_coin,
                                self.first_mention_date_by_unmodified_coin,
                                1, 1)
コード例 #4
0
 def write_unmodified_coin_most_mentioners(self):
     active_users_output_filename = os.path.join(
         args.output_dir, "unmodified_coin_active_users.csv")
     utils.write_coin_users(
         active_users_output_filename, self.name_by_unmodified_coin,
         self.unmodified_mentions_per_user, self.num_posts_per_user,
         self.num_subjects_per_user, self.first_post_per_user,
         self.earliest_trade_date_by_unmodified_coin,
         self.first_mention_date_by_unmodified_coin,
         self.earliest_trade_date_by_unmodified_coin, args.num_active_users)
     # Simply quits without writing anything if no url request
     urls_output_filename = os.path.join(
         args.output_dir, "unmodified_coin_active_user_urls.csv")
     utils.write_coin_user_urls(urls_output_filename,
                                self.name_by_unmodified_coin,
                                self.unmodified_urls_per_user,
                                self.earliest_trade_date_by_unmodified_coin,
                                self.first_mention_date_by_unmodified_coin,
                                args.num_active_users, args.num_urls)
 def write_unmodified_coin_most_mentioners(self):
   active_users_output_filename = os.path.join(
       args.output_dir, "unmodified_coin_active_users.csv")
   utils.write_coin_users(active_users_output_filename,
                          self.unmodified_mentions_per_user,
                          self.num_posts_per_user,
                          self.num_subjects_per_user,
                          self.first_post_per_user,
                          self.earliest_date_by_unmodified_coin,
                          self.earliest_date_by_unmodified_coin,
                          args.num_active_users)
   # Simply quits without writing anything if no url request
   urls_output_filename = os.path.join(args.output_dir,
                                       "unmodified_coin_active_user_urls.csv")
   utils.write_coin_user_urls(urls_output_filename,
                              self.unmodified_urls_per_user,
                              self.earliest_date_by_unmodified_coin,
                              args.num_active_users,
                              args.num_urls)
 def write_coin_announcements(self):
   coin_announcement_filename = os.path.join(
       args.output_dir, "coin_announcement.csv")
   utils.write_coin_users(coin_announcement_filename,
                          self.name_by_coin,
                          self.first_mention,
                          self.num_posts_per_user,
                          self.num_subjects_per_user,
                          self.first_post_per_user,
                          self.earliest_trade_date_by_coin,
                          self.first_mention_date_by_coin,
                          self.earliest_trade_date_by_coin,
                          1)
   urls_output_filename = os.path.join(
       args.output_dir, "announcement_urls.csv")
   utils.write_coin_user_urls(urls_output_filename,
                              self.name_by_coin,
                              self.first_mention_date_url,
                              self.earliest_trade_date_by_coin,
                              self.first_mention_date_by_coin,
                              1, 1)