From 102cad055ee2f34bb55a9ad7be63ae33b86f7902 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 3 Nov 2021 15:36:42 -0400 Subject: [PATCH] [M] Move create_config to a separate file --- collect/twitter_individual.py | 10 ++++++++++ .../twitter_individual.py => collect/utils.py | 2 -- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 collect/twitter_individual.py rename data-collection/twitter_individual.py => collect/utils.py (96%) diff --git a/collect/twitter_individual.py b/collect/twitter_individual.py new file mode 100644 index 0000000..229e4c0 --- /dev/null +++ b/collect/twitter_individual.py @@ -0,0 +1,10 @@ +import os + +import json5 +import tweepy + +from collect.utils import * + + +if __name__ == '__main__': + conf = load_config() diff --git a/data-collection/twitter_individual.py b/collect/utils.py similarity index 96% rename from data-collection/twitter_individual.py rename to collect/utils.py index f3c512c..6dfdd55 100644 --- a/data-collection/twitter_individual.py +++ b/collect/utils.py @@ -1,7 +1,6 @@ import os import json5 -import tweepy def load_config() -> dict: @@ -15,4 +14,3 @@ def load_config() -> dict: return json5.load(f) else: return json5.loads(os.getenv('config')) -