GithubHelp home page GithubHelp logo

phpamazonshop's Introduction

phpAmazonShop

Overview

  • Sample codes for Amazon API crawler & webapp in PHP & MySQL

0. Install

  • Get Amazon Associate account and get AWS Key, Secret. If you get Amazon Associate tag, that would be better, but that is not mandatory.

  • Edit credentials.php in both crawler/web directory with correct information of Amazon & MySQL.

  • (Optional: If you don't want to use sample data and want to gather your data[1-B], )You need edit Amazon IDs too. If you don't get Amazon Associate tag, just leave it as brank('').

  • (Optional: If you don't want to use sample data and want to gather your data[1-B], )Edit crawler/amazonapi.php with node IDs what you need(https://affiliate.amazon.co.jp/gp/associates/help/t100).

  • Run cosme_db_items_ddl.sql to create items table in MySQL DB(> source cosme_db_items_ddl.sql).

1-A. Load sample data(When you want to use sample data)

  • Log in to mysql DB, and load sample data(> source sampledata.sql).

1-B. Crawler(When you don't want to use sample data)

  • Change directory crawler/, and Run amazonapi.php to collect item information(> php -f amazonapi.php Result would be saved as ./mysampledata.sql).

  • Change parent directory .., log in to mysql DB, and load created data(> source mysampledata.sql)

    • drop table items;

    • source cosme_db_items_ddl.sql

    • source crawler/mysampledata.sql

    • quit

2. Web

  • Access to index.php with web browser.

License

This code is licensed under MIT.

Copyright

phpamazonshop's People

Contributors

dotnsf avatar

Watchers

James Cloos avatar  avatar

Forkers

ymunemasa

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.