diff --git a/src/analytics/AnalyticsExtractor.java b/src/analytics/AnalyticsExtractor.java index 487755f..dccd049 100644 --- a/src/analytics/AnalyticsExtractor.java +++ b/src/analytics/AnalyticsExtractor.java @@ -13,7 +13,7 @@ * Class to produce the analytics * Created by sifantid on 5/5/2016. */ -public class AnalyticsExtractor { +public class AnalyticsExtractor { private static MongoConnector mc; /** diff --git a/src/combiner/Combiner.java b/src/combiner/Combiner.java index 9c05509..6c0215a 100644 --- a/src/combiner/Combiner.java +++ b/src/combiner/Combiner.java @@ -2,6 +2,7 @@ import analytics.AnalyticsExtractor; import analytics.FrequencyCounter; +import analytics.LocationDetector; import org.json.JSONException; import twitter.main.TwitterExporter; import youtube.YoutubeExporter; @@ -25,6 +26,7 @@ public class Combiner { */ public static void main(String[] args) throws JSONException, IOException { + if(args != null) { // Collect Youtube comments and insert them to DB YoutubeExporter.main(args); @@ -43,5 +45,6 @@ public static void main(String[] args) throws JSONException, IOException { analyticsExtractor.analyze(); } } + } }