From 7714a99de6886f1940769d44c40363873c27c6c8 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 13 Dec 2021 21:12:01 -0500 Subject: [PATCH] [+] File structure --- deploy.sh | 0 src/constants.py | 22 +++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) mode change 100644 => 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh old mode 100644 new mode 100755 diff --git a/src/constants.py b/src/constants.py index 8d7dfae..15f3cf7 100644 --- a/src/constants.py +++ b/src/constants.py @@ -2,9 +2,29 @@ This module stores constant variables in our projects. Instructors said that we can use global constants: https://piazza.com/class/ksovzjrlsye72f?cid=1664 + +Note: Paths should not end with "/" """ -# Paths, should not end with "/" +""" +File structure: + +data - Processed and raw data +├── packed - Packed data +└── twitter - Data obtained from Twitter + ├── user - Twitter user info data + │ ├── meta - Meta-data about the follows-chain downloading progress + │ ├── processed - Processed (filtered) user data. + │ └── users - Raw user info, each json contains info of one user. + └── user-tweets - Tweets data + ├── processed - Processed tweets. + └── user - Raw tweets, each json contains all tweets from a user. + +src - Source codes. +├── report - Report content generated by report_all() @ visualization.py +├── dist - Static website root generated by write_html() @ report.py +└── resources - HTML static resources, some are hand-written and some are imported libraries. +""" DATA_DIR = '../data' TWEETS_DIR = f'{DATA_DIR}/twitter/user-tweets' USER_DIR = f'{DATA_DIR}/twitter/user'