I want to figure out how to read a webpage. (as plain text) I'm not downloading anything, or displaying pictures, just finding out what's on the webpage. Is there some easy function in some library that does that with just the webpage as the argument? I've been looking around, and I found curl, but I can't get it to build to a framework. Does anyone have a good library for this?
Reading a webpage
Started by Macoder, Nov 22 2009 12:13 PM
7 replies to this topic
#1
Posted 22 November 2009 - 12:13 PM
|
|
|
#2
Posted 22 November 2009 - 12:27 PM
I apologize if this sounds insincere, but I just want to cover everything; are you talking about getting the source of the web page, and if so, is it not sufficient to just right click on the page and select "View Source" from the popup menu? In other worrds, do you need this to be an input to a program given any web page or do you just need to obtain the source code for some particular page?
-TheSourceOfX
-TheSourceOfX
#3
Posted 22 November 2009 - 12:32 PM
I want it to put what's in "View source" in a variable for a webpage I say in the program, so yes, it would be input.
#5
Posted 22 November 2009 - 07:38 PM
ZekeDragon said:
This is perfect for libcURL. Go and download it, and if you're using C++ get the C++ bindings as well. That should be exactly what you need.
Macoder said:
I've been looking around, and I found curl, but I can't get it to build to a framework.
Do you know how to build it to a .framework file??
#6
Posted 23 November 2009 - 06:27 PM
You can also use socket programming with HTTP, if you want to learn how the libraries work. I can help you with that if you like.
sudo rm -rf /
#7
Posted 25 November 2009 - 02:48 AM
On Windows, just use Win32 Net apis : 1 line of code...
#8
Posted 25 November 2009 - 11:07 AM


Sign In
Create Account


Back to top









