public QuestLister(string url)
        {
            available_quests = new List <QuestListing>();

            HTTPRequester.HTMLResponse hr = HTTPRequester.GetURLBlocking(url);
            if (hr.Succeeded == true)
            {
                Parse(hr.Document);
            }

            available_quests = available_quests.OrderBy(a => a.name).ToList();
        }
Exemple #2
0
        protected void RetrieveData(string url, List <string> already_parsed)
        {
            already_parsed.Add(url);
            HTTPRequester.HTMLResponse hr = HTTPRequester.GetURLBlocking(url);

            if (hr.Succeeded == true)
            {
                if (!hr.Document.DocumentNode.InnerHtml.Contains("quick guide"))
                {
                    return;
                }

                if (Parse(hr.Document, already_parsed) == false)
                {
                    Console.WriteLine("[Warning] Could not fully resolve parsing of quest '{0}'", url);
                }
            }
            else
            {
                Console.WriteLine("We were not able to retrieve all data, this might be due to a timeout (15 seconds), try again later");
            }
        }