HTML Agility Pack for Windows Phone 7 (WP7)
2013-01-15 15:11
459 查看
So I've noticed some tweets recently on if/how the HTML Agility Pack can be used in WP7 development. I looked into it a bit while working on the Drudge Buddy app, and what I found is that you can use it, but you have to
compile the dll yourself. Here's what you do:
Go to the HTML Agility Pack Codeplex site: http://htmlagilitypack.codeplex.com/
Select the "Source Code" menu item, and then "download" the "Latest Version". You'll want to extract this somewhere on your hard drive.
Now, go into the directory where you extracted the files, and look for the "Truck/HAPPhone" folder. There should be a "csproj" file. Load this into Visual Studio. At this point, you should be able to compile the HAPPhone
project and create the dll you need. You can then include this dll file as a reference in your WP7 project and begin using the HTML Agility Pack in your project.
Keep in mind that the HAPPhone project does not include all the functionality that the main project does. So, you can use the tutorials on the Codeplex page (and others) to get an understanding of how it works, but you
may have to modify the way you actually parse the data.
Anyway, good luck!
compile the dll yourself. Here's what you do:
Go to the HTML Agility Pack Codeplex site: http://htmlagilitypack.codeplex.com/
Select the "Source Code" menu item, and then "download" the "Latest Version". You'll want to extract this somewhere on your hard drive.
Now, go into the directory where you extracted the files, and look for the "Truck/HAPPhone" folder. There should be a "csproj" file. Load this into Visual Studio. At this point, you should be able to compile the HAPPhone
project and create the dll you need. You can then include this dll file as a reference in your WP7 project and begin using the HTML Agility Pack in your project.
Keep in mind that the HAPPhone project does not include all the functionality that the main project does. So, you can use the tutorials on the Codeplex page (and others) to get an understanding of how it works, but you
may have to modify the way you actually parse the data.
Anyway, good luck!
相关文章推荐
- 鉴于本人的经验,我不推荐使用sqlite for wp. Windows Phone(二) WP7数据库连接(SQLite数据库) 转:http://www.cnblogs.com/ry123/archive/2012/05/31/2528281.html
- 解决HtmlAgilityPack中文乱码
- HtmlAgilityPack + Fizzler
- ASP.NET网络爬虫小研究 HtmlAgilityPack基础,爬取数据保存在数据库中再显示再自己的网页中
- html解析器 HtmlAgilityPack
- 让Qt for Windows Phone 8.1在真机上执行
- 【工作笔记0006】C#调用HtmlAgilityPack类库实现网页数据抓取
- HtmlAgilityPack 抓取中文页面乱码问题的解决方案
- ArcGIS SDK for Windows Phone开发 WP8 移动GIS (入门篇)
- Silverlight for Windows Phone 7开发系列(1):环境搭建
- Silverlight for Windows Phone 7开发系列(2):第一个Silverlight程序
- 现在可用:Workflow Foundation Activity Pack for Windows Azure CTP 1
- HtmlAgilityPack和XPath
- HtmlAgilityPack 爬虫批量获取百度音乐下载地址一
- HTML解析利器HtmlAgilityPack
- Html Agility Pack解析HTML页
- XNA or Silverlight for Windows Phone 7 game
- 用WebRequest +HtmlAgilityPack 从外网抓取数据到本地
- C#+HtmlAgilityPack—糗事百科桌面版V2.0
- Windows Phone 下拉菜单ListPicker 的实现(一) Silverlight for Windows Phone 7 Toolk