Git Product home page Git Product logo

v2-import's Introduction

Moltin v2 Import

The moltin v2 import is a set of tools to generate example store data and import it into a new moltin v2 store. It's something we quickly put together for testing and building before you have real data.

We have included a few pre build data sets which are pulled from Amazon's bestseller lists in both the UK and US. There's also a tool to generate more data from additional categories or regional Amazon sites if required.

This tool is still new and relatively untested. You may run into some issues during import. Please report them and we will continue to update as we progress with v2.

Requirements

  • PHP 5.4+
  • PHP working in terminal/cmd
  • A moltin v2 store and your public/private keys to hand

If you're on Windows using cmd, it is highly recommended to install Ansicon, without it you will experience odd output and no colours.

Installation

Simply clone down the repo and that's it, we include a basic SDK and other script requirements in the package.

Usage

To start, open up a terminal window and cd into the directory you just cloned.

Importing an Existing Data Set

  • Type php import.php
  • You should see is a warning that existing data will be purged, type y and hit 'enter'
  • Next you'll pick a data set from the data/ directory, type the corresponding number and hit 'enter'
  • Finally enter your public and then private keys for your store

The import process will run through deleting any files, categories, brands or products you already have. Then moving on to import of the new data from your data set.

This tool can be used to import products from any source, your JSON data simply has to match the expected format for this script and the API.

Building Additional Data Sets

  • Type php scrape.php
  • You will be asked to choose the Amazon store you wish to use
  • Next you'll be asked the category to get data from, enter your selection and hit enter
  • Finally you'll be asked how many items you'd like, maximum is 100.

The script will then run through Amazon's best sellers for your selected region and category before adding the data to the data/ directory.

At any time Amazon can, and will, update their listings and page layout. The tool tries to get around these changes as best it can but it is liable to stop working at any time. If you run into issues please report them.

Contributing

Please see CONTRIBUTING for details.

Credits

License

Please see License File for more information.

v2-import's People

Contributors

jmz avatar

Watchers

James Cloos avatar Mark Chipman and sidekick Mollie 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.