-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprerequisites_data.py
33 lines (29 loc) · 1.35 KB
/
prerequisites_data.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
import os
curr = os.getcwd()
##----------------------------------------------------##
## Copy intermediate data
##----------------------------------------------------##
dir_switch = curr + "/Techtrends/Data/output/Intermediate_and_previous_results"
get_Intermediate_results = 'wget -r -nH --reject="index.html*" http://54.163.226.98:7555/'
try:
os.system("cd " + dir_switch + "; " + get_Intermediate_results)
except Exception,e:
print "Could not retrieve data from server", e
##----------------------------------------------------##
## Copy Webhost Data
##----------------------------------------------------##
dir_switch = curr + "/Techtrends/Codebase/WebHost/static/data"
get_Intermediate_results = 'wget -r -nH --reject="index.html*" http://54.163.226.98:7556/'
try:
os.system("cd " + dir_switch + "; " + get_Intermediate_results)
except Exception,e:
print "Could not retrieve data from server", e
##----------------------------------------------------##
## Copy Crawler Data
##----------------------------------------------------##
dir_switch = curr + "/Techtrends/Data"
get_Intermediate_results = 'wget -r -nH --reject="index.html*" http://54.163.226.98:7557/'
try:
os.system("cd " + dir_switch + "; " + get_Intermediate_results)
except Exception,e:
print "Could not retrieve data from server", e