• R/O
  • SSH
  • HTTPS

openpishcrawler: Commit


Commit MetaInfo

Revision9 (tree)
Time2019-11-14 07:47:29
Authorsebastiandotnet

Log Message

- remove HtmlAgilityPack from sleeping check

Change Summary

Incremental Difference

--- OpenPishCrawler/Service/OpenPishSleep.cs (revision 8)
+++ OpenPishCrawler/Service/OpenPishSleep.cs (revision 9)
@@ -1,11 +1,6 @@
11 using System;
2-using System.Collections.Generic;
3-using System.Linq;
4-using System.Text;
5-using System.Threading.Tasks;
62 using System.IO;
73 using System.Net;
8-using HtmlAgilityPack;
94 using OpenPishCrawler.Data;
105
116 namespace OpenPishCrawler.Service
@@ -23,7 +18,7 @@
2318 if (null == page)
2419 throw new ArgumentNullException(nameof(page));
2520
26- ReadPageDocument(page.Url);
21+ ReadPage(page.Url);
2722 }
2823 catch (WebException exception)
2924 {
@@ -38,14 +33,6 @@
3833 return result;
3934 }
4035
41- private HtmlDocument ReadPageDocument(string url)
42- {
43- var result = new HtmlDocument();
44- var page = ReadPage(url);
45- result.LoadHtml(page);
46- return result;
47- }
48-
4936 private string ReadPage(string url)
5037 {
5138 if (!(url.StartsWith("http://") || url.StartsWith("https://")))
Show on old repository browser