Skip to main content

Bazos API, that allows you to scrape bazos and upload products to bazos website.

Project description

BAZOS-API

Current functionality supports removing and adding items to bazos.cz, bazos.sk, bazos.at and bazos.pl.

Goal

Create full-featured API for bazos.cz, bazos.sk, bazos.at and bazos.pl.

Installation

pip3 install bazos

Run

bazos --help
bazos -b --country cz sk --path $HOME/Documents/photos-archive # Remove all items from bazos.cz and bazos.sk and add new items from $HOME/Documents/photos-archive
bazos -b --country cz sk --add-only --path $HOME/Documents/photos-archive # Add new items from $HOME/Documents/photos-archive

--country argument

Supported countries: cz, sk, at, pl

-b|--bazos argument

This turn on run.

--path argument

The folder where all photos and user_{country}.yml file.

How to structure folder defined in --path argument:

# user_${bazos_country}.yml e.g.: user_cz.yml
name: Jmeno
phone_number: '+420123456789'
email: user@example.com
psc: 60200
password: 123456

Example of folder structure

bazos-ads/
bazos-ads/user_cz.yml
bazos-ads/user_sk.yml
bazos-ads/item1/photos/photo1.jpg
bazos-ads/item1/photos/photo2.jpg
bazos-ads/item1/info.txt
bazos-ads/item2/photos/photo1.jpg
bazos-ads/item2/photos/photo2.jpg
bazos-ads/item2/info.txt
...

info.txt syntax

>>RUBRIC
PC

>>CATEGORY
Notebooky

>>TITLE
Macbook Pro 2019 16

>>PRICE
25000

>>DESCRIPTION
Your sentences1.
Your sentences2.

Contribution and Development

Every contribution is welcome!

Please follow rules inside .pre-commit-config.yml file.

Before creating pull request, please run pre-commit run --all-files to check if there are no errors.

Install pre-commit hooks

pre-commit install

Create virtual environment and install dependencies

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bazos-0.0.7.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bazos-0.0.7-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file bazos-0.0.7.tar.gz.

File metadata

  • Download URL: bazos-0.0.7.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bazos-0.0.7.tar.gz
Algorithm Hash digest
SHA256 2d41612ea6d1ec34cf30b3f02c6ea219fb9ba2eab8c14915409aa6aad5a3bbdc
MD5 2c4d760d857259fb8832332d5eb5001b
BLAKE2b-256 aa4655772d672c566bddb2f12b34635bd8811bc2bcd3a1aba51eb23240953432

See more details on using hashes here.

File details

Details for the file bazos-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: bazos-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for bazos-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 25c0fb7aca526c5414778fa873bb54b612f12a5948a83281726127e8d38ed30d
MD5 f4f09a79d06b1bf832e34eb470fd518a
BLAKE2b-256 19bb166c59e339e7fde3c7839151b26e53ad3aeebbe34a0b8925f4b6b16b1cd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page