Skip to content

Issue regrading book search for finding a lowest price of the book throughout internet

venkatesh

Asked Dec 16, 2008, 1:46 AM EST1 answer
Share
LinkedInX
Hi all,
         I am currently working on a online book store project and i  had an issue . When  the user searches for a book we have to display lowest price of the book from the internet(means it has to compare with all the book shops in the internet ).And we have to display the prices form the internet  hierarchically in a grid view.A replica of www.addall.com site is what we require.So, please if anybody find any sort of information regrading this concept please reply us back.
        
               Thanks in advance

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    So first, you have to start look for the most interesant rss feed according to the book in the markets then you can interogate them though a WebClient object

    WebClient client = new WebClient();
    client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(
          client_DownloadStringCompleted);
    client.DownloadStringAsync(new Uri(
        "http://feeds......"));//your feed path here


    void client_DownloadStringCompleted(object sender,
      DownloadStringCompletedEventArgs e)
    {
     
      //Get the information in an xmlDocument
        XmlDocument document = XmDocument.Parse(e.Result);
     // and the you can deal with information either by applying xsl or by querying data
     //using LINQ
    }

    One remark: You shouldn't test it from your local site you have to deploy it in the internet or at least create a virtual repertory with IIS an deploy your application there then test it
    0