码迷,mamicode.com
首页 > 其他好文 > 详细

Hint when use HTTPAgilityPack

时间:2014-09-16 09:11:30      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:des   http   io   ar   for   sp   on   c   html   


1- Read the usage policy of the website. I know this is the third time I mention that, but that tells you its important :)
2- Always try to use the mobile website as it will generate a smaller html pages, so faster load time on your app (for example http://m.imdb.com)
3- The library is powerful, but if the structure of the website changes, then your app will crash. But you can fix that by following the hint number 4
4- Instead of using the HTML Agility Pack on the client side, you can create a server that parses the content from the website, and provides the content to the clients as JSON. In case the structure of the website changes the clients will still have the old data, and you can fix your server to adapt these changes. Also notice using this module will make your app runs faster, as JSON files would be more concise than HTML pages.

Hint when use HTTPAgilityPack

标签:des   http   io   ar   for   sp   on   c   html   

原文地址:http://www.cnblogs.com/MinieGoGo/p/3974147.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!