Skip to main content

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.


Comments

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...