public List <FormatSentencesTask> GetTasks()
        {
            var tasks = new List <FormatSentencesTask>();
            var start = 582;

            for (var i = 0; i < 10; i++)
            {
                if (i == 4)
                {
                    start = 588;
                }
                var uri       = firstPart + (start - i).ToString() + secondPart + (i + 7).ToString();
                var html      = HTML.GetHTML(uri);
                var partTasks = GetTasksFromOnePage(html);
                tasks.AddRange(partTasks);
            }
            return(tasks);
        }
Beispiel #2
0
        public List <FormatImageTask> GetTasks()
        {
            var tasks = new List <FormatImageTask>();
            var start = 412;

            for (var i = 0; i < 5; i++)
            {
                if (i == 1)
                {
                    start = 413;
                }
                var uri = firstPart + (start + i).ToString() + secondPart + (i + 1).ToString();

                var html      = HTML.GetHTML(uri);
                var partTasks = GetTasksFromOnePage(html);
                tasks.AddRange(partTasks);
            }
            return(tasks);
        }
Beispiel #3
0
        public List <FormatTextTask> GetTasks()
        {
            var tasks = new List <FormatTextTask>();
            var start = 665;

            for (var i = 0; i < 20; i++)
            {
                Console.WriteLine("НОмер" + (i + 1).ToString());
                if (i == 4)
                {
                    start = 668;
                }
                FormatTextTask partTasks = null;
                var            uri       = firstPart + (start + i).ToString() + secondPart + (i + 1).ToString();
                var            html      = HTML.GetHTML(uri);
                partTasks = GetTasksFromOnePage(html);
                if (partTasks.Text.Length > 100)
                {
                    tasks.Add(partTasks);
                }
            }
            return(tasks);
        }