public YRSSLoader() { config = ConfigLoader.Instance; if (config != null) { if ((rssURL = config.Configuration["RSSURL"]) == null) { Console.WriteLine("Error: Unable to fetch RSS URL from configuration!"); } } else { Console.WriteLine("Error: Unable to fetch configuration!"); } yCitiesLoader = YCitiesLoader.Instance; if (URLScraper.Instance == null) { yScraper = new URLScraper(); } else { yScraper = URLScraper.Instance; } doc = new XmlDocument(); }
public YCitiesLoader() { instance = this; config = ConfigLoader.Instance; if (config != null) { config.Configuration.TryGetValue("COUNTRYURL", out mainURL); } if (mainURL == "" || mainURL == null) { mainURL = "http://in.weather.yahoo.com/india/"; } statesToCitiesMap = new Dictionary <string, string>(); if (URLScraper.Instance == null) { yScraper = new URLScraper(); } else { yScraper = URLScraper.Instance; } }
public URLScraper() { instance = this; }