I'm trying to make a program that will use Curl to retrieve just the text from a website and store it as a string. I'm trying to look at the curl manual to figure out what I need to use, but I'm confused since I'm not familiar with HTML terms. Could someone help me with the lib functions I would need to make this program?
It doesn't seem to work for what I need to use it for though. I'm trying to make a program that will download the first image of Google image search. To do this, I was planning on using Google search API. Something like this: https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=dog
After I got the text off of this page, I was going to separate it by commas into a string array. Then, I was going to download the image by using the 8th string in the array which holds the url of the image. However, whenever I try to put a Google search API link into the code posted above, I get "****error: No Error". Is this because the format of the url is not supported by curl?