grab text from a wepage?

This is a discussion on grab text from a wepage? within the C++ Programming forums, part of the General Programming Boards category; any idea how i would get the text for a web page, in vb you can use the webbrowser control ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    91

    grab text from a wepage?

    any idea how i would get the text for a web page, in vb you can use the webbrowser control to navigate to a page then grab the text, not the html , from that page?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Use curl or wget
    If you want to write code, use libcurl

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    91
    ok thanks, i need to fastest possible way, think this would do what about winhttp?

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Yeah, sure, why not.

  5. #5
    Registered User
    Join Date
    Jun 2003
    Posts
    91
    dont suppose you have an example?

  6. #6
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by joeyzt
    dont suppose you have an example?
    I'm sure Google will have.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    > i need to fastest possible way
    Your fastest way seems to be getting someone to do your work for you.

  8. #8
    Registered User
    Join Date
    Jun 2003
    Posts
    91
    Quote Originally Posted by ahluka
    I'm sure Google will have.
    have googled, msn search, yahood for about an hour, nothing...

  9. #9
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Maybe the first hit of my first google search ("c c++ programming winhttp") will help: http://msdn.microsoft.com/library/de...ut_winhttp.asp
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  10. #10
    Registered User
    Join Date
    Jun 2003
    Posts
    91
    cheers guys, absolutely useless or non information as usual.....

  11. #11
    Registered User
    Join Date
    Jan 2006
    Location
    Washington D.C.
    Posts
    25
    Quote Originally Posted by joeyzt
    cheers guys, absolutely useless or non information as usual.....
    The link dwks has given you is as silver a platter as it can get. I know you want just copy and paste code, but you're not going to learn from that. As things get more advanced, you'll find less and less copy and pastable code, so why not start now, and read?

  12. #12
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,558
    Since the OP has demonstrated a complete lack of being able to do anything other than wait to be spoon-fed....
    Closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Having trouble drawing text xlib.
    By Qui in forum Linux Programming
    Replies: 1
    Last Post: 05-10-2006, 12:07 PM
  2. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 03:49 PM
  3. Appending text to an edit control
    By dit6a9 in forum Windows Programming
    Replies: 3
    Last Post: 08-13-2004, 09:52 PM
  4. Scrolling The Text
    By GaPe in forum C Programming
    Replies: 3
    Last Post: 07-14-2002, 04:33 PM
  5. Replies: 1
    Last Post: 07-13-2002, 05:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21