Metadata-Version: 2.1
Name: apito
Version: 0.4.3
Summary: Avito API interaction tool 
Home-page: https://github.com/WhiteApfel/apito
Author: WhiteApfel
Author-email: white@pfel.ru
License: MPL 2.0
Project-URL: Donate, https://pfel.cc/donate
Project-URL: Source, https://github.com/WhiteApfel/apito
Project-URL: Telegram, https://t.me/apfel
Keywords: Avito API Wrapper Parser Авито АПИ парсер
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE

# Apito

This tool accesses the API directly, rather than loading the site and iterating over the tags.

## Installation

```shell
python -m pip install -U apito

# OR

git clone https://github.com/WhiteApfel/apito.git
cd apito
python setup.py install
```

## How to use

```python
from apito import Apito, Aiopito

a = Apito()  # Aiopito -- async

response = a.search('Моё сердечко', proxy="socks5://ya_slovno:vys0hsHaYa@luzha:2005")

if response.status == 'ok':
    print('Total found: ', response.result.total_count())
    for item in response.result.items:
        print(f'{item.value.title} @ {item.value.location or item.value.address}')
        print(f'Price: {item.value.price}')

results = a.search_generator("Упущенные возможности")

for item in results:
    print(f"{item.value.title} #{item.value.id}")
```

