Skip to main content

Avito API interaction tool

Project description

Apito

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

Installation

python -m pip install -U apito

# OR

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

How to use

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}")

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

apito-0.4.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

apito-0.4.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file apito-0.4.3.tar.gz.

File metadata

  • Download URL: apito-0.4.3.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for apito-0.4.3.tar.gz
Algorithm Hash digest
SHA256 c0bfe9b37cf661b3f2993cdb4324de375606fd12b84ad29e209cac9d9daa1dc0
MD5 3e6e0062eb8e77b1b76e647528db3c0a
BLAKE2b-256 a4f82afa828149ac2d36ee482a8f04b6b0e62278eeb47001dde8ab53f7619cf3

See more details on using hashes here.

File details

Details for the file apito-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: apito-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.6

File hashes

Hashes for apito-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 21f3d6fd3aed8ecc431e59f9d368a9811d245f501963d2a4fbbd6686a1e93135
MD5 3974a150dc60c414a967f36a0248b5aa
BLAKE2b-256 7303acf5ac88f579c03fdd1a39c55449c4926d3a9566d0c485a54bd348c34180

See more details on using hashes here.

Supported by

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