public async Task <IResult <List <ChordsLink> > > GrabLinks(string query) { var searchUrl = new Uri(_mychordsUrl, $"/search?q={query}"); var page = await _webPageLoader.Load(searchUrl); return(page.Bind(ToSafe(ExtractLinks))); }
private string GetFromHttp(string url) { var content = _webPageLoader.Load(url); _cache[url] = content; return(content); }