Пример #1
0
 public Task <Result> ScrapeTermsAsync() => Result.OfAsync(async() =>
 {
     await Terms.AddRangeAsync((await HtmlClient.GetAsync(Urls.DeptSchedule)).Value
                               .Query <IHtmlSelectElement>("#term_id")
                               .Value
                               .Children <IHtmlOptionElement>().Value.Skip(1)
                               .Select(e => new TermModel {
         Name = e.Label, Id = Parse.Int(e.Value).Value
     }));
 });