Code Monkey home page Code Monkey logo

wildberries-rest-api's Introduction

WB Rest Client

Get access to all endpoints of wildberries marketplace.

Live version is here: wb.matakov.com

What is included

  • Live stock quantity
  • Today's orders
  • Today's sales
  • 14 days' sales
  • Cart
  • What to buy next analysis

How to test:

  1. Register
  2. Set up your API KEY
  3. All done. Know what to buy to keep stock and top sellers

How to run locally?

  1. Install Docker for your OS
  2. Run cmd or Windows Powershell
  3. Navigate to folder with cloned repository
  4. Create .env, as template you may use this example
  5. Run docker compose up
  6. Site will run at 127.0.0.1:1112

Как запустить на моем компьютере?

  1. Установите Docker для вашей операционной системы
  2. Запустите cmd или Windows Powershell
  3. Склонируйте репозиторий и перейдите в его папку
  4. Создайте файл .env, за основу можно взять образец отсюда
  5. Запустите docker compose up
  6. Сайт будет доступен по адресу: 127.0.0.1:1112

Environment variables (переменные окружения)

Save them to .env file (сохраните их в файл)

  • DB_ENGINE=django.db.backends.postgresql
  • DB_NAME=postgres
  • POSTGRES_USER=postgres
  • POSTGRES_PASSWORD=please_use_secure_password
  • DB_HOST=db
  • DB_PORT=5432
  • SECRET_KEY=please_use_secure_password
  • DJANGO_SUPERUSER_PASSWORD=please_use_secure_password
  • DJANGO_SUPERUSER_EMAIL=[email protected]
  • DJANGO_SUPERUSER_USERNAME=admin
  • DOCKER_USERNAME=matakov
  • DOCKER_IMAGE=wb
  • DEBUG=1
  • REDIS_PASSWORD=please_use_secure_password

wildberries-rest-api's People

Contributors

dependabot[bot] avatar matacoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wildberries-rest-api's Issues

Local installation not working

Set up .env, run locally by docker-compose. Admin panel working, but no data displayed at any page after API keys configured

Не работает)

Не работает сервис. Там кажется надо переделать под api v2. т.к теперь ключи надо передавать в заголовках.

django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value.

Traceback (most recent call last):
File "/code/manage.py", line 22, in
main()
File "/code/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.9/site-packages/django/core/management/base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/migrate.py", line 92, in handle
executor = MigrationExecutor(connection, self.migration_progress_callback)
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/executor.py", line 18, in init
self.loader = MigrationLoader(self.connection)
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/loader.py", line 53, in init
self.build_graph()
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/loader.py", line 220, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations
if self.has_table():
File "/usr/local/lib/python3.9/site-packages/django/db/migrations/recorder.py", line 55, in has_table
with self.connection.cursor() as cursor:
File "/usr/local/lib/python3.9/site-packages/django/utils/asyncio.py", line 33, in inner
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/base/base.py", line 259, in cursor
return self._cursor()
File "/usr/local/lib/python3.9/site-packages/django/db/backends/dummy/base.py", line 20, in complain
raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

141 static files copied to '/code/static'.
[2021-12-22 16:22:11 +0000] [12] [INFO] Starting gunicorn 20.1.0
[2021-12-22 16:22:11 +0000] [12] [INFO] Listening at: http://0.0.0.0:8000 (12)
[2021-12-22 16:22:11 +0000] [12] [INFO] Using worker: sync
[2021-12-22 16:22:11 +0000] [13] [INFO] Booting worker with pid: 13

Fix Dockerfile

Line 20 in Dockerfile
&& apt install -y curl netcat \

Change on
&& apt install -y curl netcat-traditional \

Starts well!

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.