No project description provided
Project description
aiocian
Description
Unofficial library for interaction with Cian
Contents
Release Notes
Version 0.0.1
- Created library
- Add simple search
Getting Started
Installation from pip
For installation botovod library from pip you should have pip with python (prefer python3.6 or later)
pip install aiocian
Installation from GitHub
To basic installation from GitHub repository you should have git, python3 (prefer python3.6 or later), pip (optionally) in your system
git clone https://github.com/OlegYurchik/aiocian.git
cd aiocian
pip install .
or
git clone https://github.com/OlegYurchik/aiocian.git
cd aiocian
python setup.py install
Quick Start
After installation, you can use the library in your code. Below is a sneak example of using the library
from aiocian import BUY, CianClient, FLAT, SPB
import asyncio
async def main():
async with CianClient() as client:
search = client.search(region=SPB, action=BUY, places=(FLAT,))
async for result in search:
print(result.url)
loop = asyncio.get_event_loop()
loop.run_until_complete(main)
loop.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiocian-0.0.3.tar.gz
(7.0 kB
view hashes)