简体   繁体   中英

Designing a Web Scraper for windows phone

I am designing a web scraper for WP7, using HttpWebRequest and HtmlAgilityPack. The problem is that when i invoke it, it runs asynchronously and thus, I cannot use it on the main thread. I have a separate class called 'WebScraper' for the fetching part that has the 'executeCommand' method, which takes the url and the xpath as arguments and calls request.beginGetResponse. I call the 'executeCommand' from main().

您可以在回答此问题的 Windows Phone中找到三种不同的方法来在Windows Phone中发出异步请求时获取响应。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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