public async Task <List <(string, string)> > SubmitLinks(List <string> urls) { var config = JsonConfig <SubmitSpiderConfig> .GetSiteConfig(); List <(string, string)> list = new List <(string, string)>(); ResponseResult result = await SearchSubmit.SubmitBaiduAsync(urls, config.BaiduKey); list.Add(("百度", result.Error?.Message)); return(list); }
public async Task <List <(string, string)> > SubmitLink(string url) { var config = JsonConfig <SubmitSpiderConfig> .GetSiteConfig(); List <(string, string)> list = new List <(string, string)>(); ResponseResult result = await SearchSubmit.SubmitBaiduAsync(new List <string>() { url }, "q0dCbyNXm9daxf71"); if (result.SuccessUrl.Count == 0) { throw new UserFriendlyException(500, "提交链接失败"); } list.Add(("百度", result.Error?.Message)); return(list); }
public void ClickSearch() { SearchSubmit.Clicks(); }