0

Hi ,
I try to build mobile application , this application will know the book name you want and tell you price and Customer Reviews evaluation from amzon.com
but the problem I can not read web page to get price and Customer Reviews evaluation from it by c++ code ,
I try URLDownloadToFile but that mean I should download the page ...
so any solution ???

Edited by pritaeas: Moved to C++ forum.

4
Contributors
3
Replies
6
Views
5 Years
Discussion Span
Last Post by Stefano Mtangoo
0

If I remember correctly, Amazon has an API you can use to retrieve product information. Check their website.

0

See this cURL library.

A simple cURL implementation code

#include <stdio.h>
#include <curl/curl.h>

int main(void)
{
   CURL *curl;
   CURLcode res;

   curl = curl_easy_init();
   if(curl) 
   {
     curl_easy_setopt(curl, CURLOPT_URL, "www.daniweb.com");
     res = curl_easy_perform(curl);
     curl_easy_cleanup(curl);
   }

   return 0;
 }

You will find this in their example codes.

Better try C# or java for web application purposes. but they also have their downside. See this.

Edited by np complete

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.