简体   繁体   English

Asp.net中的屏幕抓取

[英]Screen scraping in Asp.net

This is how i cache web page but i am not getting full page, there is about 30 result in this page and i am getting just 26 results. 这是我缓存网页的方式,但我没有得到完整的页面,此页面中大约有30个结果,而我却只有26个结果。 Please anyone can help me? 请任何人可以帮助我吗?

WebClient wc = new WebClient();
html = wc.DownloadString("http://www.yellowpages.com/ga/metropcs-store?g=GA&page=1&q=Metropcs+Store").ToString();

Yes its end with if anyone got any solution for this please help me 是的,如果有人对此有任何解决方案,请帮助我

The Code that you provided is working correctly. 您提供的代码正常工作。 means The html returned contains exactly 30 items. 表示返回的html恰好包含30个项目。 There may be some issue with the parsing technique that you are following. 您遵循的解析技术可能存在一些问题。 When i checked i found a slight difference in the css class applied for the 28th 29th and 30th item. 当我检查时,我发现在适用于28th 29th和30th项目的CSS类中存在细微差别。 That may be causing the issue 那可能是造成问题的原因

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM