Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KaiDMML/FakeNewsNet
/ functions
Functions
59 in github.com/KaiDMML/FakeNewsNet
⨍
Functions
59
◇
Types & classes
14
↳
Endpoints
1
↓ 20 callers
Function
create_dir
(dir_name)
code/util/util.py:72
↓ 8 callers
Function
get_user_ids_in_folder
(samples_folder)
code/user_profile_collection.py:16
↓ 8 callers
Function
multiprocess_data_collection
(function_reference, data_list, args, config: Config)
code/util/util.py:94
↓ 6 callers
Method
get_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 callers
Method
__init__
(self, config)
code/user_profile_collection.py:141
↓ 3 callers
Method
load_news_file
(self, data_choice)
code/util/util.py:51
↓ 2 callers
Function
crawl_link_article
(url)
code/news_content_collection.py:14
↓ 2 callers
Function
is_folder_exists
(folder_name)
code/util/util.py:81
↓ 1 callers
Method
__init__
(self, tweet_id, news_id, news_source, label)
code/tweet_collection.py:18
↓ 1 callers
Method
_get_twitter_connection
(connection_mode=1, app_key=None, app_secret=None, oauth_token=None, oauth_tok
code/util/TwythonConnector.py:31
↓ 1 callers
Method
collect_data
(self, choices)
code/util/util.py:48
↓ 1 callers
Function
collect_news_articles
(news_list, news_source, label, config: Config)
code/news_content_collection.py:125
↓ 1 callers
Function
collect_retweets
(news_list, news_source, label, config: Config)
code/retweet_collection.py:37
↓ 1 callers
Function
collect_tweets
(news_list, news_source, label, config: Config)
code/tweet_collection.py:55
↓ 1 callers
Function
crawl_news_article
(url)
code/news_content_collection.py:113
↓ 1 callers
Function
download_dataset
()
code/main.py:59
↓ 1 callers
Function
equal_chunks
return successive n-sized chunks from l.
code/util/util.py:85
↓ 1 callers
Function
fetch_user_follower_ids
(user_id, twython_connection)
code/user_profile_collection.py:65
↓ 1 callers
Function
fetch_user_friends_ids
(user_id, twython_connection)
code/user_profile_collection.py:77
↓ 1 callers
Method
get_collector_object
(self, feature_type)
code/main.py:20
↓ 1 callers
Function
get_epoch_time
(time_obj)
code/news_content_collection.py:81
↓ 1 callers
Function
get_num_process
()
code/resource_server/app.py:54
↓ 1 callers
Method
get_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 callers
Method
get_resource_index
(self, resource_type)
code/util/TwythonConnector.py:61
↓ 1 callers
Function
get_web_archieve_results
(search_url)
code/news_content_collection.py:88
↓ 1 callers
Function
get_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 callers
Function
init_config
()
code/main.py:38
↓ 1 callers
Function
init_logging
(config)
code/main.py:49
↓ 1 callers
Function
init_state
(num_keys)
code/resource_server/app.py:17
↓ 1 callers
Method
init_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
Method
change_params
(self, window_limit, time_window)
code/resource_server/ResourceAllocator.py:19
Method
collect_data
(self, choices)
code/news_content_collection.py:145
Method
collect_data
(self, choices)
code/tweet_collection.py:77
Method
collect_data
(self, choices)
code/retweet_collection.py:58
Method
collect_data
(self, choices)
code/user_profile_collection.py:144
Method
collect_data
(self, choices)
code/user_profile_collection.py:164
Method
collect_data
(self, choices)
code/user_profile_collection.py:184
Method
collect_data
(self, choices)
code/user_profile_collection.py:204
Function
collect_user_profiles
(config: Config, twython_connector: TwythonConnector)
code/user_profile_collection.py:118
Function
dump_retweets_job
(tweet: Tweet, config: Config, twython_connector: TwythonConnector)
code/retweet_collection.py:14
Function
dump_tweet_information
Collect info and dump info of tweet chunk containing atmost 100 tweets
code/tweet_collection.py:25
Function
dump_user_followers
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:89
Function
dump_user_following
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:103
Function
dump_user_profile_job
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:32
Function
dump_user_recent_tweets_job
(user_id, save_location, twython_connector: TwythonConnector)
code/user_profile_collection.py:48
Function
get_key_index
()
code/resource_server/app.py:29
Function
update
(arg)
code/util/util.py:100