diff --git a/src/GelbeSeitenSpider.cs b/src/GelbeSeitenSpider.cs index b732e99..3e4d0f7 100644 --- a/src/GelbeSeitenSpider.cs +++ b/src/GelbeSeitenSpider.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using System.Net; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; @@ -53,7 +52,7 @@ protected override async Task Search(string search, CancellationToken token) Progress = 0; var document = await GetPage(search, token: token); - AddResults(GetListItems(document, token).ToArray()); + AddResults(GetListItems(document).ToArray()); PageCount = GetPageCount(document); var page = 1; @@ -63,7 +62,7 @@ protected override async Task Search(string search, CancellationToken token) await Task.WhenAll( batch.Select(async pageNum => { var document = await GetPage(search, pageNum, token); - AddResults(GetListItems(document, token).ToArray()); + AddResults(GetListItems(document).ToArray()); Interlocked.Increment(ref page); Progress = (int) ((page / (double) PageCount) * 100d); @@ -116,7 +115,7 @@ private static int GetPageCount(IDocument listPage) } - private IEnumerable GetListItems(IDocument listPage, CancellationToken token) + private IEnumerable GetListItems(IDocument listPage) { var items = listPage.QuerySelectorAll("#gs_treffer .mod-Treffer");