Giter VIP home page Giter VIP logo

wb_parser_example's Introduction

Wildberries Parser Skeleton

Application for parsing catalog items from search.wb.ru

Contains:

  1. Console command for parsing 1000 items per iteration and saving into ClickHouse.
  2. User-Form and Table View for visualizing data from ClickHouse.

How it works

parsing stages

Dependencies

Project setup

  1. Clone this repository:
    git clone https://github.com/shirokovnv/wb_parser_example.git && cd wb_parser_example
  1. Rename auth.json.example to auth.json and put your github oauth token there (needs for pulling eggheads/cakephp-clickhouse library from VCS repo)
  2. Rename ./config/app_local.example.php to ./config/app_local.php
  3. Run make build to build docker image
  4. Run make install to install php dependencies
  5. Run make up to run application containers

Visit http://localhost/

ClickHouse Commands

Run make shell to enter inside php-app container

  1. Create Table:
bin/cake click_house_init
  1. Drop Table:
bin/cake click_house_drop
  1. Parse products:
bin/cake parse_products "QUERY STRING"

Test

  1. Create tmp dir in project root folder
  2. Run make test for unit-testing.

Tests use mockery/mockery and fakerphp/faker packages as dependencies.

Help

Run make help to see available commands.

Shutdown

Run make down for shutting down application containers.

License

MIT. Please see the license file for more information.

wb_parser_example's People

Contributors

shirokovnv avatar

Watchers

 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.