Results 1 to 3 of 3

Thread: httpwebrequest

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    httpwebrequest

    I can use this to get the html source of a website.

    But how do you get the actual text which would be displayed on screen AND not the full html of the website. So it would only retreive the text as it would be seen after the website loaded in your browser

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: httpwebrequest

    Browers render HTML, this is not something you can replicate with ease. If you want a particular piece of information from the HTML then you will have to do some string manipulation to get it. With that being said, you might find it easier to load the web page you are retrieving into the WebBrowser control, then if you know the element/id you are looking for it won't be too hard to loop though and get it. You haven't provided much information on what you are trying to do so all I can do is suggest general methods to do what you want.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    Re: httpwebrequest

    trying to get websites/links from a directory search results, but the website using javascript to put the results on the screen when the browser has loaded. so if you look at the html there no urls but if you look at the text there are links.

    Yes i tried your method using innertext BUT its very slow

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width