MCPcopy Create free account

hub / github.com/KaiDMML/FakeNewsNet / functions

Functions59 in github.com/KaiDMML/FakeNewsNet

↓ 20 callersFunctioncreate_dir
(dir_name)
code/util/util.py:72
↓ 8 callersFunctionget_user_ids_in_folder
(samples_folder)
code/user_profile_collection.py:16
↓ 8 callersFunctionmultiprocess_data_collection
(function_reference, data_list, args, config: Config)
code/util/util.py:94
↓ 6 callersMethodget_twython_connection
Returns the twython object for making the requests and sleeps if all the twitter keys have reached the usage limits :return:
code/util/TwythonConnector.py:52
↓ 3 callersMethod__init__
(self, config)
code/user_profile_collection.py:141
↓ 3 callersMethodload_news_file
(self, data_choice)
code/util/util.py:51
↓ 2 callersFunctioncrawl_link_article
(url)
code/news_content_collection.py:14
↓ 2 callersFunctionis_folder_exists
(folder_name)
code/util/util.py:81
↓ 1 callersMethod__init__
(self, tweet_id, news_id, news_source, label)
code/tweet_collection.py:18
↓ 1 callersMethod_get_twitter_connection
(connection_mode=1, app_key=None, app_secret=None, oauth_token=None, oauth_tok
code/util/TwythonConnector.py:31
↓ 1 callersMethodcollect_data
(self, choices)
code/util/util.py:48
↓ 1 callersFunctioncollect_news_articles
(news_list, news_source, label, config: Config)
code/news_content_collection.py:125
↓ 1 callersFunctioncollect_retweets
(news_list, news_source, label, config: Config)
code/retweet_collection.py:37
↓ 1 callersFunctioncollect_tweets
(news_list, news_source, label, config: Config)
code/tweet_collection.py:55
↓ 1 callersFunctioncrawl_news_article
(url)
code/news_content_collection.py:113
↓ 1 callersFunctiondownload_dataset
()
code/main.py:59
↓ 1 callersFunctionequal_chunks
return successive n-sized chunks from l.
code/util/util.py:85
↓ 1 callersFunctionfetch_user_follower_ids
(user_id, twython_connection)
code/user_profile_collection.py:65
↓ 1 callersFunctionfetch_user_friends_ids
(user_id, twython_connection)
code/user_profile_collection.py:77
↓ 1 callersMethodget_collector_object
(self, feature_type)
code/main.py:20
↓ 1 callersFunctionget_epoch_time
(time_obj)
code/news_content_collection.py:81
↓ 1 callersFunctionget_num_process
()
code/resource_server/app.py:54
↓ 1 callersMethodget_resource_index
Returns index of the resource to use for making requests to get data if none of the resources are available, then send number of seco
code/resource_server/ResourceAllocator.py:23
↓ 1 callersMethodget_resource_index
(self, resource_type)
code/util/TwythonConnector.py:61
↓ 1 callersFunctionget_web_archieve_results
(search_url)
code/news_content_collection.py:88
↓ 1 callersFunctionget_website_url_from_arhieve
Get the url from http://web.archive.org/ for the passed url if exists.
code/news_content_collection.py:103
↓ 1 callersFunctioninit_config
()
code/main.py:38
↓ 1 callersFunctioninit_logging
(config)
code/main.py:49
↓ 1 callersFunctioninit_state
(num_keys)
code/resource_server/app.py:17
↓ 1 callersMethodinit_twython_objects
Reads the keys file and initiates an array of twython objects :param keys_file: Twitter keys file :return:
code/util/TwythonConnector.py:17
Method__init__
(self, config)
code/news_content_collection.py:142
Method__init__
(self, config)
code/tweet_collection.py:74
Method__init__
(self, config)
code/main.py:17
Method__init__
(self, config)
code/retweet_collection.py:55
Method__init__
(self, config)
code/user_profile_collection.py:161
Method__init__
(self, config)
code/user_profile_collection.py:181
Method__init__
(self, config)
code/user_profile_collection.py:201
Method__init__
(self, num_keys=34, time_window=900, window_limit=15)
code/resource_server/ResourceAllocator.py:8
Method__init__
(self, keys_server_url, key_file)
code/util/TwythonConnector.py:11
Method__init__
(self, info_dict, label, news_platform)
code/util/util.py:14
Method__init__
(self, data_dir, data_collection_dir, tweet_keys_file, num_process)
code/util/util.py:33
Method__init__
(self, config)
code/util/util.py:45
Methodchange_params
(self, window_limit, time_window)
code/resource_server/ResourceAllocator.py:19
Methodcollect_data
(self, choices)
code/news_content_collection.py:145
Methodcollect_data
(self, choices)
code/tweet_collection.py:77
Methodcollect_data
(self, choices)
code/retweet_collection.py:58
Methodcollect_data
(self, choices)
code/user_profile_collection.py:144
Methodcollect_data
(self, choices)
code/user_profile_collection.py:164
Methodcollect_data
(self, choices)
code/user_profile_collection.py:184
Methodcollect_data
(self, choices)
code/user_profile_collection.py:204
Functioncollect_user_profiles
(config: Config, twython_connector: TwythonConnector)
code/user_profile_collection.py:118
Functiondump_retweets_job
(tweet: Tweet, config: Config, twython_connector: TwythonConnector)
code/retweet_collection.py:14
Functiondump_tweet_information
Collect info and dump info of tweet chunk containing atmost 100 tweets
code/tweet_collection.py:25
Functiondump_user_followers
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:89
Functiondump_user_following
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:103
Functiondump_user_profile_job
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:32
Functiondump_user_recent_tweets_job
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:48
Functionget_key_index
()
code/resource_server/app.py:29
Functionupdate
(arg)
code/util/util.py:100