Anyone have a clue?
-
I have an issue in my project. I am dowloading a webpage and reading line by line of the site. The output I get is the full webpage displaying the information on the site and also the tags. Is there any possibilities to write some code to ignore the tags so that only the interesting bits of the page will be displayed? I am using the .NET compact framework and need this in C#. Anyone have a clue? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
-
I have an issue in my project. I am dowloading a webpage and reading line by line of the site. The output I get is the full webpage displaying the information on the site and also the tags. Is there any possibilities to write some code to ignore the tags so that only the interesting bits of the page will be displayed? I am using the .NET compact framework and need this in C#. Anyone have a clue? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
you need to parse the page source and extract the info you want
-
I have an issue in my project. I am dowloading a webpage and reading line by line of the site. The output I get is the full webpage displaying the information on the site and also the tags. Is there any possibilities to write some code to ignore the tags so that only the interesting bits of the page will be displayed? I am using the .NET compact framework and need this in C#. Anyone have a clue? Ninety-eight percent of the thrill comes from knowing that the thing you designed works, and works almost the way you expected it would. If that happens, part of you is in that machine.
One way of efficiently extracting data like that from a string is to use a regular expression. Have a look att the RegEx class. You say that you read line by line? The html page is not line oriented at all, so there is no reason to read it line by line. Read it all into a string, then extract what you want from that string. --- b { font-weight: normal; }