I install HtmlAgilityPack from NuGet Before Abot and problem solved!
1-
PM> Install-Package HtmlAgilityPack
2-
PM> Install-Package Abot
Domanda
I Use "Abot" Version 1.2.3.1 but when I add "Html Agility" version 1.4.6.0 to project I get this error :
Error 38 Assembly 'Abot, Version=1.2.3.1, Culture=neutral, PublicKeyToken=null' uses 'HtmlAgilityPack, Version=1.4.7.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' which has a higher version than referenced assembly 'HtmlAgilityPack, Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a'
Soluzione 2
I install HtmlAgilityPack from NuGet Before Abot and problem solved!
1-
PM> Install-Package HtmlAgilityPack
2-
PM> Install-Package Abot
Altri suggerimenti
I know this is old but I just ran into this issue. That is, Abot did not work when I had added the latest version of HAP. But the workaround is simple, just use the CSQueryHyperlinkParser
to parse links. Like so:
var crawler = new Abot.Crawler.PoliteWebCrawler(config, null, null, null, null, new Abot.Core.CSQueryHyperlinkParser(), null, null, null);
This solved my issue.
Abot uses a patched version of html agility pack since it would crash the process on certain types of html pages. See the issue documented here...
https://code.google.com/p/abot/issues/detail?id=77&can=1&q=htmlagilitypack
There is an issue on github to investigate if this was still a problem with the nuget version of html agility pack (which i'm pretty sure there is). So until the nuget version will not crash the host process Abot will like keep it's patched version of html agility pack.