Results 1 to 5 of 5

Thread: Read content of simple webpage into textbox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2018
    Posts
    276

    Read content of simple webpage into textbox

    Hello,
    I want to read content of webpage (NOT SOURCE CODE) into textbox that contains text lines -

    grgr
    200011iii

    But, I am getting only source code mixed with text data. All approaches I have tried extracting source code also or link must be TXT file. I want to have link such as www.vbforums.com/forums/ and I want to get the raw data (text inside) into textbox.
    Please dont forget to add good reputation if my advices were useful for you.
    How? Under this post there is "RATE THIS POST" button. Click on it.

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: Read content of simple webpage into textbox

    Quote Originally Posted by VB.NET Developer View Post
    Hello,
    I want to read content of webpage (NOT SOURCE CODE) into textbox that contains text lines -

    grgr
    200011iii

    But, I am getting only source code mixed with text data. All approaches I have tried extracting source code also or link must be TXT file. I want to have link such as www.vbforums.com/forums/ and I want to get the raw data (text inside) into textbox.
    What exactly do you mean by "content of webpage"? If you mean just the text then you would need to parse out the text from the HTML source.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Read content of simple webpage into textbox

    A web page IS HTML. You are presumably talking about what you see in a web browser but that is the output of the browser application after parsing the HTML input. If you want that same output then you need to parse the same input in the same way. You can't magically get the output from an application; you need to use that application or do what that application does.

  4. #4
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    845

    Re: Read content of simple webpage into textbox

    Hello,

    I am wondering if taking an image of the page and doing an OCR on it would do the Job?

    Regards
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Read content of simple webpage into textbox

    Quote Originally Posted by Delaney View Post
    Hello,

    I am wondering if taking an image of the page and doing an OCR on it would do the Job?

    Regards
    Interesting idea. Extremely kludgy but interesting nonetheless.

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