Skip to content
abdulzeedo edited this page Feb 2, 2018 · 3 revisions

Welcome to the Ebay - Amazon arbitrage wiki!

The approach to Amazon

Since Amazon does not provide any purchase API, a manual JS based application would have to simulate the browser e.g CasperJS. Still, since it would be DOM based, it will break as soon as there is a markup change by Amazon which is being used. Furthermore, Amazon loads the forms for each session with some buffering time.

Here's a list of elements to consider in approaching Amazon DOM

  • Sections may not be in a predefined order
  • Some form fields/sections can be missing e.g Gift note text area
  • Shipping options are different and a lot
  • Exceptions generated by Amazon of which I might not know some

Getting elements from eBay

Use the versatile Fulfilment API to get order details.

Storing errors in Database

The database needs to store the eBay order ID, amazon order ID (if possible), customer's name, and result of order mapping.


After the considerations made above, the best way would be to use try-catch clauses for type of DOM element used catching exceptions caused by the element not being find (or visible if possible).

Structure

  • Use php as the server-side script language so that it's executable on the any server hosts.
  • Execute CasperJS independently using AJAX calls to the server.
  • Make other AJAX calls to server to report errors
Clone this wiki locally