Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

API for Bazos websites (DOMAINs: bazos.cz, bazos.sk, bazos.au, bazos.pl)

License

NotificationsYou must be signed in to change notification settings

zdeneklapes/bazos

Repository files navigation

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

Requirements

  • Python 3.10+
  • chromedriver 116.0.5845.96+
pip3 install bazos

Run

bazos --helpbazos -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-archivebazos -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 anduser_{country}.yml file.

How to structure folder defined in--path argument:

# user_${bazos_country}.yml e.g.: user_cz.ymlname:Jmenophone_number:'+420123456789'email:user@example.compsc:60200password:123456

Example of folder structure

bazos-ads/bazos-ads/user_cz.ymlbazos-ads/user_sk.ymlbazos-ads/item1/photos/photo1.jpgbazos-ads/item1/photos/photo2.jpgbazos-ads/item1/info.txtbazos-ads/item2/photos/photo1.jpgbazos-ads/item2/photos/photo2.jpgbazos-ads/item2/info.txt...

info.txt syntax

>>RUBRICPC>>CATEGORYNotebooky>>TITLEMacbook Pro 2019 16>>PRICE25000>>DESCRIPTIONYour sentences1.Your sentences2.

Contribution and Development

Every contribution is welcome!

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

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

Install pre-commit hooks

pre-commit install

Create virtual environment + install dependencies

./make.sh dev_docker_up# or locallypython3 -m venv venvsource venv/bin/activatepip install -r requirements.txtpip install -e.# And then you can try:python3 bazos --help

You are good to go!


[8]ページ先頭

©2009-2025 Movatter.jp