Code Monkey home page Code Monkey logo

ebay-research's Introduction

My eBay Research Project

My attempt at researching eBay historical data (for my Econometrics class). This project is written using NodeJS, uses MongoDB for persistence and Redis for distributed computations; so you need to have all of those set up before hand. There are a lot of stuff going on here, so your best bet is simply to node index.js and follow the instruction from there (and read the code!).

Basically, the project uses a distributed computation pattern in order to parallelize the workload. Running node index.js --scheduler will schedule the workload (in this case, it schedules a bunch of requests to the eBay API, in order to pull down the historical pricing from different categories for various eBay localized sites, all of which are configurable via the config file) and starts the WebUI that you can access via port 3000.

The --worker flag will run one worker, in order to execute the scheduled task. I use supervisord to start up 8 workers in parallel, so that the whole process takes shorter perdiod of time.

The --webui flag only runs the webui without scheduling (this webui, as well as the task distribution system, is provided by the excellent Kue library).

Last but not least, --exporter exports the data that were gathered by the workers into a CSV file (which I further process using Stata for Econometrics purposes).

The options for this program can be configured in config/default.js (the options are loaded using the config library, so you can use any loading strategy you want).

eBay specific notes

In order to use this library, you need to have an eBay Developer account. This library mainly uses the findCompletedItems API call, which is limited to 5000 requests/day, so you'll have to plan your usage accordingly. Furthermore, I am not responsible for your usage of the eBay API (in particular, persisting what you get from the eBay - please make sure that you understand and accept the eBay API Terms and Conditions).

ebay-research's People

Contributors

dangmai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.