Show sold eBay listings, graphs, and analysis result. Play with my implementation here: http://jumbojimbo.ddns.net/tool/analytics/index_analytics.php
The analytics.php script will cal eBay to retrieve a list of sold listings corresponding to your search query. The data are then saved to a csv file called data.csv. During this time, PHP calls the python script, "statistics.py", which does the follow:
- Load data.csv
- Compute statistical results (historgram, average, means, standard deviation, percentile)
- 1000 Bootstrap re-sampling on the data set to get a measure of what's called "Variance of the means"
- Generate plots: bootstrap.png, histogram.png, plot.png
All the statistical results are passed back to PHP through JSON format. The script finishes by outputing to HTML.
-Program files: analytics.php, apiFunctions.php, statistics.py
-eBay developer token. Place it in apiFunctions.php line 7 (or variable $appid).
-Python and Matplotlib
- Serve the analytics.php file with your web server.
- Browse to the page, and enter a product of interest into the search bar.