Sunday, January 29, 2012

Posting Data to Amazon using curl


when we enter a keyword (search term) in amazon kindle book store, search brings a list of books back.



I am trying to scrap the above said amazon kindle book search, i have some basic/usage idea of CURL in php, but i have never posted variables using curl. I tried at my level. but havent succeeded yet. the only thing i know is i should post "key-word" variable to amazon and should grab the result. The problem with this step is that the key-word is submited to the form and only a part of the page is refreshed everytime key-word is entered.



can somebody help me telling the step required?




  • which data i will need to post icluding key-word?

  • how can i know about the header /user agent required for this?

  • what information will be required for this process? which elements will be posted ?




I have tried using fiddler but as i am new to it, i am not getting the concepts.



The link i want to parse is amazon.com



Guideline please, if i get the what needs to be posted, i think i will be able to do the curl process.

No comments:

Post a Comment