-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMegaStorage.py
104 lines (92 loc) · 2.08 KB
/
MegaStorage.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Variable for First Phase Data Extraction
OutStandingShare = []
MarketPrice = []
PercentageChange = []
Avg120Day = []
OneYearYield = []
Eps = []
PERatio = []
BookValue = []
Pbv = []
AvgVol30Day = []
MarketCapitalisation = []
# Variables for News
News = []
NewsDate = []
NewsSymbol = []
# Variable for Sort Function
arr1 = []
arr2 = []
arr3 = []
arr4 = []
arr5 = []
arr6 = []
arr7 = []
# Variable for dividend proposal
divBCD = []
divCash = []
divBonus = []
divSymbol = []
# Variable for Second Phase Data Extraction
shareDataAsOf = []
shareVolume = []
sharePrice = []
shareLowPrice = []
shareHighPrice = []
shareOpenPrice = []
share52WeeksHigh = []
share52WeeksLow = []
# Report Data
shareReportDate = []
shareReportValue = []
shareReportQuarter = []
# All Data of a Company
companyVolume = []
companyPrice = []
companyLowPrice = []
companyHighPrice = []
companyOpenPrice = []
# Report Array
symbol = []
trend = []
remarks = []
bullPoint = []
bearPoint = []
# Testing Variables
isTesting = False
# Predetermined Variable as well as Temporary Variables
Temporary = []
dataAsOf = ""
username = ""
macAdd = ""
connectionError = False
numberOfCompanies = 0
barProgressCount = 1
bar = "____________________________________________________________________________________________________"
# Path Variable
fileExtension = '.txt'
fileName0 = 'data/'
fileName1 = 'data1/'
fileName2 = 'data2/'
fileName3 = 'data3/'
fileName4 = 'data4/'
# Print Style
green = '\033[92m'
yellow = '\033[93m'
red = '\033[91m'
normal = '\033[0m'
# bold = '\033[97m'
bold = ''
# Name, Symbol, Sector
UpdatedSymbol = []
Symbol = []
Name = []
Sector = []
SectorList1 = [
"other", "finance", "trading", "hydropower", "investment", "mutualfund", "microfinance", "lifeinsurance", "commercialbank", "hotelandtourism",
"developmentbank", "nonlifeinsurance", "manufacturingandproducts", "all"
]
SectorList2 = [
"Others", "Finance", "Trading", "Hydropower", "Investment", "Mutual Fund", "Microfinance", "Life Insurance", "Commercial Bank", "Hotel & Tourism",
"Development Bank", "Non-Life Insurance", "Manufacturing and Products", "All"
]