HAP 1.4.6

Rating:        Based on 68 ratings
Reviewed:  42 reviews
Downloads: 201997
Change Set: 98677
Released: Jul 10, 2012
Updated: Aug 13, 2012 by DarthObiwan
Dev status: Stable Help Icon

Recommended Download

Application Release Binaries
application, 1048K, uploaded Aug 13, 2012 - 172655 downloads

Other Available Downloads

Documentation Documentation
documentation, 855K, uploaded Jul 11, 2012 - 29342 downloads

Release Notes

1.4.6 Release

The only difference between 1.4.5 is a fix for the .NET 2.0 dll in 1.4.5

Below are the notes for 1.4.5

This codeplex release is provided as a courtesy, the preferred method of referencing HAP is through nuget http://nuget.org/packages/HtmlAgilityPack

This release includes versions of Html Agility Pack for .NET 2.0 - 4.5, Silverlight 4-5, Windows Phone 7-7.1 and Windows 8 Metro.

Windows 8 Metro support

The Windows 8 Metro version is a mostly untested port. There is a known bug with Windows 8 Metro HttpClient and basic authentication. This client is used within the HtmlWeb class. Also XPATH is not supported and may never be supported, only LINQ expressions can be used.

BugFixes

This update fixes a few bugs introduced in the nuget versions since 1.4.0.
  • PreHandleDocumentHandler now fires before the Document is loaded in HtmlWeb
  • Invalid parsing of td tags is fixed
  • Minor speed up of node name retrieval, most notable in LINQ queries
  • Deprecation of DescendantNodes and DescendantNodesAndSelf. These methods will have their implementations changed in the future which will break existing code. It is recommended to use Descendants and DescendantsAndSelf instead

Source code structure changes

More files have been split into partial classes or refactored to facilitate porting HAP to new .NET target profiles. Since it now not possible to build all versions of HAP in one version of visual studio there are multiple solution files. All solution files have been moved to the Solutions directory to keep items tidy. Test projects (current and upcoming) have been moved to the Tests folder. While all sample projects have been moved to the Samples folder.

Getting the Source Code

Due to Codeplex now supporting tagging source control versions to releases the source zip file is not included here. Please follow the tagged change set number link above to a page where you can download the source code for this release

Reviews for this release

     
5/5 this is very good release , love it , it saves lot of my time Thanks Guys
by ashwini47 on Oct 30 at 5:07 PM
     
this was awesome
by szetos06 on Oct 22 at 7:48 PM
     
absolut usefull tool
by Holger1973 on Sep 27 at 8:28 PM
     
Only saw that there was documentation now that I add the rating. Well.. Working nicely so far, plus looks to be famous at stackoverflow, so once I started googling, the use became easy. Also, so far it is working great.
by andipandi on Aug 10 at 1:49 PM
     
Thanks very much
by abin2323 on Aug 1 at 9:26 AM
     
Works great. Sadly this project is not updating anymore. Really hope I can migrate the app from WP8 to WIN8.
by JimmyRespawn on Aug 1 at 7:42 AM
     
Thanks very much
by xiesz on Jun 14 at 12:43 AM
     
i liked it
by majid_darab on May 18 at 8:16 PM
     
Enough said
by jasoncylam on Mar 21 at 2:14 AM
     
Loving everything about this project so far!
by Rhyous on Mar 6 at 4:11 PM
     
Great tool to work with. Replaced all my regex with HAP!
by michalmiddleton on Jan 8 at 4:01 PM
     
This is a great tool. I had to dig into a site to get datasheets for at lot of products. The is buried and i had to use F12 in explorer to get the table (for each letter in alphabet) and then saving into text. The link scraping was a breeze with HAP - great job :) thanks for sharing.
by FHundewadt on Nov 3, 2013 at 7:30 AM
     
Want to try
by huyta on Sep 14, 2013 at 9:57 AM
     
Absolutely the best for HTML scraping purposes in .NET world. Because this is open-source, it is ridiculous easy to integrate into WP7 applications as well. PCL versions have been made available on NuGet, not by the same author but that is the power of open source ;)
by Deathspike on Jul 16, 2013 at 10:47 AM
     
So many people recommend HAP, but when I tried it, I was disappointed! No WP8 compatibility (missing XPath), previous version lacks searching the document via XPath.
by netaro on Jul 15, 2013 at 2:51 PM
     
I use this for my cms template in order to edit my page who has been saved in my bdd. It's perfect for this!
by OlivierAlbertini on Jun 26, 2013 at 7:30 PM
     
Not working well for us. HtmlAgilityPack is stripping </p> tags, affecting rendering badly. Put a link to the .chm file download on the Documentation tab. The .chm file is broken (Windows 7). I cannot navigate inside the .chm file. Right now, today, I am not liking this product one bit. If there are Fields that change the behavior to stop dropping the </p> tags then I will feel better.
by JosephKahl on May 30, 2013 at 9:45 PM
     
