473,329 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,329 software developers and data experts.

How to screen scrape in Silverlight

344 100+
Hey,

I'm trying to get a string that represents the DOM of web pages using System.NET - The only way I know. I used WebClient.DownloadStringAsync, but it acts very strange; sometimes gives result, but very short string! Does not the expected result from DownloadStringCompleted event handler is the entire string of the web page, like using BugZilla? or View Source from any browser?, and sometimes it does not respond!

Here is the code, anyway nothing new:
Expand|Select|Wrap|Line Numbers
  1.  WebClient c = new WebClient();
  2.             c.DownloadStringCompleted += new DownloadStringCompletedEventHandler(c_DownloadStringCompleted);
  3.             c.DownloadStringAsync(new Uri("http://www.msn.com"));
  4. ....
  5. ...
  6.         void c_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
  7.         {
  8.             MessageBox.Show(e.Result);
  9.             //txtUrl.Text = e.Result;
  10.         }
Please, if you have any idea reply to me, if you have any other way to do a text scraping tell me!

Thanks a lot, and I appreciate your help.
Oct 5 '10 #1
0 2166

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Roland Hall | last post by:
Am I correct in assuming screen scraping is just the response text sent to the browser? If so, would that mean that this could not be screen scraped? function moi() { var tag = '<a href='; var...
2
by: Me | last post by:
I am dealing with a poorly written windows application that does not contain an API. I would like to use C# to run a predetermied set of steps in the application and scrape the resulting data...
0
by: Robert Martinez | last post by:
I've seen a lot about screen scraping with .NET, mostly in VB.net. I have been able to convert most of it over, but it is still just very basic stuff. Can someone help direct me toward some good...
3
by: Jim Giblin | last post by:
I need to scrape specific information from another website, specifically the prices of precious metals from several different vendors. While I will credit the vendors as the data source, I do not...
1
by: niv | last post by:
Hello, I would like to screen scrape certain parts of a webpage...how can I do this in asp.net For instance.... a stockticker thats embeded on a webpage.. I dont want the entire page.. I...
2
by: Victor | last post by:
I'm doing screen scraping by retrieving data from one site and entering into another site. I have a problem with logging into the site. User name and password field contain 'name' property, and...
2
by: Victor | last post by:
Hi, I have a problem with logging into web site via screen scraping. User name and password field contain 'name' property, and therefore I can easily do assignment to them:...
1
by: Netty | last post by:
Anyone out there have VB.Net source/ideas for legitmate client-side only screen scraping? *-----------------------* Posted at: www.GroupSrv.com *-----------------------*
7
by: ionphoenix | last post by:
i am currently working in a hospital which uses a pretty own system in basic, however we are using an emulator to access this application from unix,since its program run as a database program inside...
4
by: different.engine | last post by:
Folks: I am screen scraping a large volume of data from Yahoo Finance each evening, and parsing with Beautiful Soup. I was wondering if anyone could give me some pointers on how to make it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.