Cian
Description
Unofficial library for interaction with Cian
Contents
Release Notes
Version 0.0.1
- Created library
- Add simple search
Version 0.1.0
- Rename library - from
aiociantocian - Restructured library - make library closer with Cian API
- Edit constants - now constants is
enum.Enuminstance - Delete heavy logic creation request data
- Delete creation
Resultobject - now returndictobject - Add empty tests
Version 0.1.1
- Fix getting search results number
Getting Started
Installation from pip
pip install cian
Installation from GitHub
git clone https://github.com/OlegYurchik/cian.git
cd cian
and
pip install .
or
python setup.py install
Quick Start
After installation, you can use the library in your code.
Sync example
from cian import CianClient, constants
def main(cian_client):
for offer in cian_client.search(
region=constants.Region.SPB,
ad_type=constants.AdType.FLAT_SALE,
):
print(result["fullUrl"])
if __name__ == "__main__":
cian_client = CianClient()
main(cian_client)
Async example:
import asyncio
from cian import CianClient, constants
async def main(cian_client):
async for offer in cian_client.search(
region=constants.Region.SPB,
ad_type=constants.AdType.FLAT_SALE,
):
print(result["fullUrl"])
if __name__ == "__main__":
cian_client = CianClient()
loop = asyncio.get_event_loop()
loop.run_until_complete(main(cian_client))
loop.close()
Metadata
Release files for cian 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cian-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for cian-0.1.1.tar.gz |
Release files / cian-0.1.1.tar.gz
| Download URL | cian-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bf16f14704800b71e8b42fdf1a799115958e69c07bdaeb38571f7d32781d3ba
|
|
BLAKE2b-256 checksum How to use checksums |
2d9a407722fe786c572755dd290096a53962d65ec166e0807df9201e1df405f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.8.0 tqdm/4.59.0 CPython/3.9.2
|
Security for cian 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.