good Works.
by konukca on May 30, 2013 at 3:10 PM
     
HtmlAgilityPack very Good
by hoangvansang on May 24, 2013 at 8:08 AM
     
Not quiet good for Windows 8
by binharseneuit on May 16, 2013 at 9:19 AM
     
nooknooknook
by markstavr on May 3, 2013 at 9:22 AM
     
Very Good,I've been using HAP with Powershell to script importing blog entries from a WordPress site we maintain. Extremely useful. Please maintain the CodePlex downloads, as I'd rather not have to set up a VS project just to pull NuGet updates
by hp7474 on May 2, 2013 at 8:28 AM
     
Not rating the product, but wanted to provide some help on opening the help. I am using Windows 7 and the help (.cfm) file listed on the download page (not on the documentation page, on the download page) wouldn't open correctly on my computer. I didn't have the UAC issue describe by others. Instead, I had to add a registry key as instructed by http://support.microsoft.com/kb/896054, Example 1.
by jimafisher on Mar 29, 2013 at 10:21 PM
     
Great Work...Please update it for windows phone 8. We will get an error "System.Xml.Xpath" reference missing while using this in windows phone 8.
by shyamtinwar on Mar 25, 2013 at 9:03 AM
     
Excellent project. Finally something that allows me to process HTML better way than using regular expressions! Thought I found some bugs related XSLT and XPath.
by Dzonny on Mar 18, 2013 at 6:09 PM
     
The documentaction file is not working, I am unable to see the content. Please fix.
by cybert2t on Mar 11, 2013 at 12:54 AM
     
Thanks for the your excellent work done. I used it out of the box in my project (https://sitereader.codeplex.com/) and was able to release the code in just 4 days. -Ryan
by dszryan on Mar 6, 2013 at 2:42 AM
     
Please update this for Windows Phone 8
by avneet723 on Feb 26, 2013 at 3:35 AM
     
good stuff, used it to sanitize html
by o on Jan 29, 2013 at 10:19 PM
     
This is a superb library -- fast, feature-rich, and well-documented. This is far and away the best HTML parser for .NET I've found, commercial or otherwise. To the guy that gave 1 star for a flaw with a single function: Dude, it's open source. Don't complain -- fix it! To the guy that gave it 3 stars for lack of documentation: Did you not see the .chm? DOW: tyvm + keep up the good work!
by JLB2000 on Jan 26, 2013 at 5:58 AM
     
Thank you for this excellent library. I was always using the excellent CsQuery (https://github.com/jamietre/CsQuery), but I faced a scenario in which HAP helped me but CsQuery didn't.
by ashrafsabrym on Jan 20, 2013 at 6:30 PM
     
I also want to use it using powershell - loading up the VS IDE is a waste of my time, please maintain download link. Only 1 star because LoadFile() function silently fails!
by zaphodikus01 on Jan 2, 2013 at 2:42 PM
     
Superb. I use this in many projects and have always had great success with it. Thanks for sharing this great work.
by dwmkerr on Dec 9, 2012 at 4:39 PM
     
I've been using it for a few hours as a first time user, and haven't encountered any difficulties (other than the error in the original example, which I quickly resolved). My html is parsing nicely, thanks!
by MikePanter on Oct 30, 2012 at 1:38 AM
     
how can I get a .winmd?
by horzel on Oct 23, 2012 at 4:28 AM
     
If you're having problems with the help file, make sure UAC isn't getting in your way. On Win7, open the properties of Documentation.chm and click the "Unblock" button.
by dstringvc on Oct 19, 2012 at 8:54 PM
     
I've been using HAP with Powershell to script importing blog entries from a WordPress site we maintain. Extremely useful. Please maintain the CodePlex downloads, as I'd rather not have to set up a VS project just to pull NuGet updates.
by ErichStehr on Sep 27, 2012 at 7:12 PM
     
Documentaaaaation?!!?! A stable project as useless as a book in the language of Haddock. The docs wont compile (VS2010 or VS2012), the CHM help file is empty(!), the XML help file has no tree? Just because you have to pay for the OS doesn't let you sit on your high horse and shout "I wrote that!" when you haven't finished! Google != Docs. Also, the sign up and login here is far too tedious.
by dontwannasignup on Sep 27, 2012 at 12:40 PM
     
Does not work with Windows 8. Useless.
by masonbogert on Sep 13, 2012 at 12:41 AM
     
Great project, love it.
by tyler6699 on Aug 28, 2012 at 9:08 AM
     
Very thank you
by dangkhoa on Aug 8, 2012 at 2:16 AM
     
very very good
by selfteam on Jul 31, 2012 at 2:11 PM