Add HtmlAgility Pack And Abot Web Crawler to Project

html-agility-pack web-crawler

Question

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'

Accepted Answer

I install HtmlAgilityPack from NuGet Before Abot and problem solved!

1-
PM> Install-Package HtmlAgilityPack
2-
PM> Install-Package Abot

Popular Answer

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.




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why