-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
24 lines (21 loc) · 728 Bytes
/
main.py
File metadata and controls
24 lines (21 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sys
import os
import config
def mainCall():
task = input("Please provide a directory for text files to be cleaned up or press enter to connect to database: ")
if len(task) > 0:
config.setTextFileMode()
import articleCleanUp
articleCleanUp.articleCleanup(task)
else:
taskDB = input("For text generation on all tweets type 'all'; for text generation based on keyword occurence type 'keywords'\
for text generation of raw tweets type 'raw': ")
taskSelection(taskDB)
def taskSelection(taskDB):
if taskDB== 'all':
import test_Sql_Login
elif taskDB=='keywords':
import test
elif taskDB== 'raw':
import raw_tweets
mainCall()