|
@@ -0,0 +1,22 @@
|
|
|
+import logging
|
|
|
+import sys
|
|
|
+
|
|
|
+from crawler import config
|
|
|
+
|
|
|
+
|
|
|
+class Main:
|
|
|
+ @staticmethod
|
|
|
+ def main(argv):
|
|
|
+ # Platform Strategy Env
|
|
|
+ print("start run crawler...")
|
|
|
+ print("Platform = " + argv[0])
|
|
|
+ print("Strategy = " + argv[1])
|
|
|
+ print("Env = " + argv[2])
|
|
|
+ print("Platform = " + config.PLATFORM['xiaoniangao'])
|
|
|
+ print("Strategy = " + config.STRATEGY['home_page'])
|
|
|
+ print("Env = " + config.ENV['test'])
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+if __name__ == '__main__':
|
|
|
+ Main.main(sys.argv)
|